Help with pve-zsync

dison4linux

Active Member
Jun 3, 2015
22
0
41
The directions in the wiki make it sound like this is pretty straight forward, however I don't seem to be able to make it work.

Source - Before:
Code:
root@hv2:~# zfs list -r rpool
NAME                      USED  AVAIL  REFER  MOUNTPOINT
rpool                    51.1G   174G    96K  /rpool
rpool/ROOT               5.27G   174G    96K  /rpool/ROOT
rpool/ROOT/pve-1         5.27G   174G  5.27G  /
rpool/subvol-118-disk-1   874M  24.1G   873M  /rpool/subvol-118-disk-1
rpool/swap               30.8G   204G    64K  -

Destination - Before:
Code:
root@proxmox-test1:/rpool/ROOT/pve-1# zfs list -r rpool
NAME               USED  AVAIL  REFER  MOUNTPOINT
rpool             5.05G   235G    96K  /rpool
rpool/ROOT         812M   235G    96K  /rpool/ROOT
rpool/ROOT/pve-1   812M   235G   812M  /
rpool/swap        4.25G   239G    64K  -

Operation (note that I ended up having to enter my password 4 times):
Code:
root@hv2:~# pve-zsync sync --source 118 --dest 10.0.75.13:rpool --verbose --maxsnap 2                       
root@10.0.75.13's password:
WARN: COMMAND:
        ssh root@10.0.75.13 -- zfs list -rt snapshot -Ho name rpool/subvol-118-disk-1@rep_default_2016-01-14_23:38:51
GET ERROR:
        cannot open 'rpool/subvol-118-disk-1@rep_default_2016-01-14_23:38:51': dataset does not exist
send from @ to rpool/subvol-118-disk-1@rep_default_2016-01-15_09:43:14 estimated size is 1.27G
total estimated size is 1.27G
TIME        SENT   SNAPSHOT
root@10.0.75.13's password: 09:43:22   53.9K   rpool/subvol-118-disk-1@rep_default_2016-01-15_09:43:14
09:43:30   53.9K   rpool/subvol-118-disk-1@rep_default_2016-01-15_09:43:14
09:43:31   49.9M   rpool/subvol-118-disk-1@rep_default_2016-01-15_09:43:14
... omitted for brevity ...
09:43:45   1.24G   rpool/subvol-118-disk-1@rep_default_2016-01-15_09:43:14
root@10.0.75.13's password:
root@10.0.75.13's password:

Looking in the GUI at the destination side I do see the subvol in the storage but it shows 0 bytes, and I don't see the VM listed at all.
 
1-st exchange ssh keys so password not needed. example
Code:
ssh-copy-id 10.0.75.13

on the target I'd make a zfs for pve-zsync:
Code:
zfs create rpool/pve-zsync

then try
Code:
pve-zsync  create --source 118 --dest 10.0.75.13:rpool/pve-zsync --verbose --maxsnap 2 --name 118-name

you need a --name in case you'll be backing up more then one vm . name needs to be unique. I usually the hostname .
 
About the same thing happened. The sender said it sent the files to the receiver.
I can see that the files are present on the receiver:
Code:
root@proxmox-test1:~# zfs list -r rpool
NAME                                USED  AVAIL  REFER  MOUNTPOINT
rpool                              6.75G   233G    96K  /rpool
rpool/ROOT                          812M   233G    96K  /rpool/ROOT
rpool/ROOT/pve-1                    812M   233G   812M  /
rpool/pve-zsync                     873M   233G    96K  /rpool/pve-zsync
rpool/pve-zsync/subvol-118-disk-1   873M   233G   873M  /rpool/pve-zsync/subvol-118-disk-1

But I'm still not sure how to make use of that in the GUI. All I see in there is the subvol listed as being 0 bytes and I don't have any options to do with it. Not even delete it.
 
try this to list snapshots:
Code:
zfs list -t snapshot -r  rpool/pve-zsync/subvol-118-disk-1
pve-zsync on gui - check wiki page I think that may be done in future.
 
for deleting and other zfs - check wiki zfs page for links, or search web . there are plenty of great documents. the man page is also good.
 
It's not so much the GUI operation of pve-zsync.
I guess I misunderstood the point of pve-zsync. I assumed that it would replicate the VMs to a cold standby site so that they could be powered on when needed.
It looks like all this does is copy the ZFS datasets to wherever you want, and there's no actual "Proxmox" usefulness to the replicated data.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!