Pasos a seguir cuando me falla un disco del raid5:

# I have three disks: sdb, sdc and sdd. Failed disk is sdc
# get SN
root@server ~ # smartctl -a /dev/sdc|grep -i serial
# verify that sdc has failed
root@server ~ # cat /proc/mdstat 
Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10] 
md0 : active raid5 sdd[3] sdb[0] sdc[1](F)
      3906766848 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [U_U]
      bitmap: 11/15 pages [44KB], 65536KB chunk
# force fail and remove
root@server ~ # mdadm --manage /dev/md0 --fail /dev/sdc
root@server ~ # mdadm --manage /dev/md0 --remove /dev/sdc
# verify sdc is not part of the raid
root@server ~ # cat /proc/mdstat 
Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10] 
md0 : active raid5 sdd[3] sdb[0]
      3906766848 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [U_U]
      bitmap: 11/15 pages [44KB], 65536KB chunk
# shutdown and replace disk (verify with serial number!). Then, boot and add new drive and clear partitions
root@server ~ # mdadm --manage /dev/md0 --add /dev/sdc
# monitor reconstruction progress
root@server ~ # cat /proc/mdstat 
Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10] 
md0 : active raid5 sdc[4] sdb[0] sdd[3]
      3906766848 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [U_U]
      [>....................]  recovery =  2.1% (41177472/1953383424) finish=270.5min speed=117797K/sec
      bitmap: 12/15 pages [48KB], 65536KB chunk

unused devices: 

Reemplazar un disco en fallo del raid5

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *