* really persistent SCSI device naming
@ 2003-11-14 3:27 Martin Hicks
2003-11-14 7:14 ` Ihno Krumreich
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Martin Hicks @ 2003-11-14 3:27 UTC (permalink / raw)
To: linux-hotplug
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
--
Martin Hicks Wild Open Source Inc.
mort@wildopensource.com 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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: really persistent SCSI device naming
2003-11-14 3:27 really persistent SCSI device naming Martin Hicks
@ 2003-11-14 7:14 ` Ihno Krumreich
2003-11-20 16:54 ` Greg KH
2003-11-20 18:33 ` Martin Hicks
2 siblings, 0 replies; 4+ messages in thread
From: Ihno Krumreich @ 2003-11-14 7:14 UTC (permalink / raw)
To: linux-hotplug
On Thu, Nov 13, 2003 at 10:27:17PM -0500, Martin Hicks wrote:
>
> 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?
If you need some more ideas how to create persistant namens look at
http://www.garloff.de/kurt/linux/scsidev/index.html
Ihno
--
Best regards/Mit freundlichen Grüßen
Ihno Krumreich
"Never trust a computer you can lift."
--
Ihno Krumreich ihno@suse.de
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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: really persistent SCSI device naming
2003-11-14 3:27 really persistent SCSI device naming Martin Hicks
2003-11-14 7:14 ` Ihno Krumreich
@ 2003-11-20 16:54 ` Greg KH
2003-11-20 18:33 ` Martin Hicks
2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2003-11-20 16:54 UTC (permalink / raw)
To: linux-hotplug
On Thu, Nov 13, 2003 at 10:27:17PM -0500, Martin Hicks wrote:
>
> 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?
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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: really persistent SCSI device naming
2003-11-14 3:27 really persistent SCSI device naming Martin Hicks
2003-11-14 7:14 ` Ihno Krumreich
2003-11-20 16:54 ` Greg KH
@ 2003-11-20 18:33 ` Martin Hicks
2 siblings, 0 replies; 4+ messages in thread
From: Martin Hicks @ 2003-11-20 18:33 UTC (permalink / raw)
To: linux-hotplug
On Thu, 2003-11-20 at 11:54, Greg KH wrote:
> On Thu, Nov 13, 2003 at 10:27:17PM -0500, Martin Hicks wrote:
> >
> > 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?
>
> 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
--
Martin Hicks Wild Open Source Inc.
mort@wildopensource.com 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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-11-20 18:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-14 3:27 really persistent SCSI device naming Martin Hicks
2003-11-14 7:14 ` Ihno Krumreich
2003-11-20 16:54 ` Greg KH
2003-11-20 18:33 ` Martin Hicks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).