retitle 603319 dmraid-activate does not handle DDF1-based disks properly thanks
Hello, apparently, this problem is strictly related to DDF1 format. dmraid-activate needs special handling for it because /sbin/dmraid binary provides no way to extract names of DDF1 RAID subsets for the particular physical device. `dmraid -r` returns only the top group ".ddf1_disks" [1] which is useless because `dmraid -s` refuses to work with it [2] (contrary to dmraid 1.0.0.rc14 where this works) [1] # dmraid -r /dev/sda /dev/sda: ddf1, ".ddf1_disks", GROUP, ok, 486326272 sectors, data@ 0 [2] # dmraid -s .ddf1_disks ERROR: ddf1: wrong # of devices in RAID set "ddf1_4c5349202020202010000055000000004711471100000a28" [1/2] on /dev/sdb ERROR: ddf1: wrong # of devices in RAID set "ddf1_4c5349202020202010000055000000004711471100000a28" [1/2] on /dev/sda ERROR: either the required RAID set not found or more options required no raid sets and with names: ".ddf1_disks" I wrote an awk based program which extracts RAID subsets from the native log of the physical drive (dmraid -i -n /dev/sda). I will test it in the next few days and I will send a patch for dmraid-activate if it works. Special casing is obviously not optimal but changing behaviour of /sbin/dmraid at this point would be worse imho. -- Modestas Vainius <mo...@debian.org>
signature.asc
Description: This is a digitally signed message part.