Promox 7.4: Backup restore schlägt fehl "tar (child): -: Cannot read: Permission denied"

_oskar

Member
Oct 26, 2021
11
1
8
50
Hallo zusammen,
bei uns schlägt das Restore von Backups fehl. Die Fehlermeldung:

Code:
Formatting '/var/lib/vz/images/#####/#####.raw', fmt=raw size=32212254720 preallocation=off
Creating filesystem with 7864320 4k blocks and 1966080 inodes
Filesystem UUID: #####
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
restoring '#####:backup/vzdump-lxc-#####.tar.zst' now..
extracting archive '/mnt/pve/#####/#####/#####.tar.zst'
tar (child): -: Cannot read: Permission denied
tar (child): At beginning of tape, quitting now
tar (child): Error is not recoverable: exiting now
/*stdin*\ : Read error (39) : premature end
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
TASK ERROR: unable to restore CT #####- command 'lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar xpf - --zstd --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' -C /var/lib/lxc/#####/rootfs --skip-old-files --anchored --exclude './dev/*'' failed: exit code 2```

Geschrieben werden die Backups erfolgreich mit:
vzdump ##### --remove 0 --mode snapshot --notes-template '{{guestname}}' --compress zstd --node pve --storage #####

Was muss ich anpassen, damit die Wiederherstellung lesend auf den Dump zugreifen kann?
 
da sind wohl die permissions falsch - du musst als user "100000" das archive lesen koennen..
 
Soweit ist das klar. Es geht um den lesenden Zugriff auf die Datei "/mnt/pve/#####/#####/#####.tar.zst"? Die (und auch die Metadaten) ist mit "-rw-r--r--" geschrieben, sollte also vom PVE aus gelesen werden können.
 
wo liegt den das backup? bei NFS/samba muss oft noch zusaetzlich der zugriff erlaubt werden..