Summary:
pve-manager/4.4-5/c43015a5 (running kernel: 4.4.35-2-pve)
The node have attached storage by NFS (it will use for vzdump backups) with mount point /mnt/pve/backup-1
When pve try to create backup it fail with error:
Cause:
created path (by WebUI) have wrong permission
Then tar running under UID 100000 and of cause can't write to /mnt/pve/backup-1/dump/
Decision:
change permission on dirs /mnt/pve/{backup-1,backup}/dump}:
UPD 2019-06-26: need set chmod 755 on mountpoint too:
Conclusion:
This is bug - tools for making backups, must be set the correct permissions on the working directories.
pve-manager/4.4-5/c43015a5 (running kernel: 4.4.35-2-pve)
The node have attached storage by NFS (it will use for vzdump backups) with mount point /mnt/pve/backup-1
When pve try to create backup it fail with error:
Code:
INFO: starting new backup job: vzdump 111 --compress lzo --node lpr8 --mode stop --storage backup-1 --remove 0
INFO: Starting Backup of VM 111 (lxc)
INFO: status = running
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: dhcp1-internal
INFO: stopping vm
INFO: creating archive '/mnt/pve/backup-1/dump/vzdump-lxc-111-2017_01_27-16_54_45.tar.lzo'
INFO: tar: /mnt/pve/backup-1/dump/vzdump-lxc-111-2017_01_27-16_54_45.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
...
Cause:
created path (by WebUI) have wrong permission
Code:
root@lpr8:~# stat /mnt/pve/
File: ‘/mnt/pve/’
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fb02h/64258d Inode: 274776 Links: 3
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2017-01-26 18:25:35.785079873 +0300
Modify: 2017-01-26 18:19:33.143166609 +0300
Change: 2017-01-26 18:19:33.143166609 +0300
Birth: -
root@lpr8:~# stat /mnt/pve/backup-1/
File: ‘/mnt/pve/backup-1/’
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 46h/70d Inode: 805340056 Links: 3
Access: (0000/d---------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2017-01-26 18:25:35.943993849 +0300
Modify: 2017-01-26 18:19:33.233542129 +0300
Change: 2017-01-26 18:19:33.233542129 +0300
Birth: -
root@lpr8:~# stat /mnt/pve/backup-1/dump/
File: ‘/mnt/pve/backup-1/dump/’
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 46h/70d Inode: 805339373 Links: 2
Access: (0000/d---------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2017-01-26 18:30:07.673851875 +0300
Modify: 2017-01-26 18:29:04.528812928 +0300
Change: 2017-01-26 18:29:04.528812928 +0300
Then tar running under UID 100000 and of cause can't write to /mnt/pve/backup-1/dump/
Code:
100000 86811 86809 22 17:01 ? 00:00:01 tar cpf - --totals --sparse --numeric-owner --acls --xattrs --xattrs-include=user.* --xattrs-include=security.capability --warning=no-xattr-write --one-file-system --warning=no-file-ignored --directory=/mnt/pve/backup-1/dump/vzdump-lxc-111-2017_01_27-17_01_11.tmp ./etc/vzdump/pct.conf --directory=/mnt/vzsnap0 --no-anchored --exclude=lost+found --anchored --exclude=./tmp/?* --exclude=./var/tmp/?* --exclude=./var/run/?*.pid ./
Decision:
change permission on dirs /mnt/pve/{backup-1,backup}/dump}:
Code:
chmod 755 /mnt/pve/{backup-1,backup}/dump}
UPD 2019-06-26: need set chmod 755 on mountpoint too:
Code:
chmod 755 /mnt/pve/{backup-1,backup}
Conclusion:
This is bug - tools for making backups, must be set the correct permissions on the working directories.
Last edited: