Probleme when back up on a LXC container

hugosxm

Member
Jul 23, 2014
46
0
6
Montpellier, France
Hello !

I've juste installed pve 4 on top of a jessie with the pvetest repo, pve4 seems to be working pretty nice for a beta :) but i have problem with LXC back up

see that :

Code:
[COLOR=#000000][FONT=tahoma]INFO: starting first sync /proc/1070/root/ to /mnt/pve/NFS_Backup/dump/vzdump-lxc-101-2015_08_02-17_34_50.tmp[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/NFS_Backup/dump/vzdump-lxc-101-2015_08_02-17_34_50.tmp/." failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/NFS_Backup/dump/vzdump-lxc-101-2015_08_02-17_34_50.tmp/bin" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/NFS_Backup/dump/vzdump-lxc-101-2015_08_02-17_34_50.tmp/bin/bzcmp" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/NFS_Backup/dump/vzdump-lxc-101-2015_08_02-17_34_50.tmp/bin/bzegrep" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/NFS_Backup/dump/vzdump-lxc-101-2015_08_02-17_34_50.tmp/bin/bzfgrep" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/NFS_Backup/dump/vzdump-lxc-101-2015_08_02-17_34_50.tmp/bin/bzless" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/NFS_Backup/dump/vzdump-lxc-101-2015_08_02-17_34_50.tmp/bin/dnsdomainname" failed: Operatio[/FONT][/COLOR]

what is this mean ??

thanks by advance for your help :)
 
thanks for your help DIetmar but it is not working, i did what you said :

Code:
root /home/admin # ls -lah /mnt/pve/NFS_Backup/
total 37K
drwxrwsrwx  3 root   users    3 févr. 24 16:56 .
drwxr-xr-x  4 root   root  4,0K juil. 30 18:38 ..
drwxrwsrwx 19 nobody users  604 août   2 21:05 dump
root /home/admin # ls -lah /mnt/pve/
total 25K
drwxr-xr-x 4 root root  4,0K juil. 30 18:38 .
drwxr-xr-x 4 root root  4,0K juil. 30 18:38 ..
drwxrwsrwx 3 root users    3 févr. 24 16:56 NFS_Backup
drwxrwsrwx 6 root users    7 juin  19 16:39 NFS_Storage
 
For root to be able to write to NFS as user root you need to add the option 'no_root_squash' on the NFS configuration on the server.
 
I have same problem.

Virtual Environment 4.4-2/80259e05, NAS-server mounted via web-interface. VM backups good, but CT do not backups:

INFO: starting new backup job: vzdump 104 --mode snapshot --compress lzo --node am-pve01 --remove 0 --storage nas-wd
INFO: Starting Backup of VM 104 (lxc)
INFO: status = running
INFO: CT Name: srv
INFO: mode failure - some volumes do not support snapshots
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: CT Name: srv
temporary directory is on NFS, disabling xattr and acl support, consider configuring a local tmpdir via /etc/vzdump.conf
INFO: starting first sync /proc/28543/root// to /mnt/pve/nas-wd/dump/vzdump-lxc-104-2016_12_29-15_41_37.tmp
INFO: rsync: chown "/mnt/pve/nas-wd/dump/vzdump-lxc-104-2016_12_29-15_41_37.tmp/." failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nas-wd/dump/vzdump-lxc-104-2016_12_29-15_41_37.tmp/bin" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nas-wd/dump/vzdump-lxc-104-2016_12_29-15_41_37.tmp/bin/bzcmp" failed: Operation not permitted (1)
.....
 
I have the same issue, and KVM backups works just fine since years now. How come KVM can backup to NFS and LXC cannot? Very confused here:

Code:
INFO: starting new backup job: vzdump 666 --compress lzo --node node02-sxb-pve01 --mode snapshot --storage ovh-nfs-node02 --remove 0
INFO: Starting Backup of VM 666 (lxc)
INFO: status = running
INFO: CT Name: testvmproxmox
INFO: mode failure - some volumes do not support snapshots
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: CT Name: testvmproxmox
INFO: temporary directory is on NFS, disabling xattr and acl support, consider configuring a local tmpdir via /etc/vzdump.conf
INFO: starting first sync /proc/1143817/root// to /mnt/pve/ovh-nfs-node02/dump/vzdump-lxc-666-2018_03_27-05_52_04.tmp
INFO: rsync: chown "/mnt/pve/ovh-nfs-node02/dump/vzdump-lxc-666-2018_03_27-05_52_04.tmp/." failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/ovh-nfs-node02/dump/vzdump-lxc-666-2018_03_27-05_52_04.tmp/.cpt_hardlink_dir_a920e4ddc233afddc9fb53d26c392319" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/ovh-nfs-node02/dump/vzdump-lxc-666-2018_03_27-05_52_04.tmp/bin" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/ovh-nfs-node02/dump/vzdump-lxc-666-2018_03_27-05_52_04.tmp/bin/bzcmp" failed: Operation not permitted (1)

Code:
root@node03-sxb-pve01:~# ls -lakh /mnt/pve/
total 14K
drwxr-xr-x 5 root             root  4.0K Dec 11 07:33 .
drwxr-xr-x 3 root             root  4.0K Jul  1  2017 ..
drwxr-xr-x 6 systemd-timesync users    8 Nov 17 23:17 ovh-nfs-node01
drwxrwxrwx 8 systemd-timesync users   10 Dec 11 06:21 ovh-nfs-node02
drwxr-xr-x 6 systemd-timesync users    8 Jul  1  2017 ovh-nfs-node03
root@node03-sxb-pve01:~#

Any idea how to solve this for LXC without causing KVM to fail.
 
the log already says what you have to do - setup a local tmpdir so that only the final tar(.gz) ends up on NFS. it will also be faster since you don't need to copy over the network twice.
 
It seems I'm in the same boat...

I can backup KVM machines but with LXC I get failure's!

I'ld prefer to avoid a local tmpdir, any alternatives to that?
 
Try adding this to /etc/vzdump.conf:
tmpdir: /some/local/dir

I have this config add my LXC backup works.
This helped me out so much! Thank you! Was having some serious problems and slow downs backing up my containers and VMs to an off-site DR NFS share. This made it work so much better.
 

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!