Knowledge base / Linux & server administration
Knowledge base / Linux & server administration
Linux software RAID keeps running when a disk fails, but without redundancy. Replace the disk soon, before a second one fails.
cat /proc/mdstat mdadm --detail /dev/md0
[UU] is healthy; [U_] means one member is missing. mdadm --detail shows which.
smartctl -i /dev/sdb or ls -l /dev/disk/by-id/), so the datacenter swaps the right one.mdadm /dev/md0 --fail /dev/sdb1 --remove /dev/sdb1
sgdisk -R /dev/sdb /dev/sda && sgdisk -G /dev/sdb
mdadm /dev/md0 --add /dev/sdb1
/proc/mdstat.grub2-install or grub-install, or recreate the EFI partition).Double-check device names before every command. Removing the wrong disk from a degraded array loses data. If you're not sure, stop and call us.