Re: ZFS: replace all disks on new, larger ones, in mirror or zraid[2] — will it work?

John Nielsen lists at jnielsen.net
Tue Apr 14 18:13:46 UTC 2015


On Apr 14, 2015, at 12:05 PM, Lev Serebryakov <lev at freebsd.org> wrote:

> Say, I have ZFS pool consist of raidz vdev with 3x1TB disks. It is
> 2Tb effective storage space, right? Now I could remove 1 disk (as
> failed one) and replace it with new, 2TB HDD. After resilvering I
> could replace second 1TB HDD, and, then, third one. Now I have raidz
> vdev with 3x2TB disks. Will I have 4TB effective storage space in my poo
> l?
> 
> I know, that it is impossible to add NEW disk to raidz, but here is
> replacement smaller disks with larger ones, one-by-one.
> 
> The same question could be asked about mirror and raidz2/raidz3 :)

Yes, that is the recommended way to increase the capacity of an existing vdev and I have done that more than once. Once you have replaced all the devices and the vdev is finished resilvering, a “zpool online -e …” will make the additional space available.

JN



More information about the freebsd-fs mailing list