PVE-Zsync problem

tortonness

New Member
Mar 9, 2017
10
0
1
51
Hi

i have 2 servers set up with proxmox 4.4

i installed pve-zsync on both of them.
then i created a VM on one of the servers(172.30.1.144) and want to sync this VM to the Zfs filesystem on server 2(172.30.1.145)
Zfs list
NAME USED AVAIL REFER MOUNTPOINT
Zpool1 120k 806G 20k /Zpool1
zpool1/backup 8k 806G 8K -

i ran this command on server1(172.30.1.144):
pve-sync create --source 100 --dest 172.30.1.145:Zpool1/backup --verbose --maxsnap 7 --name testsnap

It then asks me for the password and i write the root password for server 2(have to do this two times), but then it returns: ERROR: in path

but there is no error. not sure what is wrong here?
 
Hi,

zfs path are default case sensitive.

So the correct path is
"172.30.1.145:zpool1/backup" and
172.30.1.145:Zpool1/backup is wrong.
 
Yes i see that. i guess you got confused since i used capitol and small letters in my explenation. If i use wrong letters it just returns: zpool Zpool1/backup does not exist, so the path is ok as far as i can see but still it returns: ERROR: In path . Could it be something with the way i set up the zpool?. hmmm
 
can't say what the problem is without the vm config.
 
ok. i uploaded the vm config for vm100.

this is the textprintout of the VM:
bootdisk: ide0
cores: 2
ide0: local-lvm:vm-100-disk-1,size=32G
ide2: none,media=cdrom
memory: 5032
name: test
net0: e1000=12:59:BB:3D:3A:3A,bridge=vmbr0
numa: 0
ostype: win8
scsihw: virtio-scsi-pci
smbios1: uuid=9c206640-796c-4225-a51f-3bcbe97798a6
sockets: 1

if you are up for it i can get you a teamviewer on a computer in wich you can reach both servers webgui.
 

Attachments

  • 100.txt
    260 bytes · Views: 3
pve-zsync can only be used if you have ZFS as storage backend.
This does not work with Thin-LVM.
 
I got it working now, however i see that the syncjob runs every 15minutes by itself when active. is there anywhere i can tune it so that it runs 1 time every day?.
 
You can edit
/etc/cron.d/pve-zsync
it is a normal cronjob
 
By the way is there any way to do a more granulated snapshot schedule then just a sequenced timetable?. what i mean is that it would be great to be able to have a snapshot at 15minutes, 1hour, 5hours, 10hours, 1every weekday, 1month if you understand?. In the cronjob i dont have that abillity, just a sequenced time.
 
No you have only the cron as timer.
 
Hello to all,
unfortunately I have the same (error: in path) issue and cannot figure out why. Almost the same scenario :
My hosts make in 3-node cluster. I want to use pve-zsync in order to do periodical fast incremental backups , what is not possible to achive with classical vzdump.

1. this is the source vm conf:
bootdisk: virtio0
cores: 2
ide2: rn314:iso/ubuntu-16.04.3-server-amd64.iso,media=cdrom
memory: 1024
name: u1604server-zfs
net0: virtio=1A:5D:FC:7C:FC:98,bridge=vmbr1
numa: 0
ostype: l26
scsihw: virtio-scsi-pci
smbios1: uuid=ba277e4f-9bc4-455b-bf9c-a8c96bb32391
sockets: 1
vga: qxl
virtio0: zfs1:vm-70020-disk-1,size=7G
/etc/pve/qemu-server/70020.conf (END)

2. this is the destination zpool (on server 10.20.28.4):
root@pvesuma03:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
bckpool 444K 449G 96K /bckpool
bckpool/backup 96K 449G 96K /bckpool/backup
root@pvesuma03:~#



3. this is the command I run on the "source" node:
root@pvesuma01:~# pve-zsync create -source 70020 -dest 10.20.28.4:bckpool/backup --verbose --maxsnap 7 --name bck1
ERROR: in path
root@pvesuma01:~#

latest pve is running

