really persistent SCSI device naming
Hello,
I have a need for very persistent SCSI device naming. As I understand the current SCSI device naming we have this:
Host:Channel:Target:Lun
If a new SCSI host is inserted into the machine, things move. The implementation that I'm trying to imitate with udev uses the above four bits of info plus information regarding the position of the SCSI HBA that the device is plugged into.
What is the best way to do this with udev?
any ideas would be appreciated,
thanks
mh
Signature · 15 lines
Martin Hicks Wild Open Source Inc. [email protected] 613-266-2296 ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 6 lines · Martin Hicks
Hello,
I have a need for very persistent SCSI device naming. As I understand the current SCSI device naming we have this:
Quoted 8 lines
Host:Channel:Target:Lun
If a new SCSI host is inserted into the machine, things move. The implementation that I'm trying to imitate with udev uses the above four bits of info plus information regarding the position of the SCSI HBA that the device is plugged into.
What is the best way to do this with udev?
If you need some more ideas how to create persistant namens look at
http://www.garloff.de/kurt/linux/scsidev/index.html
Ihno
Signature · 21 lines
Best regards/Mit freundlichen Grüßen Ihno Krumreich "Never trust a computer you can lift." -- Ihno Krumreich [email protected] SuSE Linux AG Projectmanager S390 & zSeries Deutschherrnstr. 15-19 +49-911-74053-439 90429 Nürnberg http://www.suse.de ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 6 lines · Martin Hicks
Hello,
I have a need for very persistent SCSI device naming. As I understand the current SCSI device naming we have this:
Quoted 8 lines
Host:Channel:Target:Lun
If a new SCSI host is inserted into the machine, things move. The implementation that I'm trying to imitate with udev uses the above four bits of info plus information regarding the position of the SCSI HBA that the device is plugged into.
What is the best way to do this with udev?
Is there anything unique about your devices you can rely on? scsi serial number? vendor? device type? label id on the filesystem?
If you can find something, then use that in a udev rule.
thanks,
greg k-h
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 14 lines · Greg KH
Quoted 13 lines · Martin Hicks
Hello,
I have a need for very persistent SCSI device naming. As I understand the current SCSI device naming we have this:
Host:Channel:Target:Lun
If a new SCSI host is inserted into the machine, things move. The implementation that I'm trying to imitate with udev uses the above four bits of info plus information regarding the position of the SCSI HBA that the device is plugged into.
Quoted 6 lines
Quoted 1 line
What is the best way to do this with udev?
Is there anything unique about your devices you can rely on? scsi serial number? vendor? device type? label id on the filesystem?
If you can find something, then use that in a udev rule.
I'll take a look at this sometime soon. I've almost got the early-userspace pieces working for me.
I think I really do want topology-dependent naming, but to the point that "Host" (above) isn't good enough. I don't want the host to change when a new SCSI card is added into the system. Replacing a defective disk should not require fixing up /etc/udev/udev.config
mh
Signature · 15 lines
Martin Hicks Wild Open Source Inc. [email protected] 613-266-2296 ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel