October 2016
Beginner
406 pages
7h 50m
English
When an array member fails, it's important to replace it as soon as possible because the failure of additional drives increases the chance of data loss. This recipe teaches you how to properly replace a bad drive and rebuild the array.
This recipe requires a CentOS system with administrative privileges provided by logging in with the root account or using sudo. It assumes that a RAID-1 configuration has been set up as described in the previous recipe and the drive that will be replaced is /dev/sdb.
Follow these steps to replace a failed disk in a RAID:
mdadm using the -f option:
mdadm /dev/md/md0 -f /dev/sdb1
Read now
Unlock full access