* order of sd? drives and mdadm
@ 2007-11-05 13:58 Yan Seiner
2007-11-05 19:20 ` martin f krafft
0 siblings, 1 reply; 2+ messages in thread
From: Yan Seiner @ 2007-11-05 13:58 UTC (permalink / raw)
To: linux-hotplug
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-05 19:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-05 13:58 order of sd? drives and mdadm Yan Seiner
2007-11-05 19:20 ` martin f krafft
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).