linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Patrick Mansfield <patmans@us.ibm.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: Re-ordering rules in config file gives different results when it should not
Date: Wed, 25 Feb 2004 02:13:36 +0000	[thread overview]
Message-ID: <20040224181336.A25430@beaverton.ibm.com> (raw)
In-Reply-To: <2F75A5CCEF1E6A4C8CA2E75CF7F529E901F26330@orsmsx409.jf.intel.com>

On Tue, Feb 24, 2004 at 06:04:06PM -0800, Sabharwal, Atul wrote:
> But what is screwing up your rules is passing a sysfs device to scsi_id.
> scsi_id -s /dev/sda in the rule is like asking "does /dev/sda have
> result
> X?", instead of "does the current device have result X?".
> 
> i.e. the rule should be:
> 
> PROGRAM="/sbin/scsi_id", BUS="scsi", RESULT="SSEAGATE ST318436LW
> 3BM07NKA000070456Z6B", NAME="host_scsi0"
> 
> >> That fixed part of the problem.  I still get only host_scsi0,
> mpath_scsi0 & mpath_scsi1
> Created. I am still not able to create host_scs1 & mpath_scsi2 device
> entries. Re-ordering
> The entries works but all 5 are not being created.
> 
> Thanks,
> 
> Atul

Atul -

Maybe verify the output of scsi_id -s /dev/sdN exactly matches your udev
rules.

If you still can't figure out what is wrong, resend your udev.rule (as an
attachment as your mailer is munging lines).

And send the output of scsi_id -s /dev/sdN for each device.

I was working on a script to autogenerate a set of udev rules using
scsi_id, and test the scsi_id fix for partitions but have been sidetracked
by other tasks.

-- 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_id\x1356&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

      parent reply	other threads:[~2004-02-25  2:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-25  0:00 Re-ordering rules in config file gives different results when it should not Sabharwal, Atul
2004-02-25  1:30 ` Patrick Mansfield
2004-02-25  2:04 ` Sabharwal, Atul
2004-02-25  2:13 ` Patrick Mansfield [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040224181336.A25430@beaverton.ibm.com \
    --to=patmans@us.ibm.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).