網芳主機掛了一棵硬碟
shian | 19 四月, 2006 19:50今天發現網芳主機的SCSI硬碟其中一棵(/dev/sdc1)燈號一直都不會亮,用指令查了一下果然真的壞了!還好有做RAID5,明天得趕快拿去換,順便測試硬碟熱插拔。
[root@ms2 root]# dmesg | grep md0
md: created md0
md0: removing former faulty sdc1!
md0: max total readahead window set to 496k
md0: 2 data-disks, max readahead per data-disk: 248k
raid5: md0, not all disks are operational -- trying to recover array
raid5: allocated 3287kB for md0
raid5: raid level 5 set md0 active with 2 out of 3 devices, algorithm 0
md: updating md0 RAID superblock on device
md0: no spare disk to reconstruct array! -- continuing in degraded mode
[root@ms2 root]# dmesg | grep raid
raid5: measuring checksumming speed
raid5: using function: pIII_sse (2964.000 MB/sec)
md: raid5 personality registered as nr 4
raid5: device sde1 operational as raid disk 2
raid5: device sdd1 operational as raid disk 1
raid5: md0, not all disks are operational -- trying to recover array
raid5: allocated 3287kB for md0
raid5: raid level 5 set md0 active with 2 out of 3 devices, algorithm 0
raid5: switching cache buffer size, 4096 --> 1024
raid5: switching cache buffer size, 1024 --> 4096
後來發現硬碟其實沒壞,可能是接觸不良,重新拿下再裝回去,重建RAID系統,一切搞定!
[root@ms2 root]# raidhotadd /dev/md0 /dev/sdc1
[root@ms2 root]# cat /proc/mdstat
Personalities : [raid5]
read_ahead 1024 sectors
md0 : active raid5 sdc1[3] sde1[2] sdd1[1]
142255360 blocks level 5, 4k chunk, algorithm 0 [3/2] [_UU]
[>....................] recovery = 2.2% (1618448/71127680) finish=115.8min speed=10001K/sec
unused devices: <none>
Posted in
網管工作 .
迴響: (0).
引用:(0).
靜態連結網址
«Next post |
Previous post»