[SOLVED] Container kein Backup funktioniert

antiager

Active Member
Jan 15, 2020
139
4
38
62
61191 Rosbach vor der Höhe
Hallo ein Container unter Proxmox V6 installiert Proxmox läuft jetzt mit V8.22 kann nicht gebackupt werden.

Der Container liegt auf LVM local-lvm

Ein Vzdump bricht nach kurzer Zeit mit "Permission denied" ab.

Ein Versuch den Container mit PBS zu sichern bleibt nach einiger Zeit bevor etwas geschrieben wird hängen.

Der Versuch die Platte auf einen anderen Datastore zu verschieben bleibt ebenso hängen.

Nach den Backup bzw. Verschiebeversuchen ist der Container "locked" und lässt sich nur manuell "entlocken"

Hat jemand eine Idee?

Danke im Voraus!!
 
Du hast die Aussagekräftige Fehlermeldung selbst gepostet.
Permission Denied, sagt ja, dass du keine Rechte hast. Mit welchem User führst deine Backup- und Migrationsversuche aus?
 
Ist es root@pam? Hast du auf dem LVM-Thin Berechtigungen gesetzt?
 
Hallo ein Container unter Proxmox V6 installiert Proxmox läuft jetzt mit V8.22 kann nicht gebackupt werden.

Der Container liegt auf LVM local-lvm

Ein Vzdump bricht nach kurzer Zeit mit "Permission denied" ab.
Falls der Container unprivilegiert ist, wird das Backup mit Mapping, i.e. mit ID 100000 gemacht: https://forum.proxmox.com/threads/backup-error.143676/

Ein Versuch den Container mit PBS zu sichern bleibt nach einiger Zeit bevor etwas geschrieben wird hängen.

Der Versuch die Platte auf einen anderen Datastore zu verschieben bleibt ebenso hängen.
Bitte die Ausgabe von den Tasks posten, sowie pct config <ID> und pveversion -v. Gibt es irgendwelche Fehlermeldung in den System-Logs/Journal? Bitte auch überprüfen, ob mit der Platte auf dem das local-lvm liegt noch in Ordnung ist, z.B. smartctl -a /dev/XYZ
 
Ja es ist root.pam. Auf dem LVM sind keine besonderen Berechtigungen gesetzt müßte alles standardgemäß sein.

smartctl ergab keine Fehler.

pveversion -v:

proxmox-ve: 8.2.0 (running kernel: 6.8.4-3-pve)
pve-manager: 8.2.2 (running version: 8.2.2/9355359cd7afbae4)
proxmox-kernel-helper: 8.1.0
pve-kernel-5.15: 7.4-13
proxmox-kernel-6.8: 6.8.4-3
proxmox-kernel-6.8.4-3-pve-signed: 6.8.4-3
pve-kernel-5.4: 6.4-20
pve-kernel-5.15.152-1-pve: 5.15.152-1
pve-kernel-5.4.203-1-pve: 5.4.203-1
pve-kernel-5.4.34-1-pve: 5.4.34-2
ceph-fuse: 16.2.11+ds-2
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown: residual config
ifupdown2: 3.2.0-1+pmx8
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.1
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.3.3
libpve-access-control: 8.1.4
libpve-apiclient-perl: 3.3.2
libpve-cluster-api-perl: 8.0.6
libpve-cluster-perl: 8.0.6
libpve-common-perl: 8.2.1
libpve-guest-common-perl: 5.1.2
libpve-http-server-perl: 5.1.0
libpve-network-perl: 0.9.8
libpve-rs-perl: 0.8.8
libpve-storage-perl: 8.2.1
libqb0: 1.0.5-1
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 6.0.0-1
lxcfs: 6.0.0-pve2
novnc-pve: 1.4.0-3
proxmox-backup-client: 3.2.3-1
proxmox-backup-file-restore: 3.2.3-1
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.2.3
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.6
proxmox-widget-toolkit: 4.2.3
pve-cluster: 8.0.6
pve-container: 5.1.10
pve-docs: 8.2.2
pve-edk2-firmware: 4.2023.08-4
pve-esxi-import-tools: 0.7.0
pve-firewall: 5.0.7
pve-firmware: 3.11-1
pve-ha-manager: 4.0.4
pve-i18n: 3.2.2
pve-qemu-kvm: 8.1.5-6
pve-xtermjs: 5.3.0-3
qemu-server: 8.2.1
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.3-pve2

PCT Config

cores: 2
hostname: proxmox-mailgateway
memory: 2048
nameserver: 192.168.1.10
net0: name=eth0,bridge=vmbr0,gw=192.168.1.10,hwaddr=2A:75:3B:06:A8:51,ip=192.168.1.14/24,type=veth
onboot: 0
ostype: debian
rootfs: local-lvm:vm-101-disk-0,size=821G
searchdomain: xxx.local
swap: 512
unprivileged: 1

Backup mit PBS


