How to handle large number of disk devices in "arbitrary" order?

Michael Tautschnig mt at debian.org
Tue Nov 15 10:07:21 CET 2011


Hi Carsten,

[...]
> 
> Interestingly an additional '1' is added to the device name - is that for the first
> partition (sda1) which is invalid for this way of addressing the device?
> 
> the "glob regexp" does indeed match nicely:
> root at ra01:/tmp/fai# perl -e 'print join("\n", glob("/dev/disk/by-id/scsi-SATA_DeLOCK*[A-Z0-9_][A-Z0-9_][A-Z0-9_]")),"\n"'
> /dev/disk/by-id/scsi-SATA_DeLOCK_54164_8G20110329AA0060000435
> 
[...]

Would you mind patching your copy of setup-storage in order to further debug
this? It should suffice to change line 100 of Parser.pm to

$disk = `readlink -f $candidates[0]` if (scalar(@candidates) == 1);

[was: $disk = $candidates[0] if (scalar(@candidates) == 1);]

It's not too unlikely that we bump into further issues, but at least this should
help us getting there.

Best,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20111115/283cf1b6/attachment.bin>


More information about the linux-fai mailing list