How to handle large number of disk devices in "arbitrary" order?
Carsten Aulbert
carsten at welcomes-you.com
Tue Nov 15 09:43:03 CET 2011
Hi Michael
On Tuesday 15 November 2011 09:22:44 Michael Tautschnig wrote:
>
> I suppose you should be able to address this issue by using
>
> /dev/disk/by-id/scsi-SATA_DeLOCK*[A-Z0-9_][A-Z0-9_][A-Z0-9_]
>
> but obviously this isn't exactly beautiful. It might be easier if we
> instead permitted arbitrary perl regular expressions, but then again we
> might still want to add some improvements to help you configure your other
> 12-48 disks.
+1 :)
>
> I'd be happy to take inputs on this, I think this feature has hardly been
> used before.
And I think we have enough border-line machines which could help debugging :)
ok, you change does make a difference however, it does not succeed(long lines ahead):
Starting setup-storage 1.3
INTERNAL ERROR in setup-storage:
Invalid device /dev/disk/by-id/scsi-SATA_DeLOCK_54164_8G20110329AA00600004351
Please report this error to the Debian Bug Tracking System.
at /usr/share/fai/setup-storage//Init.pm line 281
FAI::make_device_name('/dev/disk/by-id/scsi-SATA_DeLOCK_54164_8G20110329AA0060000435', 1) called at /usr/share/fai/setup-storage//Parser.pm line 293
FAI::init_part_config('primary') called at (eval 79) line 7993
Parse::RecDescent::namespace000001::type('Parse::RecDescent=HASH(0xff7b60)', 'primary / 128- ext3 rw,errors=remount-ro\x{a}\x{a}#...', 1, '',
'CODE(0x17d94e0)') called at (eval 79) line 5852
Parse::RecDescent::namespace000001::volume('Parse::RecDescent=HASH(0xff7b60)', 'primary / 128- ext3 rw,errors=remount-ro\x{a}\x{a}#...', 1, '',
'CODE(0x17d81e8)') called at (eval 79) line 7830
Parse::RecDescent::namespace000001::config('Parse::RecDescent=HASH(0xff7b60)', 'primary / 128- ext3 rw,errors=remount-ro\x{a}\x{a}#...', 1, '',
'CODE(0x17d7ec0)') called at (eval 79) line 4808
Parse::RecDescent::namespace000001::line('Parse::RecDescent=HASH(0xff7b60)', 'primary / 128- ext3 rw,errors=remount-ro\x{a}\x{a}#...', 1, '',
'CODE(0x17d7d88)') called at /usr/share/perl5/Parse/RecDescent.pm line 2904
Parse::RecDescent::_parserepeat('Parse::RecDescent=HASH(0xff7b60)', '# generic disk configuration for one small disk\x{a}# disk size f...', 'CODE(0x1091b20)', 0,
100000000, '', 'Parse::RecDescent::Expectation=HASH(0x17d7b30)', 'CODE(0x17d7d88)') called at (eval 79) line 658
Parse::RecDescent::namespace000001::file('Parse::RecDescent=HASH(0xff7b60)', '# generic disk configuration for one small disk\x{a}# disk size f...', undef, undef,
'CODE(0x17f5298)') called at /usr/share/perl5/Parse/RecDescent.pm line 2875
Parse::RecDescent::AUTOLOAD('Parse::RecDescent=HASH(0xff7b60)', '# generic disk configuration for one small disk\x{a}# disk size f...') called at /usr/share/fai/setup-
storage//Parser.pm line 1028
FAI::run_parser('GLOB(0xbe27c0)') called at /usr/sbin/setup-storage line 127
Using config file: /var/lib/fai/config/disk_config/BONN
Error in task partition. Traceback: task_error task_partition task task_install task task_action task main
Save log files via ssh to loki at fai:ra01//install-20111115_083543
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
Shall I reportbug this, or move over to fai-devel?
Cheers
Carsten
More information about the linux-fai
mailing list