pve-zsync and two zfs dataset

Budarov

Member
Jan 31, 2022
4
0
6
37
Good afternoon.
I have this configuration:

PVE01:
rpool - SSD pool
hdd - HDD pool

VM 101 has disks on each pool:

rpool/data/vm-101-disk-0
hdd/vm-101-disk-0


PVE02 (same server as PVE01):
rpool - SSD pool
hdd - HDD pool

I can use pve-zsync only with --prepend-storage-id and --dest PVE02_ip:rpool/data
This leads to this result on PVE02:

rpool/data/hdd/vm-101-disk-0
rpool/data/local-zfs/vm-101-disk-0


Is it possible to copy a disk to its dataset?

PVE01:hdd/vm-101-disk-0 to PVE02:hdd/vm-101-disk-0
and
PVE01:rpool/data/vm-101-disk-0 to PVE02:rpool/data/vm-101-disk-0

How does pvesr do it, for example, without specifying <ZFSPool>[/Path] on --dest

Thanks for any help!
 
Last edited:
Hi,
unfortunately, there is no possibility to do such a mapping at the moment. pve-zsync currently only works with a single destination. You could create a sub-filesystem in the hdd pool and mount it at rpool/data/hdd, but maybe that's not close enough to what you actually want.

pvesr just preserves the actual paths, because in a cluster context the storage configuration is shared across nodes.

Feel free to create a feature request on our bugtracker.