Use smartctl from the smartmontools package. If mdadm says that /dev/sdc (or cat /proc/mdstat) is at fault then use "smartctl -a /dev/sdc" and it will print out all kinds of info on the drive including its serial number which should be on a sticker on the case of the drive.

The programs included with smartmontools might have warned you of an impending failure. I have a smart self long test run om my drives 2 times a week.

*...Bob*

On 06/16/2010 09:32 AM, Steven wrote:
On Wed, June 16, 2010 13:13, Siju George wrote:
Hope some one finds this helpful :-)

--Siju

Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault.
=========================================================================

Thanks, this might prove useful.
However I do have a question... which might be just as important.

How to identify which drive has failed in an array?

I have 6 disks, 4 are used in raid (mdadm), the other 2 contain /boot, /
and /home.
/dev/sdc
/dev/sdd
/dev/sde
/dev/sdf
Each have 1 partition.
/dev/md0 (raid 1) consists of /dev/sdc1 and /dev/sdd1
/dev/md1 (raid 1) consists of /dev/sde1 and /dev/sdf1

If a drive fails, how do I know which drive? This is a desktop system, not
a server.

Reply via email to