software RAID: how do I know which HD has failed?

From: Robert Nagle (idiotprogrammer_at_yahoo.com)
Date: 12/11/03


Date: 11 Dec 2003 10:43:40 -0800

Hi, I got a message that one of my 3 drives on RAID 5 array has
failed. Specifically,

*************(from webmin alert)

RAID device options
Device file /dev/md3
RAID level Redundant (RAID5)
Status Active and mounted on /
Persistent superblock? Yes
Parity algorithm left-symmetric
Chunk size 32 kB
Partitions in RAID IDE device A partition 3 (Down)
IDE device E partition 3
IDE device G partition 3

1)How do I know which hard drive inside my server is hard drive A?
(If I replace the wrong hard drive, doesn't that screw up the raid
array permanently?)

2)I have actually 3 different arrays: md1 (boot--raid1), md3 (/ raid
5, the problem RAID) and md4 (/home raid5). Curiously, only hda3 on
md3 seems to be down. Why would one of the only one of the partitions
on hda be down? (Wouldn't it affect the whole disk?). Does that imply
that even in the event of catastrophic failure, md4 (/home
directories) would be perfectly safe?)

Robert Nagle, idiotprogrammer, Texas
http://www.imaginaryplanet.net/weblogs/idiotprogrammer/index.php

 # cat /proc/mdstat
Personalities : [raid1] [raid5]
read_ahead 1024 sectors
md1 : active raid1 ide/host2/bus1/target0/lun0/part1[2]
ide/host2/bus0/target0/lun0/part1[1]
ide/host0/bus0/target0/lun0/part1[0]
      96256 blocks [2/2] [UU]

md3 : active raid5 ide/host2/bus1/target0/lun0/part3[2]
ide/host2/bus0/target0/lun0/part3[1]
      58588800 blocks level 5, 32k chunk, algorithm 2 [3/2] [_UU]

md4 : active raid5 ide/host2/bus1/target0/lun0/part4[2]
ide/host2/bus0/target0/lun0/part4[1]
ide/host0/bus0/target0/lun0/part4[0]
      55512448 blocks level 5, 32k chunk, algorithm 2 [3/3] [UUU]

www root # lsraid -a /dev/md3
lsraid: Unable to allocate memory while querying md device
[dev 9, 3] /dev/md3: Cannot allocate memory

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md3 58587008 7710480 50876528 14% /
tmpfs 58587008 7710480 50876528 14%
/var/lib/init.d
/dev/md4 55510748 53822932 1687816 97% /home
none 451716 0 451716 0% /dev/shm

/dev/md3 on / type reiserfs (rw,notail)
proc on /proc type proc (rw)
none on /dev type devfs (rw)
tmpfs on /var/lib/init.d type tmpfs (rw,mode=0644,size=2048k)
/dev/md4 on /home type reiserfs (rw,notail)
none on /dev/shm type tmpfs (rw)

#raid5 for 3 60gig hd
#/boot
raiddev /dev/md1
raid-level 1
nr-raid-disks 2
nr-spare-disks 1
chunk-size 32
persistent-superblock 1
device /dev/hda1
raid-disk 0
device /dev/hde1
raid-disk 1
device /dev/hdg1
spare-disk 0

#note: swap is on hda2, hde2, hdg2
#/ partition
raiddev /dev/md3
raid-level 5
nr-raid-disks 3
nr-spare-disks 0
chunk-size 32
persistent-superblock 1
parity-algorithm left-symmetric
device /dev/hda3
raid-disk 0
device /dev/hde3
raid-disk 1
device /dev/hdg3
raid-disk 2

# /home partition raid5
raiddev /dev/md4
raid-level 5
nr-raid-disks 3
nr-spare-disks 0
persistent-superblock 1
parity-algorithm left-symmetric
chunk-size 32
device /dev/hda4
raid-disk 0
device /dev/hde4
raid-disk 1
device /dev/hdg4
raid-disk 2



Relevant Pages

  • Re: RAID 1 drives and mirroring of data for backup question
    ... I reread the message and his RAID isn't ... > OP was that the 2nd partition existed, it just had nothing on it. ... > "Frank McCallister SBS MVP" wrote in message ... >>>I have a question about RAID 1 drives. ...
    (microsoft.public.windows.server.sbs)
  • Re: questions on partitions for exchange
    ... If your backup is using the exchange backup API, ... build process that starts with a FAT partition and then converts it to NTFS. ... The second local RAID 1 with the SMTP is fine if this is not a cluster. ... Because of the limitation on the number of physical drives, ...
    (microsoft.public.exchange.setup)
  • Re: A Problem With Replacing a Windows XP Computer Systems Disk Drives
    ... transfer a raid array from one set of drives to another. ... OS: Windows XP Home ... Four IDE 250GB drives in two Raid 0 Arrays ... Using the software provide by Seagate to copy the boot partition was ...
    (microsoft.public.windowsxp.hardware)
  • Re: RAID, partitioning and imaging
    ... Any partition created will be mirrored / identical in your second raid drive ... You are aware that raid 1 is a mirror?, and as such you should be able to ... mirror, and so the problem would exist on both drives, so ...
    (microsoft.public.windowsxp.general)
  • Re: Partition Question
    ... I'm also setting up a SBS Server but with SAS 6 drives. ... Is there any performance benfits in having the OS + Exchange & SQL Logs on ... RAID 1 and Exchange/SQL/user Data on RAID 5? ... I am planning a partition scheme that looks like this: ...
    (microsoft.public.windows.server.sbs)