How to handle large number of disk devices in "arbitrary" order?
Carsten Aulbert
carsten at welcomes-you.com
Fri Nov 18 13:29:01 CET 2011
Hi Michael
On Tuesday 15 November 2011 10:26:12 Michael Tautschnig wrote:
>
> > I'll see how the remaining install will proceed. After that I'll try
> > using setup-storage's 'md' interface with the 12 disk drives
>
> Just a hint here: you might want to use sameas:some-other-disk to simplify
> the configuration.
Hmm, so far (with very few tests), I've not yet succeeded
root at ra01:~# ls -l /dev/disk/by-id/scsi-SATA_*
lrwxrwxrwx 1 root root 9 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_DeLOCK_54164_8G20110329AA0060000435 -> ../../sda
lrwxrwxrwx 1 root root 10 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_DeLOCK_54164_8G20110329AA0060000435-part1 -> ../../sda1
lrwxrwxrwx 1 root root 9 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH36DMA -> ../../sdl
lrwxrwxrwx 1 root root 10 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH36DMA-part1 -> ../../sdl1
lrwxrwxrwx 1 root root 9 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH36DVA -> ../../sdc
lrwxrwxrwx 1 root root 10 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH36DVA-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 9 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH36DZA -> ../../sdg
lrwxrwxrwx 1 root root 10 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH36DZA-part1 -> ../../sdg1
lrwxrwxrwx 1 root root 9 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH36E8A -> ../../sdb
lrwxrwxrwx 1 root root 10 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH36E8A-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 9 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH36EEA -> ../../sdj
lrwxrwxrwx 1 root root 10 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH36EEA-part1 -> ../../sdj1
lrwxrwxrwx 1 root root 9 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH37KMA -> ../../sdh
lrwxrwxrwx 1 root root 10 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH37KMA-part1 -> ../../sdh1
lrwxrwxrwx 1 root root 9 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH37MPA -> ../../sdm
lrwxrwxrwx 1 root root 10 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH37MPA-part1 -> ../../sdm1
lrwxrwxrwx 1 root root 9 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH38H4A -> ../../sdk
lrwxrwxrwx 1 root root 10 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH38H4A-part1 -> ../../sdk1
lrwxrwxrwx 1 root root 9 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH38L0A -> ../../sde
lrwxrwxrwx 1 root root 10 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH38L0A-part1 -> ../../sde1
lrwxrwxrwx 1 root root 9 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH39N3A -> ../../sdf
lrwxrwxrwx 1 root root 10 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH39N3A-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 9 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH39NMA -> ../../sdd
lrwxrwxrwx 1 root root 10 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH39NMA-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 9 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH39NNA -> ../../sdi
lrwxrwxrwx 1 root root 10 Nov 17 16:04 /dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH39NNA-part1 -> ../../sdi1
I'm just looking at Parser.pm but fail to understand how the detection works:
| /^sameas:(\S+)/
{
my $ref_dev = &FAI::resolve_disk_shortname($1);
defined($FAI::configs{"PHY_" . $ref_dev}) or die "Reference device $ref_dev not found in config\n";
use Storable qw(dclone);
$FAI::configs{$FAI::device} = dclone($FAI::configs{"PHY_" . $ref_dev});
}
I've tried:
disk_config raid
raid6 /data sameas:/dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0331YHH36DMA xfs rw
but it tells me, that 'mkfs.' was not found.
The man-page example is:
disk_config raid
raid1 / sda1,sdd1 ext2 rw,errors=remount-ro
raid0 - disk2.2,sdc1,sde1:spare:missing ext2 default
Any ideas?
Cheers
Carsten
More information about the linux-fai
mailing list