Monday to Saturday 8:00–19:00, Sunday closedFree courier collection throughout Switzerland · drop-off in Lugano, Zurich and Sant'Antonino

NAS and RAID

Interrupted RAIDZ expansion: what happens next

For years, the only way to grow a RAIDZ pool was to replace every disk or add another vdev. Since OpenZFS 2.3, released in 2025, a single disk can be attached to an existing RAIDZ vdev. The pool then rewrites its data across the wider layout, a process called reflow that can take days. Interrupted reflows are handled by design, but a few situations still need care.

Published 3 min readBy Mirush Murataj

Cover of the RecDati guide: Interrupted RAIDZ expansion: what happens next
A RAIDZ expansion records its progress and resumes after a reboot or a power cut.

In short

  • A RAIDZ expansion records its progress and resumes after a reboot or a power cut.
  • Free space is underestimated after expansion: old data keeps its old data-to-parity ratio.
  • A disk failing during expansion needs a careful look before anything else is changed.

How the expansion works

The command zpool attach pool raidz1-0 /dev/disk/by-id/newdisk adds the new disk to the RAIDZ vdev. ZFS then reflows the vdev: it reads the existing blocks and writes them back spread across one more disk, from the start of the vdev to the end. Progress is recorded on disk, and zpool status shows an expand: line with the amount copied and the estimated time.

Only one expansion per vdev can run at a time, and the pool stays online and usable during the process.

If it is interrupted

A reboot, a crash or a power cut does not cancel the expansion. When the pool is imported again, the reflow continues from its last recorded point. That is the intended behaviour: let it continue, and keep the system on a UPS until it finishes.

Why the space looks wrong

After the expansion, the new disk adds capacity, but existing blocks keep the data-to-parity ratio of the old width. A RAIDZ1 of four disks that becomes five disks still stores its old data as three data blocks plus one parity block. Only data written or rewritten afterwards uses the new ratio. The free space shown by zfs list is also based on the old ratio and underestimates what is available. This is expected, not damage.

A disk failing during expansion

The vdev keeps its original redundancy during the reflow: a RAIDZ1 tolerates one missing disk. But reflow reads every block, which is exactly when weak disks show errors.

  • If one disk fails, the pool degrades but stays available. Let the expansion and then a resilver finish, or follow your system's guidance on replacing the disk.
  • If the new disk itself fails, do not detach it: data is already spread onto it.
  • If two disks of a RAIDZ1 are affected, stop: do not reboot repeatedly, and have the disks imaged.

What not to do

  • Export the pool and import it on an older OpenZFS that does not support the raidz_expansion feature.
  • Remove the new disk "to cancel": an expansion cannot be undone.
  • Start a scrub, a second expansion on another vdev and heavy copy jobs at the same time on a pool with weak disks.

When the lab helps

  • The pool will not import after an expansion and a disk failure.
  • Several disks show errors during the reflow.
  • The pool was moved to another system or OpenZFS version during the expansion.

We image every disk, including the new one, read the expansion state from the vdev labels and reconstruct the pool on the images, with the part already reflowed and the rest in the original layout.

Before expanding

  • A backup and a scrub without errors.
  • SMART checks on every disk, and a new disk of at least the same size and the same type (CMR).
  • A UPS, and enough time: on large hard drives, a reflow can take several days.

See NAS data recovery, server data recovery, ZFS pool will not import: reading the messages and rewinding safely and RAID expansion or migration interrupted halfway.

Frequently asked questions

Can I stop a RAIDZ expansion?

No. It can pause through a reboot and resumes, but it cannot be cancelled once started.

Why do I not get the full capacity of the new disk?

Existing data keeps its old data-to-parity ratio until it is rewritten. The reported free space is also conservative.

Is RAIDZ expansion safe?

It is designed to survive interruptions. The main risk is weak disks failing under the long full read.

Official sources and useful links

  • OpenZFS documentation: Official documentation of OpenZFS: zpool and zfs commands, vdev types, pool features and troubleshooting.

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 NAS data recovery

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

Get a price