[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-hotplug
Subject: Re: How to make a SCSI disk sda instead of SATA disks?
From: David Zeuthen <david () fubar ! dk>
Date: 2007-10-20 0:09:30
Message-ID: 1192838970.14591.2.camel () oneill ! fubar ! dk
[Download RAW message or body]
On Fri, 2007-10-19 at 21:44 +0000, Carl Perry wrote:
> I have a system with a SCSI boot drive, and a series of SATA data drives. It's
> running Debian Etch AMD64. Currently, udev seems to be making devices for the
> SATA drives before making devices for the SCSI drives. I'd like to make this go
> the other way around, or get a different device name for the SCSI disk. The
> number of SATA drives has been known to change, and currently I need to update
> /etc/fstab every time the number of SATA drives do change because that moves
> where the SCSI drive appears.
>
> I've tried adding a rule so that the model number of the SCSI drive is assigned
> to sda, but that was ignored. I've also tried forcing module load order to the
> aic79xx controller before the sata_sil controller. The SATA drives still had
> their devices created first, with the SCSI drive appearing as sdc.
>
> Any help would be appreciated. Thanks!
Relying on the assumption that the kernel-given names will remain stable
is a losing proposition; it's just not going to work. Instead, just use
the symlinks in /dev/disk/* instead; for example that's what I do for my
SATA disk tower
$ cat /etc/mdadm.conf
DEVICE /dev/disk/by-id/scsi-SATA_WDC_WD5000AAJS-_WD-WCAPW0295169
DEVICE /dev/disk/by-id/scsi-SATA_WDC_WD5000AAJS-_WD-WCAPW0594845
DEVICE /dev/disk/by-id/scsi-SATA_WDC_WD5000AAKS-_WD-WCAPW0493929
DEVICE /dev/disk/by-id/scsi-SATA_WDC_WD5000KS-00_WD-WCANU1914880
DEVICE /dev/disk/by-id/scsi-SATA_WDC_WD5000KS-00_WD-WCANU2209762
ARRAY /dev/Fusion500P uuid=c5fc394c:f33279ab:7630b1ba:099a5109 auto=md
Hope this helps,
David
-------------------------------------------------------------------------
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic