Package: mdcfg
Version: 1.10
Severity: grave
Using the Debian installer to install on Sun Netra X1 using rc2 installer.
My disks were already partitioned like this:
FIRST DISK:
Disk /dev/discs/disc0/disc (Sun disk label): 255 heads, 63 sectors, 16709
cylinders
Units = cylinders of 16065 * 512 bytes
Device Flag Start End Blocks Id System
/dev/discs/disc0/disc1 1 16588 133235077+ fd Linux raid
autodetect
/dev/discs/disc0/disc2 16588 16709 971932+ fd Linux raid
autodetect
/dev/discs/disc0/disc3 0 16709 134215042+ 5 Whole disk
SECOND DISK:
Disk /dev/discs/disc1/disc (Sun disk label): 255 heads, 63 sectors, 16709
cylinders
Units = cylinders of 16065 * 512 bytes
Device Flag Start End Blocks Id System
/dev/discs/disc1/disc1 1 16588 133235077+ fd Linux raid
autodetect
/dev/discs/disc1/disc2 16588 16709 971932+ fd Linux raid
autodetect
/dev/discs/disc1/disc3 0 16709 134215042+ 5 Whole disk
I them selected "Configure software RAID" from the disk partitioning menu. I
said
"Yes" to continue, and "RAID1". It gave an error to the effect that there are no
unused partitions from which RAID devices could be created.
There should have been 4 partitions available; all of these 4 partitions were
set to "do not use"
I tracked the issue to the get_partitions() shell function in /bin/mdcfg, which
does this near the top of the function
RAW_PARTITIONS=`/usr/lib/partconf/find-partitions --ignore-fstype
2>/dev/null | grep "[[:space:]]RAID[[:space:]]" |cut -f1`;
Obviously it is expecting lines of output from /usr/lib/partconf/find-partitions
that contain the word RAID but it is getting none. On my system
/usr/lib/partconf/find-partitions outputs only this:
~ # /usr/lib/partconf/find-partitions --ignore-fstype
/dev/ide/host0/bus0/target0/lun0/part1 127 GiB
/dev/ide/host0/bus0/target0/lun0/part2 949 MiB
/dev/ide/host0/bus1/target0/lun0/part1 127 GiB
/dev/ide/host0/bus1/target0/lun0/part2 949 MiB
I snipped the grep command off the pipeline by editing /bin/mdcfg and then reran
it. It immediately offered the 4 partitions, and I was able to easily create 2
RAID1 metadevices.
Maybe this should be reassigned to package partconf-find-partitions for failing
to produce correct output but I am not sure what the correct output is supposed
to be.
-Phil
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]