Software RAID with mdadm
cheat sheet · Linux · mdadm https://lab.dimsanych.ru/en/wiki/mdadm/Cheat sheet
-
cat /proc/mdstatstatus (degraded? rebuilding?) -
sudo mdadm --detail /dev/md0 -
sudo mdadm /dev/md0 --fail /dev/sdX --remove /dev/sdXmark and remove the failed one -
sudo mdadm /dev/md0 --add /dev/sdYadd a disk in its place -
sudo mdadm --grow /dev/md0 --raid-devices=4grow the array -
sudo mdadm --detail --scan | sudo tee -a /etc/mdadm/mdadm.confsave the config