Bug 1040877 - error message not informative when trying to convert partition to raid with full disks
Summary: error message not informative when trying to convert partition to raid with f...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 22
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-12 09:20 UTC by Alexey Torkhov
Modified: 2015-04-24 19:17 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-24 19:17:45 UTC
Type: Bug


Attachments (Terms of Use)

Description Alexey Torkhov 2013-12-12 09:20:11 UTC
Description of problem:
Unable to create RAID-1 over 3 disks

Version-Release number of selected component (if applicable):
anaconda-20.25.15-1.fc20.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Start with 3 empty disks of 8G
2. Start installer, go to custom partitioning, auto-create disks
3. Select /boot, switch type to RAID, leave all other as default - i.e. RAID level is RAID-1, 3 disks selected.

Actual results:
/boot size resets to 1MB.
Error "raid1 requires at least 2 disks".

Expected results:
Doesn't reset size on error. Creates raid.

Additional info:

Comment 1 Alexey Torkhov 2013-12-12 09:22:09 UTC
Unable to perform same with 2 devices.

Comment 2 Alexey Torkhov 2013-12-12 09:22:49 UTC
Should be a blocker according to critea:

The installer must be able to create and install to any workable partition layout using any file system and/or container format combination offered in a default installer configuration.

Comment 3 Adam Williamson 2013-12-12 09:24:44 UTC
i'd vote -1, IIRC /boot on raid isn't supported. should be rejected with a proper error, but meh.

Comment 4 Alexey Torkhov 2013-12-12 10:11:25 UTC
F-19 certainly allowed to use /boot or / on RAID-1. It setups it with 1.0 metadata (that goes in the end of partition) so bootloader could access filesystem.

Comment 5 Adam Williamson 2013-12-12 10:51:55 UTC
hum, i may be misremembering then.

Comment 6 Alexey Torkhov 2013-12-12 11:12:16 UTC
This seem to be issue with this particular partitioning workflow, so its probably not really a blocker. It works when doing RAID setup other ways. And it also allows to use /boot (or / partition without /boot) on RAID-1 too.

Comment 7 Adam Williamson 2013-12-12 12:00:07 UTC
it would be great if you could specify precisely what workflow works, and what fails. thanks!

Comment 8 Alexey Torkhov 2013-12-12 12:07:53 UTC
(In reply to Adam Williamson from comment #7)
> it would be great if you could specify precisely what workflow works, and
> what fails. thanks!

Steps to reproduce and actual results from comment 0 are not precise enough?

Comment 9 Adam Williamson 2013-12-12 12:09:45 UTC
looks OK for the 'not working' case, what case works? manually create mount points one by one?

Comment 10 Alexey Torkhov 2013-12-12 12:47:24 UTC
I didn't see this bug different situations with full layout regular partitions, when assiging LVM to RAID, when doing some mangling with sizes first or manually creating points one by one. The only situation where I've seen it is described in comment 0.

Comment 11 Alexey Torkhov 2013-12-12 13:49:18 UTC
Have seen same error when trying to reproduce bug 1021507 with complex RAID layout.

Comment 12 David Lehman 2013-12-12 16:03:18 UTC
The interactive partitioning does not reallocate all devices from scratch each time you change one of them. That means that after asking for the automatic partitioning layout the sizes of the PVs are fixed at whatever size they ended up at. This is why your attempt to change /boot to RAID failed -- there was only one disk with enough space at that point. You can achieve /boot on a RAID across all three disks, but you'll have to pay attention and ensure that there's enough space on each disk. I'd recommend you create /boot while the disks are empty and then add the LVM afterwards. I have no intention of changing the basic way this works, before you ask.

Comment 13 Alexey Torkhov 2013-12-12 16:07:49 UTC
(In reply to David Lehman from comment #12)
> The interactive partitioning does not reallocate all devices from scratch
> each time you change one of them. That means that after asking for the
> automatic partitioning layout the sizes of the PVs are fixed at whatever
> size they ended up at. This is why your attempt to change /boot to RAID
> failed -- there was only one disk with enough space at that point. You can
> achieve /boot on a RAID across all three disks, but you'll have to pay
> attention and ensure that there's enough space on each disk. I'd recommend
> you create /boot while the disks are empty and then add the LVM afterwards.
> I have no intention of changing the basic way this works, before you ask.

Ah, true, second disk is full at that moment. But why does it resets /boot size to 1MB in this case?

Comment 14 Adam Williamson 2013-12-13 00:27:18 UTC
dlehman: is it reasonable to keep the bug open as low priority to see if anaconda can possibly provide better feedback in this case, on that glorious day in 2063 when you'll have time to worry about low priority issues? :)

Comment 15 David Lehman 2013-12-13 17:35:42 UTC
It would be better if we could note that disks were removed from the specified set due to lack of space and somehow reflect that in the error message.

Comment 16 Jaroslav Reznik 2015-03-03 16:57:34 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 17 David Shea 2015-04-24 19:17:45 UTC
Seems to work fine in F22


Note You need to log in before you can comment on or make changes to this bug.