[pve-devel] [Allow snapshot backup with glusterfs 0/1]
Thomas
thomas at lgy.fr
Sat Nov 14 01:31:10 CET 2020
Hi
Thank for your review.
When i backup lxc with glusterfs mount point, backup never finish.I
understant that you can disableit without rationale and maybe it's a
bad way to resolve this issue.I need to create ticket in bugzilla?
on function sync_container_namespace the bellow loop is never
exit.while (waitpid($child, 0) != $child) {}
There is no fail and no error message.
When i use bash command in lxc "sync /mount/point" there is no
issue.But
You can find bellow step to reproduce :
---------------------------------------create lxc with name g1 with -
debian 10 template - on lvmthin pool storage - privilegied conteneur -
dhcp for configuration phase - exemple lxc id = 125
LXCG1=125LXCG2=126
pct start $LXCG1pct enter $LXCG1apt-get updateapt install glusterfs-
server -yapt cleansystemctl enable glusterd mkdir -p /data/glusterfs
#add the 2 line in /etc/hostscat << EOF >> /etc/hosts10.10.10.1
g1 10.10.10.2 g2 EOF
poweroff
pct clone $LXCG1 $LXCG2 --hostname g2pct set $LXCG1 --net0
name=eth0,bridge=vmbr0,ip=10.10.10.1/24pct set $LXCG2 --net0
name=eth0,bridge=vmbr0,ip=10.10.10.2/24pct set $LXCG1 --features
fuse=0,mknod=0
pct start $LXCG1pct start $LXCG2pct enter $LXCG1gluster peer probe
g2gluster volume create glusterfsvolume replica 2 g1:/data/glusterfs
g2:/data/glusterfs forcegluster volume start glusterfsvolume
mkdir /mnt/tmp/mount -t glusterfs g1:/glusterfsvolume /mnt/tmp
vzdump $LXCG2 #work
vzdump $LXCG1 #never finish------------------------------------------
---
Le vendredi 13 novembre 2020 à 15:12 +0100, Stoiko Ivanov a écrit :
> Hi,
> Thank you for contributing to PVE!
> Could you explain what the patch fixes and why it works (would also
> begreat to have that information in the commit-message)?I checked our
> bugzilla and the community forum, but could not find anyrecent issue
> regarding gluster and containers (I probably overlooked it).
> AFAICT the patch disables running syncfs(2) on the gluster fuse-mount
> usedfor containers. Does the syncfs call fail? What error do you
> get?The syncfs call is there to ensure that the backup is consistent
> as far aspossible - so I would not disable it without rationale.
> On another note - we would need a signed CLA from you, in order to be
> ableto include your code in our codebase - see [0].
> Best Regards,stoiko
> [0]
> https://pve.proxmox.com/wiki/Developer_Documentation#Software_License_and_Copyright
>
> On Thu, 12 Nov 2020 19:48:38 +0100Thomas Legay <thomas at lgy.fr> wrote:
> > Thomas Legay (1): Allow LXC snapshot backup with glusterfs mount
> > point
> > src/PVE/LXC.pm | 1 + 1 file changed, 1 insertion(+)
More information about the pve-devel
mailing list