linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yan Seiner <yan@seiner.com>
To: linux-hotplug@vger.kernel.org
Subject: order of sd? drives and mdadm
Date: Mon, 05 Nov 2007 13:58:31 +0000	[thread overview]
Message-ID: <472F2187.9060002@seiner.com> (raw)

I think I have a problem with device naming.

My machine consists of 2 identical SCSI drives, 6 identical SATA drives, 
and 1 USB drive.  All show up as sd? devices.

The problem is that on boot, occasionally the machine fails to boot, 
with mdadm complaining it can't
start /dev/md0 and / doesn't exist.

I suspect what is happening is that the scsi devices change from the 
time the system boots up and when the kernel assigns the device names, 
in effect pulling the rug out from under mdadm.

I suspect this because the device names change from boot to boot, and I 
have to retry booting numerous times before I get the right combination.

So... Two questions:

1.  Does this sound reasonable?

2.  If so, how can I write rules to make sd device names sticky?  I'm 
leery of just hacking away as if I really bugger things up I could make 
the machine unbootable.

Just from looking at things, it looks like I should be able to use

    KERNELS="2:0:2:0",  SUBSYSTEMS="scsi", NAME="sda"
    KERNELS="2:0:8:0",  SUBSYSTEMS="scsi", NAME="sdb"

and so on.  Does that sound right?  Where in the rules should I put this?

Thanks,

--Yan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.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

             reply	other threads:[~2007-11-05 13:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-05 13:58 Yan Seiner [this message]
2007-11-05 19:20 ` order of sd? drives and mdadm martin f krafft

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=472F2187.9060002@seiner.com \
    --to=yan@seiner.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).