Change ZFS data store replication

May 31, 2019
8
0
6
40
It looks like the default location for ZFS VMs replication is in rpool/data is there a way to change that? I have a second ZFS pool on my machines that are much bigger where as the rpool pool is simply not large enough to fit the VMs I want to replicate.
 
Hi,
PVE will replicate to the same storage where the volumes are on the source node and for local-zfs that is indeed /rpool/data. Sadly it's not yet possible to specify a different mapping for replication; there is an open feature request for this.
 
Well I suppose that is both good news and bad news in my case, the two nodes which I want to replicate between are identical. However I named the matching ZFS pools on each node differently (i.e. Node A - ZFSA, Node B -ZFSB). Is it safe to rename a ZFS pool ?
 
Usually yes, just make sure nothing is using the pool, and best to disable the storage in PVE too. Then export the pool and import again with a new name, i.e. zpool export <currentname> and zpool import <currentname> <newname>. And now you can update the storage configuration for PVE with the new name. On subsequent imports the new name will be used automatically.