2019/04/19

昨天要備分一台新的CT時一直出現以下的訊息

INFO: create storage snapshot 'vzdump'
INFO: creating archive '/mnt/pve/nfs86_bck/dump/vzdump-lxc-108-2019_04_19-11_03_21.tar.lzo'
INFO: tar: /mnt/pve/nfs86_bck/dump/vzdump-lxc-108-2019_04_19-11_03_21.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
INFO: remove vzdump snapshot
ERROR: Backup of VM 108 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/nfs86_bck/dump/vzdump-lxc-108-2019_04_19-11_03_21.tmp' ./etc/vzdump/pct.conf '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' ./ | lzop >/mnt/pve/nfs86_bck/dump/vzdump-lxc-108-2019_04_19-11_03_21.tar.dat' failed: exit code 2
INFO: Backup job finished with errors
TASK ERROR: job errors

試了很多次 換host 也沒用

最後查到是chmod的問題

/mnt/pve/nfs86_bck
/mnt/pve/nfs86_bck/dump

把以上二個目錄都改成 chmod 755
就正常了

https://forum.proxmox.com/threads/create-backup-fail-with-error-cannot-open-permission-de.32386/

沒有留言: