---
title: RAID Expansion or Migration Interrupted: SHR, RAID 5 to 6 and Capacity Expansion
url: https://recdati.ch/en/guides/raid-expansion-or-migration-interrupted/
description: A Synology SHR expansion, a QNAP RAID migration or an mdadm reshape stopped halfway after a power cut or a reboot? How a reshape works, why restarting it blindly is risky, and how the data is recovered.
language: en
---

NAS and RAID

# RAID expansion or migration interrupted halfway

Adding a disk to a RAID, or changing a RAID 5 into a RAID 6, means rewriting the whole array in a new layout. For hours or days, part of the data is stored the old way and part the new way. If the process stops in the middle, the array has to know exactly where it was. Usually it does. When it does not, the recovery depends on not guessing.

Published 29 November 20263 min readBy [Mirush Murataj](https://recdati.ch/en/about-us/#author)

During a reshape, the array is split between an old and a new layout at a precise position.

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/mdstat` shows `reshape` stuck, or the array will not assemble and `mdadm --examine` reports a `Reshape pos'n` on the members.

## Before doing anything

1. Do not restart the expansion from the interface, and do not remove the new disk.
2. Save the output of `mdadm --examine` for every member if you have shell access. The `Reshape pos'n`, `Delta Devices`, `New Level` and `New Chunksize` lines describe the two layouts.
3. 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 --create` with 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-backup` without 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](https://recdati.ch/en/data-recovery/synology-nas/), [QNAP NAS data recovery](https://recdati.ch/en/data-recovery/qnap-nas/), [RAID 5 data recovery](https://recdati.ch/en/data-recovery/raid-5/) and [mdadm array will not assemble: a checklist before any write](https://recdati.ch/en/guides/mdadm-raid-will-not-assemble-checklist/).

## 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)](https://raid.wiki.kernel.org/): Reference documentation for Linux software RAID (mdadm).
- [Synology Knowledge Center](https://kb.synology.com/): Official Synology help: DSM installation and migration, storage pools, SSD cache and encryption.
- [QNAP](https://www.qnap.com/): Official QNAP site with support, firmware downloads and security advisories for QTS and QuTS hero.

Share this guide

- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Frecdati.ch%2Fen%2Fguides%2Fraid-expansion-or-migration-interrupted%2F)
- [Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Frecdati.ch%2Fen%2Fguides%2Fraid-expansion-or-migration-interrupted%2F)
- [WhatsApp](https://wa.me/?text=https%3A%2F%2Frecdati.ch%2Fen%2Fguides%2Fraid-expansion-or-migration-interrupted%2F)
- [Email](mailto:?body=https%3A%2F%2Frecdati.ch%2Fen%2Fguides%2Fraid-expansion-or-migration-interrupted%2F)
-

Cite this article

Murataj, Mirush. "RAID expansion or migration interrupted halfway". RecDati, 29 November 2026. https://recdati.ch/en/guides/raid-expansion-or-migration-interrupted/

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.

[Request a free diagnosis](https://recdati.ch/en/free-diagnosis/) [RAID data recovery](https://recdati.ch/en/data-recovery/raid/)

Need a diagnosis?

Free, no obligation, reply within 2 hours.

[Free diagnosis](https://recdati.ch/en/free-diagnosis/)

## Read next

- [Pulled the wrong disk from a RAID: the first 10 minutesIt happens in server rooms and small offices alike: a RAID 5 is degraded, someone goes to replace the failed…](https://recdati.ch/en/guides/pulled-wrong-disk-from-raid/)
- [NAS SSD cache failure: why the volume crashesAn SSD cache makes a NAS faster, but a read-write cache also holds data that has not yet reached the hard…](https://recdati.ch/en/guides/nas-ssd-cache-failure-volume-crashed/)
- [Ransomware on a NAS: what is different, what can be savedRansomware that targets a NAS does not arrive through an email attachment. It comes through the NAS itself,…](https://recdati.ch/en/guides/nas-ransomware-deadbolt-qlocker-snapshots/)
- [ZFS pool will not import: reading the messages and rewinding safelyZFS is built never to overwrite live data, so a pool that will not import has almost always kept an older,…](https://recdati.ch/en/guides/zfs-pool-will-not-import/)
- [Data loss on a server: when the FADP requires a notificationMost people associate a data breach with stolen data. The revised Swiss Federal Act on Data Protection…](https://recdati.ch/en/guides/server-data-loss-fadp-breach-notification/)
- [Punctured stripe on PERC and MegaRAID: reading the controller logA punctured stripe is the controller's way of keeping an array online when it has found a stripe it cannot…](https://recdati.ch/en/guides/punctured-stripe-megaraid-perc/)

Device not responding any more? Unplug it and let us take a look.

[Free diagnosis](https://recdati.ch/en/free-diagnosis/)
