linux:centos:software-raid1-setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
linux:centos:software-raid1-setup [2020/04/14 09:40] – odefta | linux:centos:software-raid1-setup [2020/04/22 20:59] – [Replace a failed hard disk in the raid configuration] odefta | ||
---|---|---|---|
Line 108: | Line 108: | ||
</ | </ | ||
+ | ==== Replace a failed hard disk in the raid configuration ==== | ||
+ | |||
+ | Suppose the /dev/sdb hard disk failed. \\ | ||
+ | To replace it with a good hdd, set it as failed and remove it from the array: | ||
+ | < | ||
+ | mdadm /dev/md0 --fail /dev/sdb --remove /dev/sdb | ||
+ | </ | ||
+ | |||
+ | Add the new device to the array: | ||
+ | < | ||
+ | mdadm --add /dev/md0 /dev/sdb | ||
+ | </ | ||
+ | |||
+ | |||
linux/centos/software-raid1-setup.txt · Last modified: 2023/07/26 16:06 by odefta