Backup NFS Permission Denied

Speedy059

Renowned Member
Jul 3, 2010
14
1
68
I'm having issues troubleshooting why backups wont work on 1 node in a cluster. Backups work on all the other nodes just fine, but this particular node keeps doing a "permission denied" when doing a backup of a container. What is even weirder, is that some other LXC and KVM guests can backup just fine on the same node!?

After doing some googling, i tried setting chmod 755 on the nfs folder(s) and that did nothing to fix my problem.

Here is the complete error when trying to backup this LXC

Code:
INFO: starting new backup job: vzdump 101 --remove 0 --storage Backups --mode snapshot --node ko2 --compress lzo
INFO: Starting Backup of VM 101 (lxc)
INFO: Backup started at 2020-05-12 17:23:27
INFO: status = running
INFO: CT Name: login.somedomain.com
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
INFO: creating archive '/mnt/pve/Backups/dump/vzdump-lxc-101-2020_05_12-17_23_27.tar.lzo'
INFO: tar: /mnt/pve/Backups/dump/vzdump-lxc-101-2020_05_12-17_23_27.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
INFO: remove vzdump snapshot
ERROR: Backup of VM 101 failed - command 'set -o pipefail && lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar cpf - --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' --one-file-system '--warning=no-file-ignored' '--directory=/mnt/pve/Backups/dump/vzdump-lxc-101-2020_05_12-17_23_27.tmp' ./etc/vzdump/pct.conf ./etc/vzdump/pct.fw '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' ./ | lzop >/mnt/pve/Backups/dump/vzdump-lxc-101-2020_05_12-17_23_27.tar.dat' failed: exit code 2
INFO: Failed at 2020-05-12 17:23:28
INFO: Backup job finished with errors
TASK ERROR: job errors

Any suggestions on how to make this thing work? Not sure why other containers and VM's can backup, while others can't on this particular node.
 
hi,

did you try setting no_root_squash flag in /etc/exports