From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Hicks Date: Thu, 20 Nov 2003 18:33:49 +0000 Subject: Re: really persistent SCSI device naming Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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