From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yan Seiner Date: Mon, 05 Nov 2007 13:58:31 +0000 Subject: order of sd? drives and mdadm Message-Id: <472F2187.9060002@seiner.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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