Expand capacity of raidz1 pool

Matthias Fechner idefix at fechner.net
Sat Feb 9 09:16:18 UTC 2019

Am 08.02.2019 um 23:44 schrieb Anders Jensen-Waud:
> Hello there
> I have a 1 TB raidz1 pool on FreeBSD 11 (root on separate volume). I need more capacity and am looking to migrate to a mirror with 10 TB (min).
> How do I migrate the raidz1 pool to a new pool?
> Constraint: I only have capacity for 4 drives in the machine. 3 are currently occupied (root is on a small ssd). This will be important during the migration period.

you can enable autoexpand on the pool:
zpool set autoexpand=on tank

Insert a new disc, create partitions and replace disc by disc with:
zpool replace tank /dev/sdx /dev/sdy

After the disc is replace continue with the next disc.

With these steps you should be able to migrate to new discs without
losing data.

If you have important data on disc, you should have a backup before you

Good luck.



"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook

More information about the freebsd-questions mailing list