up vote 1 down vote favorite
share [g+] share [fb]

I have a server with software RAID 1, two hot-swap sata disks. One hard drive started showing errors, I'm thinking about removing and replacing it, only problem is that I have no idea which of the two correspond to which devices. And I can't shut the server down to find out.

I have /dev/sda and /dev/sdb, /dev/sda is the failing one. Thought about doing something along the lines

# mdadm --manage /dev/md0 --remove /dev/sda1

then somehow stop/suspend the drive using tuning software and try to listen which of the two stopped, but that's not gonna work in a noisy server environment. Drive panels have no LEDs.

Thanks for any ideas!

link|improve this question

72% accept rate
feedback

3 Answers

up vote 1 down vote accepted

The A and B in sda and sdb should map to channels 1 and 2 (or 0 and 1) for your drives. If the system is set up so that they're labeled, you can tell that way. I don't know how your drives are structured with the wiring; I've had them numbered with small print on the motherboard so you can tell what port is going to what drive.

I supposed you could use your idea to then try feeling for vibration from the drives too, if there's enough room for you to feel the drives. Again depends on the way they're mounted.

link|improve this answer
Thanks, I haven't thought about their vibration, something to keep in mind. – Karolis T. Sep 10 '09 at 17:11
feedback

Can you see S/N on disks? Use hdparm -i /dev/sda to get S/N and identify disk.

link|improve this answer
Yes, I can. smartctl -i /dev/sda shows serial number, same for sdb. Not sure if this helps though, as they're covered from above in their hot-swap slots. – Karolis T. Sep 10 '09 at 17:09
feedback

An easy way to check which drive is which, if you have proper drive LEDs, is to just

dd if=/dev/sda of=/dev/null

And see which one has a light that is solidly stuck on.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.