System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

disk failure within raid1 ??

MikeL_4
Super Advisor

disk failure within raid1 ??

We had a disk failure within a raid 1 group on our Red Hat Linux 3 server.... It did resync with a spare within the group, but I'm not sure what I need to do from here with the failed partition ??

# view of: /var/log/messages
Mar 13 11:46:27 cvgpodev1 kernel: end_request: I/O error, dev 16:01 (hdc), sector 2414792
Mar 13 11:46:27 cvgpodev1 kernel: raid1: Disk failure on hdc1, disabling device.
Mar 13 11:46:27 cvgpodev1 kernel: ^IOperation continuing on 1 devices
Mar 13 11:46:27 cvgpodev1 kernel: raid1: hdc1: rescheduling block 2414792
Mar 13 11:46:27 cvgpodev1 kernel: md7: resyncing spare disk hdd2 to replace failed disk
Mar 13 11:46:27 cvgpodev1 kernel: RAID1 conf printout:
Mar 13 11:46:27 cvgpodev1 kernel: --- wd:1 rd:2 nd:4
Mar 13 11:46:27 cvgpodev1 kernel: disk 0, s:0, o:0, n:0 rd:0 us:1 dev:hdc1
....
Mar 13 11:46:32 cvgpodev1 kernel: md: using maximum available idle IO bandwith (but not more than 10000 KB/sec) for reconstruction.
Mar 13 11:46:32 cvgpodev1 kernel: md: using 124k window, over a total of 1534080 blocks.
Mar 13 11:46:32 cvgpodev1 kernel: raid1: hdd1: redirecting sector 2414792 to another mirror
Mar 13 11:57:50 cvgpodev1 kernel: md: md7: sync done.
....

# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 3 (Taroon)

# df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/md7 1475 995 405 72% /

# cat /etc/raidtab
raiddev /dev/md7
raid-level 1
nr-raid-disks 2
chunk-size 64k
persistent-superblock 1
nr-spare-disks 2
device /dev/hdc1
raid-disk 0
device /dev/hdc2
raid-disk 1
device /dev/hdd1
spare-disk 0
device /dev/hdd2
spare-disk 1

Thanks
1 REPLY
Ivan Ferreira
Honored Contributor

Re: disk failure within raid1 ??

Please see this link, very detailed information:

http://www.docs.hp.com/en/5991-7402/ch21s04.html
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?