How to know which block device maps to which physical drive

Posted by Karolis T. on Server Fault See other posts from Server Fault or by Karolis T.
Published on 2009-09-10T16:55:14Z Indexed on 2013/10/26 3:57 UTC
Read the original article Hit count: 522

Filed under:
|
|

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!

© Server Fault or respective owner

Related posts about linux

Related posts about raid