[PVE-User] zfs raidz2 expansion

Aaron Lauterer a.lauterer at proxmox.com
Fri May 23 10:50:24 CEST 2025


On  2025-05-22  23:03, Randy Bush wrote:
>>> so, can i specify a second pool to be replication target, as i
>>> suggested in
>>>>> as we do full replication, we could just create a new pool for
>>>>> replocation and call it a day.
>>>
>>> i do not see an attribute for relocation pool in storage.cfg
> 
>> Where does the quote here come from? Did I miss an email in this thread?
> 
> all the above are from my keyboard on this thread

ah sorry. I was too blind yesterday to see that in your first email.

There is no option to replicate a full ZFS pool to another.

So, you have a current pool with one raidz2 VDEV made up of 4x 2TB disks.

What kind of pool layout/sitation do you want to have in the end?

Because if you have another set of 4x 2TB disks, you can just expand the 
pool with another raidz2 VDEV, without expanding the current VDEV you have.

Right now, `zpool status` will show you something like:

pool
   raidz2-0
     disk0
     disk1
     disk2
     disk3

If you add another VDEV, the pool could have the following layout:

pool
   raidz2-0
     disk0
     disk1
     disk2
     disk3
   raidz2-1
     disk4
     disk5
     disk6
     disk7

If you want to create a new pool, then things will be a bit more 
complicated, as you would need to create a new storage config for it as 
well, Move-Disk all the disks over to it. If you have a cluster and use 
the VM replication feature, that new pool must be present on the other 
nodes as well and you will have to remove the replication jobs before 
you move the disks to the new pool and then re-create them once all VM 
disks are on the new pool.





More information about the pve-user mailing list