pve-zsync with bind mounts fails

Jero

Member
May 20, 2016
33
2
8
42
Hi guys,

I can't use pve-zsync on lxc containers with a "mp" reference in the VMID.conf file. Like my previous requests i don't care about the state of the mount point because that is a different ZFS pool just used as bulk storage.

Is it a bug or do i need to make a feature request?

Greets,
Error
pveversion-v
 
No this is not related to pve-zsync.
pve-zsync is a standalone packet.
 
I read that "Recursive sync" is a feature not so easy to realize. On the other hand, about this bug/feature... How complicated is it?
Do you have an ETA to fix it, depending on other proxmox development priorities?

Thank you!
 
Last edited:
Hi,

no there is no ETA and I can't tell you when it will be done.
 
Sorry for the noise, but for me it seems that it works as designed!

Despite the bug report and information that is not being implemented, I've done a paranoia try:

root@vera:/etc/pve/nodes/vera/lxc# cat 103.conf
arch: amd64
cores: 1
hostname: vera3
memory: 1024
mp1: zfs2:subvol-103-disk-2,mp=/var/testmount,backup=1,size=8G
net0: name=eth0,bridge=vmbr0,hwaddr=FA:72:11:B6:AA:D8,type=veth
ostype: ubuntu
rootfs: zfs1:subvol-103-disk-1,size=50G
swap: 512
unprivileged: 1

root@vera:/etc/pve/nodes/vera/lxc# pve-zsync create --source 103 --dest 192.168.3.2:rpool1/data --verbose --maxsnap 2 --name mp1
send from @ to rpool2/data/subvol-103-disk-2@rep_mp1_2017-01-12_00:36:38 estimated size is 40K
total estimated size is 40K
TIME SENT SNAPSHOT
send from @ to rpool1/data/subvol-103-disk-1@rep_mp1_2017-01-12_00:36:38 estimated size is 608M
total estimated size is 608M
TIME SENT SNAPSHOT
00:36:42 46.7M rpool1/data/subvol-103-disk-1@rep_mp1_2017-01-12_00:36:38
00:36:43 158M rpool1/data/subvol-103-disk-1@rep_mp1_2017-01-12_00:36:38
00:36:44 270M rpool1/data/subvol-103-disk-1@rep_mp1_2017-01-12_00:36:38
00:36:45 382M rpool1/data/subvol-103-disk-1@rep_mp1_2017-01-12_00:36:38
00:36:46 494M rpool1/data/subvol-103-disk-1@rep_mp1_2017-01-12_00:36:38
00:36:47 605M rpool1/data/subvol-103-disk-1@rep_mp1_2017-01-12_00:36:38


This works, but then I was looking for an possible explanation in the code

Line 763 in /usr/sbin/pve-zsync , function sub parse_disks is treating the mp(mount point) use case.
next if $line !~ m/^(?:((?:virtio|ide|scsi|sata|mp)\d+)|rootfs): /;
 
Sorry, but I was talking about "Recursive sync" and not mp.
 

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!