mdadm: add a disk and grow a RAID 5 (reshape) without losing data

–add brings the disk in as a spare; –grow –raid-devices=N starts the reshape (hours). Backup file off the array, touch nothing until /proc/mdstat finishes, then resize2fs or xfs_growfs.

September 25, 2026 · 3 min