From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Mansfield Date: Tue, 24 Feb 2004 17:32:48 +0000 Subject: Re: Udev and SCSI/Fiber channel devices Message-Id: <20040224093247.A19485@beaverton.ibm.com> List-Id: References: <2F75A5CCEF1E6A4C8CA2E75CF7F529E901F260D7@orsmsx409.jf.intel.com> In-Reply-To: <2F75A5CCEF1E6A4C8CA2E75CF7F529E901F260D7@orsmsx409.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, Feb 24, 2004 at 09:03:39AM -0800, Sabharwal, Atul wrote: > I tried /sbin/scsi_id also: So, tried combination #1 & #2. Do we need > the method prefix or > Its implied. Somewhere in the documentation, there were examples based > on PCI slot number > But there was no prefix TOPOLOGY. > > 1. CALLOUT, PROGRAM="/sbin/scsid -p 0x80 -s /block/sda| awk ' {}; end { > print$3 }'", BUS="scsi", ID="325687809", NAME="host_scsi" > > 2. PROGRAM="/sbin/scsid -p 0x80 -s /block/sda| awk ' {}; end { print$3 > }'", BUS="scsi", ID="325687809", NAME="host_scsi" > > -- > Atul Yes, that should have been PROGRAM not CALLOUT in my previous email, as there is no CALLOUT, so the rule should be like: BUS="scsi", PROGRAM="/sbin/scsi_id", ID="325687809", NAME="your_disk" But what is the output of: /sbin/scsi_id -s /block/sda Whatever the result is what you want in the ID field. And, you need a line like this in your /etc/scsi_id.config: options=-g -- Patrick Mansfield ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ 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