[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#558727: partman-md: RAID configuration interface issues



Package: partman-md
Version: 48
Severity: important

While testing #558686 I noticed a couple of issues with the RAID 
configuration interface.

State after initial partitioning of physical disks:
 │         IDE1 master (hda) - 4.3 GB VBOX HARDDISK                     │
 │         >     #1  primary  1.1 GB    K  raid                         │
 │         >     #2  primary  2.0 GB    K  raid                         │
 │         >         pri/log  1.2 GB       FREE SPACE                   │
 │         IDE1 slave (hdb) - 4.3 GB VBOX HARDDISK                      │
 │         >     #1  primary  1.1 GB    K  raid                         │
 │         >     #2  primary  2.0 GB    K  raid                         │
 │         >         pri/log  1.2 GB       FREE SPACE                   │

After choosing "Configure software RAID", "Create MD device", "RAID1",
2 active devices, 0 spares, I got:
 │ You have chosen to create a RAID1 array with 2 active devices.       │
 │                                                                      │
 │ Please choose which partitions are active devices. You must select   │
 │ exactly 2 partitions.                                                │
 │                                                                      │
 │ Active devices for the RAID1 array:                                  │
 │                                                                      │
 │         [ ] /dev/hda1                      (1102MB; raid)            │
 │         [ ] /dev/hda2                      (1998MB; raid)            │
 │         [ ] /dev/hda free #1               (1192MB; FREE SPACE)      │
 │         [ ] /dev/hdb1                      (1102MB; raid)            │
 │         [ ] /dev/hdb2                      (1998MB; raid)            │
 │         [ ] /dev/hdb free #1               (1192MB; FREE SPACE)      │


* Issue 1: displays "free space" as available for RAID

AFAIK only devices marked as "use for RAID" (that have the "raid" flag set) 
should be listed.
This is a regression: the lenny installer does not display free space.

* Issue 2: dialog does not allow for creation of degraded devices

For RAID1 there is no need to select "exactly 2 partitions". partman 
supports creating degraded RAID devices, for RAID1 only 1 partition is 
required. The dialog should indicate this.
Some of the other RAID variants also allow creation of degraded devices.

* Issue 3: incorrect dialog when deleting RAID devices

The confirmation dialog is supposed to list the component devices of a RAID 
device, but instead it shows:
 │ Please confirm whether you really want to delete the following  │
 │ software RAID device:                                           │
 │                                                                 │
 │  Device:            /dev/md1                                    │
 │  Type:              raid1                                       │
 │  Component devices:                                             │
 │                                                                 │
 │ 1951808 blocks [2/2] [UU]                                       │
 │                                                                 │
 │       1076224 blocks [2/2] [UU]                                 │
 │                                                                 │
 │ Really delete this software RAID device?                        │


And even more fun when a sync is happening:
 │  Component devices:                                             │
 │                                                                 │
 │ 1951808 blocks [2/2] [UU]                                       │
 │         resync=DELAYED                                          │
 │                                                                 │
 │       1076224 blocks [2/2] [UU]                                 │
 │       [============>........]  resync = 62.5% (673280/1076224)  │
 │ finish=0.1min speed=33664K/sec                                  │


This is a regression compared to Lenny which did display component devices 
correctly. Possibly the root cause is a change in /proc/mdstat.
<snip>
# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 hdb2[1] hda2[0]
      1951808 blocks [2/2] [UU]

md0 : active raid1 hdb1[1] hda1[0]
      1076224 blocks [2/2] [UU]
</snip>



Reply to: