Fixing chown issues on Proxmox with OVH / SoYouStart NFS backup space

Update: I have merged this fix and it is applied to all Proxmox Installations at OVH.


If you ever tried using the OVH / SoYouStart backup space, you might have had some issues with doing backups. The reason behind this is that Proxmox tries to use the backup storage as temporary directory, but setting ACLs and xattr for the files will fail, as giving files root as user or group is not allowed for security reasons.

INFO: starting first sync /proc/12420/root// to /mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/." failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/bzcmp" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/bzegrep" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/bzfgrep" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/bzless" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/dnsdomainname" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/domainname" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/lessfile" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/lsmod" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/mt" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/nc" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/netcat" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/nisdomainname" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/pidof" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/ping4" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/ping6" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/rbash" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/rnano" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/sh" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/sh.distrib" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/systemd" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/bin/ypdomainname" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/boot" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/nfsback/dump/vzdump-lxc-101-2017_05_20-10_02_55.tmp/dev" failed: Operation not permitted (1)

The fix is as simple as reading the first line of the log:

temporary directory is on NFS, disabling xattr and acl support, consider configuring a local tmpdir via /etc/vzdump.conf

To fix this, simply create a directory for the temporary files, e.g.

mkdir /var/lib/vz/temp_back_dir

then fix the /etc/vzdump.conf:

# vzdump default settings

tmpdir: /var/lib/vz/temp_back_dir
#dumpdir: DIR
#storage: STORAGE_ID
#mode: snapshot|suspend|stop
#bwlimit: KBPS
#ionice: PRI
#lockwait: MINUTES
#stopwait: MINUTES
#size: MB
#stdexcludes: BOOLEAN
#mailto: ADDRESSLIST
#maxfiles: N
#script: FILENAME
#exclude-path: PATHLIST
#pigz: N:

Enjoy backups to your OVH / SoYouStart backup storage.