LXCs werden nicht gesichert (Backup)

Josch

Member
Dec 20, 2020
49
8
13
Hallo zusammen!

Ich habe gerade auf einem Knoten das Problem, dass die LXCs nicht im Backup gesichert werden, die QEMUs aber schon. Hier die Fehlermeldung:

Code:
2024-06-12 09:29:37 INFO: Starting Backup of VM 100 (lxc)
2024-06-12 09:29:37 INFO: status = running
2024-06-12 09:29:37 INFO: CT Name: pialert
2024-06-12 09:29:37 INFO: including mount point rootfs ('/') in backup
2024-06-12 09:29:37 INFO: backup mode: snapshot
2024-06-12 09:29:37 INFO: ionice priority: 7
2024-06-12 09:29:37 INFO: create storage snapshot 'vzdump'
2024-06-12 09:29:37 INFO: creating vzdump archive '/mnt/pve/nas02/dump/vzdump-lxc-100-2024_06_12-09_29_37.tar.zst'
2024-06-12 09:29:37 INFO: tar: /mnt/pve/nas02/dump/vzdump-lxc-100-2024_06_12-09_29_37.tmp: Cannot open: Permission denied
2024-06-12 09:29:37 INFO: tar: Error is not recoverable: exiting now
2024-06-12 09:29:37 INFO: cleanup temporary 'vzdump' snapshot
2024-06-12 09:29:38 ERROR: Backup of VM 100 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/nas02/dump/vzdump-lxc-100-2024_06_12-09_29_37.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/nas02/dump/vzdump-lxc-100-2024_06_12-09_29_37.tar.dat' failed: exit code 2

Scheint ein Rechteproblem zu sein: 'Permission denied'. Aber es kann nicht auf dem NAS sein, welches als Backupziel herhalten muss, da die VMs schließlich ordentlich gesichert werden.

Hier der Log der erfolgreichen VM-Sicherung:

Code:
2024-06-06 15:51:27 INFO: Starting Backup of VM 201 (qemu)
2024-06-06 15:51:27 INFO: status = stopped
2024-06-06 15:51:27 INFO: backup mode: stop
2024-06-06 15:51:27 INFO: ionice priority: 7
2024-06-06 15:51:27 INFO: VM Name: opnsense
2024-06-06 15:51:27 INFO: include disk 'scsi0' 'local-lvm2:vm-201-disk-0' 32G
2024-06-06 15:51:27 INFO: creating vzdump archive '/mnt/pve/nas02/dump/vzdump-qemu-201-2024_06_06-15_51_27.vma.zst'
2024-06-06 15:51:27 INFO: starting kvm to execute backup task
2024-06-06 15:51:30 INFO: started backup task '345eeeb2-6c91-468e-9e32-6111a8ae1b4a'
2024-06-06 15:51:33 INFO:  16% (5.2 GiB of 32.0 GiB) in 3s, read: 1.7 GiB/s, write: 12.2 MiB/s
2024-06-06 15:51:36 INFO:  33% (10.7 GiB of 32.0 GiB) in 6s, read: 1.9 GiB/s, write: 15.5 MiB/s
2024-06-06 15:51:39 INFO:  37% (12.1 GiB of 32.0 GiB) in 9s, read: 480.9 MiB/s, write: 92.8 MiB/s
2024-06-06 15:51:42 INFO:  38% (12.5 GiB of 32.0 GiB) in 12s, read: 103.9 MiB/s, write: 103.7 MiB/s
2024-06-06 15:51:45 INFO:  39% (12.8 GiB of 32.0 GiB) in 15s, read: 105.1 MiB/s, write: 96.0 MiB/s
2024-06-06 15:51:48 INFO:  41% (13.3 GiB of 32.0 GiB) in 18s, read: 186.1 MiB/s, write: 133.3 MiB/s
2024-06-06 15:51:51 INFO:  45% (14.4 GiB of 32.0 GiB) in 21s, read: 383.0 MiB/s, write: 103.9 MiB/s
2024-06-06 15:51:54 INFO:  48% (15.6 GiB of 32.0 GiB) in 24s, read: 410.5 MiB/s, write: 132.8 MiB/s
2024-06-06 15:51:57 INFO:  56% (18.1 GiB of 32.0 GiB) in 27s, read: 851.0 MiB/s, write: 149.3 MiB/s
2024-06-06 15:52:00 INFO:  76% (24.4 GiB of 32.0 GiB) in 30s, read: 2.1 GiB/s, write: 5.0 MiB/s
2024-06-06 15:52:03 INFO:  95% (30.7 GiB of 32.0 GiB) in 33s, read: 2.1 GiB/s, write: 0 B/s
2024-06-06 15:52:04 INFO: 100% (32.0 GiB of 32.0 GiB) in 34s, read: 1.3 GiB/s, write: 8.0 KiB/s
2024-06-06 15:52:04 INFO: backup is sparse: 29.53 GiB (92%) total zero data
2024-06-06 15:52:04 INFO: transferred 32.00 GiB in 34 seconds (963.8 MiB/s)
2024-06-06 15:52:06 INFO: stopping kvm after backup task
2024-06-06 15:52:07 INFO: archive file size: 654MB
2024-06-06 15:52:07 INFO: adding notes to backup
2024-06-06 15:52:07 INFO: Finished Backup of VM 201 (00:00:40)

Weiß jemand die Lösung?
 
Last edited:
Das ging ja fix. Es funktioniert.

Wieder was gelernt. Recht herzlichen Dank für die Unterstützung!
 
  • Like
Reactions: Chris

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!