Quoth Leonid Podolny: > Hi, list, > Provided that I have a host, channel, id and lun of the physical scsi > disk, what is a correct and portable way to know the /dev/sdX device > name? I need the solution to be portable between different 2.6 kernel > releases. The full story is this. We have a testing lab. All the > computers are connected to a FC switch, which in turn is connected to a > rack of SCSI disks. All the disks are visible to all the computers. After > investigating a couple of woodoos we found out that, say, /dev/sda on one > box does not necessarily point to the same physical disk as /dev/sda on > another one.
Assuming you are running devfs, you can know which device is what - since they're indicated by their host, channel, id and lun. alas - you cannot do the same with sdX without parsing dmesg and its ilk. Of course - devfs is being invalided out of the kernel, so you need to get friendly with sysfs and company and or udevfs. -- ---MAV Marc A. Volovic [EMAIL PROTECTED] Swiftouch, LTD +972-544-676764 ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
