[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Persistent disk naming: per controller/host



I'm in the process of porting d-i to a number of NAS devices that can
hold 2 or 4 disks.  The long standing problem of persistent disk
naming is thus an issue for me.  Since the hardware in those NAS
devices doesn't change, I was thinking that controller-host would be a
good idea to identify a disk, i.e. which controller a disk is
connected to.

On my machine I see the following:

foobar:/dev/disk/by-path# ls -la
total 0
drwxr-xr-x 2 root root 240 Jan  1 01:00 .
drwxr-xr-x 5 root root 100 Jan  1 01:00 ..
lrwxrwxrwx 1 root root   9 Jan  1 01:00 platform-sata_mv.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root  10 Jan  1 01:00 platform-sata_mv.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root  10 Jan  1 01:00 platform-sata_mv.0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root  10 Jan  1 01:00 platform-sata_mv.0-scsi-0:0:0:0-part5 -> ../../sda5
lrwxrwxrwx 1 root root  10 Jan  1 01:00 platform-sata_mv.0-scsi-0:0:0:0-part6 -> ../../sda6
lrwxrwxrwx 1 root root   9 Jan  1 01:00 platform-sata_mv.0-scsi-1:0:0:0 -> ../../sdb
lrwxrwxrwx 1 root root  10 Jan  1 01:00 platform-sata_mv.0-scsi-1:0:0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  10 Jan  1 01:00 platform-sata_mv.0-scsi-1:0:0:0-part2 -> ../../sdb2
lrwxrwxrwx 1 root root  10 Jan  1 01:00 platform-sata_mv.0-scsi-1:0:0:0-part3 -> ../../sdb3
lrwxrwxrwx 1 root root  10 Jan  1 01:00 platform-sata_mv.0-scsi-1:0:0:0-part4 -> ../../sdb4
foobar:/dev/disk/by-path#

Do people think this would be a reasonable approach, or is a generic solution
finally coming forth?

-- 
Martin Michlmayr
http://www.cyrius.com/


Reply to: