Need help with udev in CentOS 6.0 for SATA and eSATA HD

Issues related to hardware problems
Post Reply
rothmail
Posts: 40
Joined: 2005/12/27 06:33:34
Location: New York City metro area

Need help with udev in CentOS 6.0 for SATA and eSATA HD

Post by rothmail » 2011/10/12 06:40:47

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!

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Need help with udev in CentOS 6.0 for SATA and eSATA HD

Post by gerald_clark » 2011/10/12 15:40:00

The RAIDs should assemble based on the UUIDs of the drives, so drive mapping should not be an issue.
The main concern is the BIOS drive order for booting.

rothmail
Posts: 40
Joined: 2005/12/27 06:33:34
Location: New York City metro area

Re: Need help with udev in CentOS 6.0 for SATA and eSATA HD

Post by rothmail » 2011/10/13 05:53:00

[quote]
gerald_clark wrote:
The RAIDs should assemble based on the UUIDs of the drives, so drive mapping should not be an issue.
The main concern is the BIOS drive order for booting.[/quote]

Thanks very much for your helpful post, Gerald!

Post Reply