
In short
- During a reshape, the array is split between an old and a new layout at a precise position.
- Never recreate the array or restart the expansion with different settings.
- Save the RAID metadata of every disk: it records the reshape position.
What a reshape does
When you add a disk to a RAID 5, every stripe has to be rewritten so that it spans one more disk. Linux mdadm, which runs under Synology DSM, QNAP QTS and most other NAS systems, does this in a reshape: it reads a section in the old layout, writes it in the new layout, and records in the metadata of every disk how far it has got (the reshape position).
The most delicate moment is the critical section: the area being rewritten while the old copy is being overwritten. Older mdadm versions protect it with a backup file; newer ones move the data offset to make room, so the old data is not overwritten in place.
What triggers the problem
- A power cut or a forced reboot during the expansion, which can last several days on large disks.
- An SMR disk added to an array of CMR disks: it slows down so much under constant writes that the NAS marks it as failed.
- An automatic firmware or DSM update that restarts the NAS in the middle of a migration.
- A second disk with read errors, found only because the reshape reads every sector.
What you see
- Synology: the pool stays on Expanding or Changing RAID type with no progress, or turns Crashed after a restart.
- QNAP: the RAID group shows Migrating or Expanding indefinitely, or the pool goes inactive.
- mdadm:
cat /proc/mdstatshowsreshapestuck, or the array will not assemble andmdadm --examinereports aReshape pos'non the members.
Before doing anything
- Do not restart the expansion from the interface, and do not remove the new disk.
- Save the output of
mdadm --examinefor every member if you have shell access. TheReshape pos'n,Delta Devices,New LevelandNew Chunksizelines describe the two layouts. - Check SMART on every disk. A reshape that stalls is often a disk that has stopped answering.
Safe and unsafe ways forward
- Safe: let mdadm resume the reshape itself after a clean restart, if all disks are healthy. mdadm is designed to continue from the recorded position. If it uses a backup file, it needs that same file (
--backup-file=). - Unsafe:
mdadm --createwith the new disk count, or recreating the pool in DSM or QTS. Part of the array is still in the old layout, and the new metadata erases the record of where the boundary was. - Unsafe:
--invalid-backupwithout understanding what is lost: it tells mdadm to continue even though the critical section may be damaged.
How the lab recovers it
We image every disk, read both geometries from the metadata and rebuild the array virtually in two parts: the part already reshaped with the new layout, the rest with the old one. If the critical section was damaged, the affected stripes are reconstructed from parity. The file system is then mounted on the combined image.
Before the next expansion
- A current backup: an expansion is the most intensive operation a NAS performs.
- A UPS, and automatic updates disabled until the expansion is complete.
- Disks of the same type: CMR, same speed class, no SMR.
- Read SMART on the existing disks first, and run a data scrub.
See Synology NAS data recovery, QNAP NAS data recovery, RAID 5 data recovery and mdadm array will not assemble: a checklist before any write.
Frequently asked questions
My Synology expansion has been at the same percentage for a day. Is it stuck?
Not necessarily: large disks and busy volumes can make some phases very slow. Check the disk activity and SMART before assuming it is stuck.
Can I remove the new disk to cancel the expansion?
No. Part of the data is already spread across it, and removing it leaves the array without that part.
Is a RAID 5 to RAID 6 migration safer than an expansion?
No. It is also a full reshape and carries the same risks until it finishes.
Official sources and useful links
- Linux RAID wiki (kernel.org): Reference documentation for Linux software RAID (mdadm).
- Synology Knowledge Center: Official Synology help: DSM installation and migration, storage pools, SSD cache and encryption.
- QNAP: Official QNAP site with support, firmware downloads and security advisories for QTS and QuTS hero.
Is your data important?
Do not try anything that could make the fault worse. The diagnosis is free and you get a fixed quote before any work starts.





