* Need help with udev in CentOS 6.0 for SATA and eSATA HD
@ 2011-10-12 7:11 David Roth
0 siblings, 0 replies; only message in thread
From: David Roth @ 2011-10-12 7:11 UTC (permalink / raw)
To: linux-hotplug
I've recently installed CentOS 6.0 X86_64.
I have a server with two internal SATA hard disk drives running a
software RAID 1. I'm adding two external eSATA hard disk drives which
will be mirrored in a software RAID 1 too.
Please kindly correct me if this information is wrong, but I was told
that the internal drives must be /dev/sda and /dev/sdb. And the eSATA
should be /dev/sdc and /dev/sdd.
During my testing, I connected just one LaCie eSATA drive and it's
getting assigned /dev/sdb while the internal drives are being
assigned /dev/sda and /dev/sdc.
I want the internal drives to be sda and sdb. This external eSATA for
testing to be /dev/sdc.
I've written some rules and placed them in /etc/udev/rules.d in a file
named 10-local.rules:
KERNEL="sd*",ATTRS{model}="LaCie d2Next-Q",NAME="sdc"
The above didn't work. I wondered if matching on KERNEL might be the
problem. So I tried this:
ATTRS{model}="LaCie d2Next-Q",NAME="sdc"
This didn't work either.
I've used udev successfully on CentOS 5 with USB drives to create
SYMLINKs. But this is the first time I've tried to work with SATA
drives where I want to force a renaming of the device. I don't think I
should be trying to do a SYMLINK, because I simply want the device
name itself changed.
By the way, I've also noticed that using udevadm it doesn't list the
serial number of the drive like it did with udevinfo, unless I'm doing
this wrong?
udevadm info -a -p $(udevadm info -q path -n /dev/sda)
Thanks in advance for your helpful suggestions!
David Roth
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-12 7:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-12 7:11 Need help with udev in CentOS 6.0 for SATA and eSATA HD David Roth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox