On 4/17/20 10:05 AM, Romain Dolbeau wrote: > Maybe 'lssci' can help with your question? > > dolbeau@powermacg5:~$ lsscsi -tv > [0:0:0:0] cd/dvd ata: /dev/sr0 > dir: /sys/bus/scsi/devices/0:0:0:0 > [/sys/devices/pci0001:00/0001:00:09.0/0001:03:0d.0/ata1/host0/target0:0:0/0:0:0:0] > [1:0:0:0] disk sata:ATA MAXTOR STM3250310AS > 6RY691D9 /dev/sda > dir: /sys/bus/scsi/devices/1:0:0:0 > [/sys/devices/pci0001:00/0001:00:09.0/0001:03:0c.0/ata2/host1/target1:0:0/1:0:0:0] > [2:0:0:0] disk sata:ATA MAXTOR STM3250310AS > 6RY5MRVX /dev/sdb > dir: /sys/bus/scsi/devices/2:0:0:0 > [/sys/devices/pci0001:00/0001:00:09.0/0001:03:0c.0/ata3/host2/target2:0:0/2:0:0:0]
It's not clear to me yet which part of the path here is the "plug ID", one could assume it's correlated to the host. Can you edit Yaboot's ofpath script and set DEBUG=1, then run "ofpath" on both /dev/sda1 and /dev/sdb1? root@kapitsa:~/yaboot-test/usr/sbin# ./ofpath /dev/sda1 SYS_DEVICE=/sys/devices/vio/30000002/host0/target0:0:4/0:0:4:0 SCSI_DEVICE=0:0:4:0 HOST_ID=0 BUS_ID=0 DEVICE_ID=4 LUN_ID=0 PLUG_ID=0 IEEE1394_ID= SCSI_NAME=v-scsi SCSI_DRIVER=ibmvscsi SYS_PATH=/sys/devices/vio/30000002 OF_PATH=/vdevice/v-scsi@30000002 PART=:1 LUNX= /vdevice/v-scsi@30000002/@4:1 root@kapitsa:~/yaboot-test/usr/sbin# -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913