INFO: starting new backup job: vzdump 101 --notification-mode legacy-sendmail --mode snapshot --notes-template '{{guestname}}' --node proxmox1 --storage gbvpbs --remove 0
INFO: Starting Backup of VM 101 (lxc)
INFO: Backup started at 2024-06-14 19:05:19
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: proxmox-mailgateway
INFO: including mount point rootfs ('/') in backup
INFO: creating Proxmox Backup Server archive 'ct/101/2024-06-14T17:05:19Z'
INFO: set max number of entries in memory for file-based backups to 1048576
INFO: run: lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- /usr/bin/proxmox-backup-client backup --crypt-mode=none pct.conf:/var/tmp/vzdumptmp1949226_101/etc/vzdump/pct.conf root.pxar:/mnt/vzsnap0 --include-dev /mnt/vzsnap0/./ --skip-lost-and-found --exclude=/tmp/?* --exclude=/var/tmp/?* --exclude=/var/run/?*.pid --backup-type ct --backup-id 101 --backup-time 1718384719 --entries-max 1048576 --repository gbvpbsbackup@pbs@192.168.1.9:gbvpbs --ns PVE1
INFO: Starting backup: [PVE1]:ct/101/2024-06-14T17:05:19Z
INFO: Client name: proxmox1
INFO: Starting backup protocol: Fri Jun 14 19:05:20 2024
INFO: No previous manifest available.
INFO: Upload config file '/var/tmp/vzdumptmp1949226_101/etc/vzdump/pct.conf' to 'gbvpbsbackup@pbs@192.168.1.9:8007:gbvpbs' as pct.conf.blob
INFO: Upload directory '/mnt/vzsnap0' to 'gbvpbsbackup@pbs@192.168.1.9:8007:gbvpbs' as root.pxar.didx

Da bleibt es stehen.


Backup vzdump

INFO: starting new backup job: vzdump 101 --notification-mode auto --compress zstd --notes-template '{{guestname}}' --mode snapshot --node proxmox1 --storage vzdumb --remove 0
INFO: Starting Backup of VM 101 (lxc)
INFO: Backup started at 2024-06-14 19:07:40
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: proxmox-mailgateway
INFO: including mount point rootfs ('/') in backup
INFO: creating vzdump archive '/mnt/pve/vzdumb/dump/vzdump-lxc-101-2024_06_14-19_07_40.tar.zst'
INFO: tar: /mnt/pve/vzdumb/dump/vzdump-lxc-101-2024_06_14-19_07_40.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
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/vzdumb/dump/vzdump-lxc-101-2024_06_14-19_07_40.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' ./ | zstd '--threads=1' >/mnt/pve/vzdumb/dump/vzdump-lxc-101-2024_06_14-19_07_40.tar.dat' failed: exit code 2
INFO: Failed at 2024-06-14 19:07:41
INFO: Backup job finished with errors
INFO: notified via target `mail-to-root`
TASK ERROR: job errors


Danke für eure Hilfe!
 
Ich habe das gleiche "Problem?" in einem anderen Netz mit einem anderen PVE (8,22) und einem PBS (3) wenn ich einnen LXC Container auf einen PBS backuppen will.

In der Taskanzeige "steht?!" der Job bei (INFO: Upload directory '/mnt/vzsnap0' to 'gbvpbsbackup@pbs@192.168.1.9:8007:gbvpbs' as root.pxar.didx) genau wie auf dem anderen System.

Schaue ich auf dem PBS ins Syslog sehe ich das er "uploadet" und chunks schreibt. Das hört auf wenn ich den Job abbreche.

Kann es sein das nur der Fortschritt des Backups in der Backuptaskansicht nicht aktualisiert wird?
 
Backup vzdump

INFO: starting new backup job: vzdump 101 --notification-mode auto --compress zstd --notes-template '{{guestname}}' --mode snapshot --node proxmox1 --storage vzdumb --remove 0
INFO: Starting Backup of VM 101 (lxc)
INFO: Backup started at 2024-06-14 19:07:40
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: proxmox-mailgateway
INFO: including mount point rootfs ('/') in backup
INFO: creating vzdump archive '/mnt/pve/vzdumb/dump/vzdump-lxc-101-2024_06_14-19_07_40.tar.zst'
INFO: tar: /mnt/pve/vzdumb/dump/vzdump-lxc-101-2024_06_14-19_07_40.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
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/vzdumb/dump/vzdump-lxc-101-2024_06_14-19_07_40.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' ./ | zstd '--threads=1' >/mnt/pve/vzdumb/dump/vzdump-lxc-101-2024_06_14-19_07_40.tar.dat' failed: exit code 2
INFO: Failed at 2024-06-14 19:07:41
INFO: Backup job finished with errors
INFO: notified via target `mail-to-root`
TASK ERROR: job errors
Aus dem Log sieht man, dass der Container unpriviligiert ist, i.e. das Backup mit einem User-Mapping gemacht wird lxc-usernsexec -m u:0:100000:65536. Bitte den schon verlinkten Thread anschauen:
Falls der Container unprivilegiert ist, wird das Backup mit Mapping, i.e. mit ID 100000 gemacht: https://forum.proxmox.com/threads/backup-error.143676/

Ich habe das gleiche "Problem?" in einem anderen Netz mit einem anderen PVE (8,22) und einem PBS (3) wenn ich einnen LXC Container auf einen PBS backuppen will.

In der Taskanzeige "steht?!" der Job bei (INFO: Upload directory '/mnt/vzsnap0' to 'gbvpbsbackup@pbs@192.168.1.9:8007:gbvpbs' as root.pxar.didx) genau wie auf dem anderen System.

Schaue ich auf dem PBS ins Syslog sehe ich das er "uploadet" und chunks schreibt. Das hört auf wenn ich den Job abbreche.

Kann es sein das nur der Fortschritt des Backups in der Backuptaskansicht nicht aktualisiert wird?
Ja, soweit ich weiß, gibt es da momentan kein Log mit dem Fortschritt (wie es bei VMs gibt).
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!