proxmox-ve: 5.2-2 (running kernel: 4.15.17-3-pve) pve-manager: 5.2-2 (running version: 5.2-2/b1d1c7f4) pve-kernel-4.15: 5.2-3 pve-kernel-4.13: 5.1-45 pve-kernel-4.15.17-3-pve: 4.15.17-13 pve-kernel-4.15.17-2-pve: 4.15.17-10 pve-kernel-4.15.17-1-pve: 4.15.17-9 pve-kernel-4.15.15-1-pve: 4.15.15-6 pve-kernel-4.13.16-3-pve: 4.13.16-49 pve-kernel-4.13.16-2-pve: 4.13.16-48 pve-kernel-4.13.16-1-pve: 4.13.16-46 pve-kernel-4.13.13-6-pve: 4.13.13-42 pve-kernel-4.13.13-5-pve: 4.13.13-38 pve-kernel-4.13.13-4-pve: 4.13.13-35 pve-kernel-4.13.13-2-pve: 4.13.13-33 pve-kernel-4.13.13-1-pve: 4.13.13-31 pve-kernel-4.13.8-3-pve: 4.13.8-30 pve-kernel-4.13.8-2-pve: 4.13.8-28 pve-kernel-4.13.4-1-pve: 4.13.4-26 pve-kernel-4.10.17-4-pve: 4.10.17-24 pve-kernel-4.10.17-3-pve: 4.10.17-23 pve-kernel-4.10.17-2-pve: 4.10.17-20 pve-kernel-4.10.17-1-pve: 4.10.17-18 pve-kernel-4.10.15-1-pve: 4.10.15-15 pve-kernel-4.4.67-1-pve: 4.4.67-92 pve-kernel-4.4.62-1-pve: 4.4.62-88 pve-kernel-4.4.59-1-pve: 4.4.59-87 pve-kernel-4.4.49-1-pve: 4.4.49-86 pve-kernel-4.4.44-1-pve: 4.4.44-84 pve-kernel-4.4.40-1-pve: 4.4.40-82 pve-kernel-4.4.35-2-pve: 4.4.35-79 pve-kernel-4.4.35-1-pve: 4.4.35-77 pve-kernel-4.4.24-1-pve: 4.4.24-72 pve-kernel-4.4.21-1-pve: 4.4.21-71 pve-kernel-4.4.19-1-pve: 4.4.19-66 pve-kernel-4.4.16-1-pve: 4.4.16-64 pve-kernel-4.4.15-1-pve: 4.4.15-60 pve-kernel-4.4.13-2-pve: 4.4.13-58 pve-kernel-4.4.13-1-pve: 4.4.13-56 pve-kernel-4.4.10-1-pve: 4.4.10-54 pve-kernel-4.2.6-1-pve: 4.2.6-36 corosync: 2.4.2-pve5 criu: 2.11.1-1~bpo90 glusterfs-client: 3.8.8-1 ksm-control-daemon: 1.2-2 libjs-extjs: 6.0.1-2 libpve-access-control: 5.0-8 libpve-apiclient-perl: 2.0-4 libpve-common-perl: 5.0-33 libpve-guest-common-perl: 2.0-16 libpve-http-server-perl: 2.0-9 libpve-storage-perl: 5.0-23 libqb0: 1.0.1-1 lvm2: 2.02.168-pve6 lxc-pve: 3.0.0-3 lxcfs: 3.0.0-1 novnc-pve: 1.0.0-1 openvswitch-switch: 2.7.0-2 proxmox-widget-toolkit: 1.0-19 pve-cluster: 5.0-27 pve-container: 2.0-23 pve-docs: 5.2-4 pve-firewall: 3.0-12 pve-firmware: 2.0-4 pve-ha-manager: 2.0-5 pve-i18n: 1.0-6 pve-libspice-server1: 0.12.8-3 pve-qemu-kvm: 2.11.1-5 pve-xtermjs: 1.0-5 pve-zsync: 1.6-16 qemu-server: 5.0-28 smartmontools: 6.5+svn4324-1 spiceterm: 3.0-5 vncterm: 1.5-3 zfsutils-linux: 0.7.9-pve1~bpo9


I have no idea so far what could cause such response/error

Thank you very much in advance for you help

BR
Tonci
 
Last edited:
Hi tonci,

what you get if you call
Code:
pvesm path zfs1:vm-70020-disk-1,size=7G
 
Hi Wolfgang,

here we go:

root@pvesuma01:~# pvesm path zfs1:vm-70020-disk-1,size=7G
/dev/zvol/pool1zfs/vm-70020-disk-1,size=7G
root@pvesuma01:~#
 
I can't reproduce this here.
You must have something else in your system.
Can you send the output from the source node of
Code:
zfs list
 
Hello

source node:
root@pvesuma01:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
pool1zfs 7.23G 442G 96K /pool1zfs
pool1zfs/vm-70020-disk-1 7.22G 446G 3.05G -
root@pvesuma01:~#

dest node:
root@pvesuma03:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
bckpool 744K 449G 96K /bckpool
bckpool/backup 96K 449G 96K /bckpool/backup
root@pvesuma03:~#

maybe something with mount points is not good ?

i.e. if I mistype dest pool :
root@pvesuma01:~# pve-zsync create -source 70020 -dest 10.20.28.4:bckpool/backup2 --verbose --maxsnap 7 --name bck1
Pool bckpool/backup2 does not exists
root@pvesuma01:~#


BR
Tonci
 
No the error you get has something to do with the source.
The source is in your case a zvol, so there are no mount points.

I think something about the formation or local settings.
What language settings do you use at the source server?
 

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!