How to handle large number of disk devices in "arbitrary" order?
Carsten Aulbert
carsten at welcomes-you.com
Mon Nov 14 19:36:44 CET 2011
Hi Markus
On Monday 14 November 2011 18:22:22 Markus Koeberl wrote:
> what about /dev/disk/by-id and /dev/disk/by-path ?
>
> It seams to be supported by setup-storage:
> /* fully qualified device-path or short form, like hda, whereby full
> * path is assumed to be /dev/hda; may contain shell globbing such
> * as /dev/disk/by-id/scsi-* */
Hmm, tried that, does not seem to work - possibly me being too tired:
root at ra01:~# ls -l /dev/disk/by-id/scsi*|grep -v part
lrwxrwxrwx 1 root root 9 Nov 14 18:33 /dev/disk/by-id/scsi-
SATA_DeLOCK_54164_8G20110329AA0060000435 -> ../../sda
lrwxrwxrwx 1 root root 9 Nov 14 18:33 /dev/disk/by-id/scsi-
SATA_Hitachi_HUA7230_MK0331YHH36DMA -> ../../sdl
lrwxrwxrwx 1 root root 9 Nov 14 18:33 /dev/disk/by-id/scsi-
SATA_Hitachi_HUA7230_MK0331YHH36DVA -> ../../sdc
lrwxrwxrwx 1 root root 9 Nov 14 18:33 /dev/disk/by-id/scsi-
SATA_Hitachi_HUA7230_MK0331YHH36DZA -> ../../sdg
lrwxrwxrwx 1 root root 9 Nov 14 18:33 /dev/disk/by-id/scsi-
SATA_Hitachi_HUA7230_MK0331YHH36E8A -> ../../sdb
lrwxrwxrwx 1 root root 9 Nov 14 18:33 /dev/disk/by-id/scsi-
SATA_Hitachi_HUA7230_MK0331YHH36EEA -> ../../sdj
lrwxrwxrwx 1 root root 9 Nov 14 18:33 /dev/disk/by-id/scsi-
SATA_Hitachi_HUA7230_MK0331YHH37KMA -> ../../sdh
lrwxrwxrwx 1 root root 9 Nov 14 18:33 /dev/disk/by-id/scsi-
SATA_Hitachi_HUA7230_MK0331YHH37MPA -> ../../sdm
lrwxrwxrwx 1 root root 9 Nov 14 18:33 /dev/disk/by-id/scsi-
SATA_Hitachi_HUA7230_MK0331YHH38H4A -> ../../sdk
lrwxrwxrwx 1 root root 9 Nov 14 18:33 /dev/disk/by-id/scsi-
SATA_Hitachi_HUA7230_MK0331YHH38L0A -> ../../sde
lrwxrwxrwx 1 root root 9 Nov 14 18:33 /dev/disk/by-id/scsi-
SATA_Hitachi_HUA7230_MK0331YHH39N3A -> ../../sdf
lrwxrwxrwx 1 root root 9 Nov 14 18:33 /dev/disk/by-id/scsi-
SATA_Hitachi_HUA7230_MK0331YHH39NMA -> ../../sdd
lrwxrwxrwx 1 root root 9 Nov 14 18:33 /dev/disk/by-id/scsi-
SATA_Hitachi_HUA7230_MK0331YHH39NNA -> ../../sdi
cat SERVER
disk_config /dev/disk/by-id/scsi-SATA_DeLOCK.* disklabel:msdos bootable:1
primary / 128- ext3 rw,errors=remount-ro
FAI's error message is:
Starting setup-storage 1.3
Device name /dev/disk/by-id/scsi-SATA_DeLOCK.* could not be substituted
(the same without the '.' did also fail)
Cheers
Carsten
More information about the linux-fai
mailing list