[SOLVED] Backupproblem LXC und VM

berlon

Member
Apr 20, 2022
26
1
8
Hi,
versuche meine Maschienen auf einer Synology zu sichern.
leider werden nur die VM´s gesichert. Alle LXC machen einen Error.
Wo liegt der Fehler.
Log und Auswahl sind angehängt.
proxmox.png

INFO: starting new backup job: vzdump 202 200 102 101 100 --prune-backups 'keep-monthly=6' --compress zstd --node proxmox --all 0 --storage DSM --mode snapshot --fleecing 0 --notes-template '{{vmid}}-{{guestname}}'
INFO: Starting Backup of VM 100 (lxc)
INFO: Backup started at 2024-10-07 20:37:42
INFO: status = running
INFO: CT Name: InfluxDB-Grafana
INFO: including mount point rootfs ('/') in backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
Logical volume "snap_vm-100-disk-0_vzdump" created.
INFO: creating vzdump archive '/mnt/pve/DSM/dump/vzdump-lxc-100-2024_10_07-20_37_42.tar.zst'
INFO: tar: /mnt/pve/DSM/dump/vzdump-lxc-100-2024_10_07-20_37_42.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
INFO: cleanup temporary 'vzdump' snapshot
Logical volume "snap_vm-100-disk-0_vzdump" successfully removed.
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/DSM/dump/vzdump-lxc-100-2024_10_07-20_37_42.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/DSM/dump/vzdump-lxc-100-2024_10_07-20_37_42.tar.dat' failed: exit code 2
INFO: Failed at 2024-10-07 20:37:42
INFO: Starting Backup of VM 101 (lxc)
INFO: Backup started at 2024-10-07 20:37:42
INFO: status = running
INFO: CT Name: pihole
INFO: including mount point rootfs ('/') in backup
INFO: mode failure - some volumes do not support snapshots
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: CT Name: pihole
INFO: including mount point rootfs ('/') in backup
INFO: temporary directory is on NFS, disabling xattr and acl support, consider configuring a local tmpdir via /etc/vzdump.conf
INFO: starting first sync /proc/2408695/root/ to /mnt/pve/DSM/dump/vzdump-lxc-101-2024_10_07-20_37_42.tmp
INFO: first sync finished - transferred 1.60G bytes in 73s
INFO: suspending guest
INFO: starting final sync /proc/2408695/root/ to /mnt/pve/DSM/dump/vzdump-lxc-101-2024_10_07-20_37_42.tmp
INFO: final sync finished - transferred 167.46M bytes in 7s
INFO: resuming guest
INFO: guest is online again after 7 seconds
INFO: creating vzdump archive '/mnt/pve/DSM/dump/vzdump-lxc-101-2024_10_07-20_37_42.tar.zst'
INFO: tar: /mnt/pve/DSM/dump/vzdump-lxc-101-2024_10_07-20_37_42.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/DSM/dump/vzdump-lxc-101-2024_10_07-20_37_42.tmp' ./etc/vzdump/pct.conf ./etc/vzdump/pct.fw '--directory=/mnt/pve/DSM/dump/vzdump-lxc-101-2024_10_07-20_37_42.tmp' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' . | zstd '--threads=1' >/mnt/pve/DSM/dump/vzdump-lxc-101-2024_10_07-20_37_42.tar.dat' failed: exit code 2
INFO: Failed at 2024-10-07 20:39:15
INFO: Starting Backup of VM 102 (lxc)
INFO: Backup started at 2024-10-07 20:39:15
INFO: status = running
INFO: CT Name: Heimdall
INFO: including mount point rootfs ('/') in backup
INFO: mode failure - some volumes do not support snapshots
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: CT Name: Heimdall
INFO: including mount point rootfs ('/') in backup
INFO: temporary directory is on NFS, disabling xattr and acl support, consider configuring a local tmpdir via /etc/vzdump.conf
INFO: starting first sync /proc/2408566/root/ to /mnt/pve/DSM/dump/vzdump-lxc-102-2024_10_07-20_39_15.tmp
INFO: first sync finished - transferred 1.36G bytes in 131s
INFO: suspending guest
INFO: starting final sync /proc/2408566/root/ to /mnt/pve/DSM/dump/vzdump-lxc-102-2024_10_07-20_39_15.tmp
INFO: final sync finished - transferred 0 bytes in 7s
INFO: resuming guest
INFO: guest is online again after 7 seconds
INFO: creating vzdump archive '/mnt/pve/DSM/dump/vzdump-lxc-102-2024_10_07-20_39_15.tar.zst'
INFO: tar: /mnt/pve/DSM/dump/vzdump-lxc-102-2024_10_07-20_39_15.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
ERROR: Backup of VM 102 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/DSM/dump/vzdump-lxc-102-2024_10_07-20_39_15.tmp' ./etc/vzdump/pct.conf ./etc/vzdump/pct.fw '--directory=/mnt/pve/DSM/dump/vzdump-lxc-102-2024_10_07-20_39_15.tmp' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' . | zstd '--threads=1' >/mnt/pve/DSM/dump/vzdump-lxc-102-2024_10_07-20_39_15.tar.dat' failed: exit code 2
INFO: Failed at 2024-10-07 20:42:05
INFO: Starting Backup of VM 200 (qemu)
INFO: Backup started at 2024-10-07 20:42:05
INFO: status = running
INFO: VM Name: VM-ioBroker
INFO: include disk 'scsi0' 'local-lvm:vm-200-disk-0' 32G
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating vzdump archive '/mnt/pve/DSM/dump/vzdump-qemu-200-2024_10_07-20_42_05.vma.zst'
INFO: started backup task '1282b60d-4755-4cc3-9bab-a8d550257892'
INFO: resuming VM again
INFO: 5% (1.7 GiB of 32.0 GiB) in 3s, read: 577.6 MiB/s, write: 155.3 MiB/s
INFO: 7% (2.4 GiB of 32.0 GiB) in 6s, read: 252.5 MiB/s, write: 155.1 MiB/s
INFO: 9% (2.9 GiB of 32.0 GiB) in 9s, read: 174.0 MiB/s, write: 156.6 MiB/s
INFO: 10% (3.4 GiB of 32.0 GiB) in 12s, read: 151.0 MiB/s, write: 123.7 MiB/s
INFO: 19% (6.2 GiB of 32.0 GiB) in 15s, read: 960.6 MiB/s, write: 129.3 MiB/s
INFO: 26% (8.5 GiB of 32.0 GiB) in 18s, read: 781.8 MiB/s, write: 144.9 MiB/s
INFO: 30% (9.9 GiB of 32.0 GiB) in 21s, read: 483.8 MiB/s, write: 141.3 MiB/s
INFO: 36% (11.6 GiB of 32.0 GiB) in 24s, read: 579.5 MiB/s, write: 139.3 MiB/s
INFO: 40% (13.1 GiB of 32.0 GiB) in 27s, read: 509.9 MiB/s, write: 153.2 MiB/s
INFO: 44% (14.3 GiB of 32.0 GiB) in 30s, read: 403.6 MiB/s, write: 208.3 MiB/s
INFO: 49% (15.7 GiB of 32.0 GiB) in 33s, read: 491.8 MiB/s, write: 178.3 MiB/s
INFO: 55% (17.7 GiB of 32.0 GiB) in 36s, read: 659.8 MiB/s, write: 165.5 MiB/s
INFO: 60% (19.3 GiB of 32.0 GiB) in 39s, read: 567.9 MiB/s, write: 190.3 MiB/s
INFO: 63% (20.3 GiB of 32.0 GiB) in 42s, read: 344.4 MiB/s, write: 96.9 MiB/s
INFO: 69% (22.3 GiB of 32.0 GiB) in 45s, read: 686.3 MiB/s, write: 150.4 MiB/s
INFO: 76% (24.3 GiB of 32.0 GiB) in 48s, read: 676.7 MiB/s, write: 108.2 MiB/s
INFO: 82% (26.3 GiB of 32.0 GiB) in 51s, read: 659.8 MiB/s, write: 162.6 MiB/s
INFO: 88% (28.3 GiB of 32.0 GiB) in 54s, read: 693.6 MiB/s, write: 128.0 MiB/s
INFO: 99% (32.0 GiB of 32.0 GiB) in 57s, read: 1.2 GiB/s, write: 95.3 MiB/s
INFO: 100% (32.0 GiB of 32.0 GiB) in 58s, read: 9.6 MiB/s, write: 0 B/s
INFO: backup is sparse: 23.85 GiB (74%) total zero data
INFO: transferred 32.00 GiB in 58 seconds (565.0 MiB/s)
INFO: archive file size: 2.98GB
INFO: adding notes to backup
INFO: prune older backups with retention: keep-monthly=6
INFO: removing backup 'DSM:backup/vzdump-qemu-200-2024_10_07-19_48_37.vma.zst'
INFO: pruned 1 backup(s) not covered by keep-retention policy
INFO: Finished Backup of VM 200 (00:01:14)
INFO: Backup finished at 2024-10-07 20:43:19
INFO: Starting Backup of VM 202 (qemu)
INFO: Backup started at 2024-10-07 20:43:19
INFO: status = running
INFO: VM Name: homeassistant
INFO: include disk 'scsi0' 'local-lvm:vm-202-disk-1' 32G
INFO: include disk 'efidisk0' 'local-lvm:vm-202-disk-0' 4M
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating vzdump archive '/mnt/pve/DSM/dump/vzdump-qemu-202-2024_10_07-20_43_19.vma.zst'
INFO: issuing guest-agent 'fs-freeze' command
INFO: issuing guest-agent 'fs-thaw' command
INFO: started backup task 'afec221e-7a4f-494b-846f-326bbd91d563'
INFO: resuming VM again
INFO: 1% (496.6 MiB of 32.0 GiB) in 3s, read: 165.5 MiB/s, write: 140.2 MiB/s
INFO: 4% (1.4 GiB of 32.0 GiB) in 6s, read: 322.6 MiB/s, write: 145.8 MiB/s
INFO: 6% (2.2 GiB of 32.0 GiB) in 9s, read: 265.8 MiB/s, write: 144.0 MiB/s
INFO: 8% (2.8 GiB of 32.0 GiB) in 12s, read: 201.8 MiB/s, write: 151.6 MiB/s
INFO: 10% (3.5 GiB of 32.0 GiB) in 15s, read: 226.0 MiB/s, write: 157.1 MiB/s
INFO: 14% (4.6 GiB of 32.0 GiB) in 18s, read: 381.8 MiB/s, write: 155.1 MiB/s
INFO: 16% (5.1 GiB of 32.0 GiB) in 21s, read: 191.4 MiB/s, write: 122.0 MiB/s
INFO: 17% (5.7 GiB of 32.0 GiB) in 24s, read: 188.0 MiB/s, write: 166.0 MiB/s
INFO: 19% (6.3 GiB of 32.0 GiB) in 27s, read: 213.9 MiB/s, write: 138.5 MiB/s
INFO: 21% (6.9 GiB of 32.0 GiB) in 30s, read: 195.8 MiB/s, write: 106.6 MiB/s
INFO: 23% (7.5 GiB of 32.0 GiB) in 33s, read: 213.9 MiB/s, write: 115.4 MiB/s
INFO: 25% (8.2 GiB of 32.0 GiB) in 36s, read: 217.5 MiB/s, write: 146.3 MiB/s
INFO: 27% (8.9 GiB of 32.0 GiB) in 39s, read: 241.7 MiB/s, write: 166.4 MiB/s
INFO: 29% (9.4 GiB of 32.0 GiB) in 42s, read: 193.3 MiB/s, write: 139.6 MiB/s
INFO: 31% (10.1 GiB of 32.0 GiB) in 45s, read: 236.8 MiB/s, write: 129.2 MiB/s
INFO: 34% (10.9 GiB of 32.0 GiB) in 48s, read: 277.9 MiB/s, write: 142.5 MiB/s
INFO: 36% (11.6 GiB of 32.0 GiB) in 51s, read: 233.2 MiB/s, write: 157.7 MiB/s
INFO: 38% (12.4 GiB of 32.0 GiB) in 54s, read: 259.8 MiB/s, write: 117.3 MiB/s
INFO: 42% (13.6 GiB of 32.0 GiB) in 57s, read: 409.6 MiB/s, write: 135.8 MiB/s
INFO: 44% (14.3 GiB of 32.0 GiB) in 1m, read: 232.7 MiB/s, write: 165.8 MiB/s
INFO: 47% (15.0 GiB of 32.0 GiB) in 1m 3s, read: 267.5 MiB/s, write: 107.5 MiB/s
INFO: 49% (16.0 GiB of 32.0 GiB) in 1m 6s, read: 308.1 MiB/s, write: 173.9 MiB/s
INFO: 53% (17.2 GiB of 32.0 GiB) in 1m 9s, read: 416.9 MiB/s, write: 182.2 MiB/s
INFO: 56% (18.2 GiB of 32.0 GiB) in 1m 12s, read: 347.3 MiB/s, write: 189.9 MiB/s
INFO: 58% (18.8 GiB of 32.0 GiB) in 1m 15s, read: 192.8 MiB/s, write: 169.6 MiB/s
INFO: 64% (20.7 GiB of 32.0 GiB) in 1m 19s, read: 494.4 MiB/s, write: 90.9 MiB/s
INFO: 71% (22.8 GiB of 32.0 GiB) in 1m 22s, read: 717.1 MiB/s, write: 74.9 MiB/s
INFO: 72% (23.4 GiB of 32.0 GiB) in 1m 25s, read: 193.3 MiB/s, write: 173.1 MiB/s
INFO: 75% (24.1 GiB of 32.0 GiB) in 1m 28s, read: 259.8 MiB/s, write: 193.5 MiB/s
INFO: 77% (24.6 GiB of 32.0 GiB) in 1m 31s, read: 180.0 MiB/s, write: 148.7 MiB/s
INFO: 89% (28.8 GiB of 32.0 GiB) in 1m 34s, read: 1.4 GiB/s, write: 95.8 MiB/s
INFO: 96% (31.0 GiB of 32.0 GiB) in 1m 37s, read: 749.2 MiB/s, write: 182.5 MiB/s
INFO: 99% (31.7 GiB of 32.0 GiB) in 1m 40s, read: 258.6 MiB/s, write: 124.8 MiB/s
INFO: 100% (32.0 GiB of 32.0 GiB) in 1m 41s, read: 277.6 MiB/s, write: 82.8 MiB/s
INFO: backup is sparse: 17.91 GiB (55%) total zero data
INFO: transferred 32.00 GiB in 101 seconds (324.4 MiB/s)
INFO: archive file size: 8.03GB
INFO: adding notes to backup
INFO: prune older backups with retention: keep-monthly=6
INFO: removing backup 'DSM:backup/vzdump-qemu-202-2024_10_07-19_49_55.vma.zst'
INFO: pruned 1 backup(s) not covered by keep-retention policy
INFO: Finished Backup of VM 202 (00:02:03)
INFO: Backup finished at 2024-10-07 20:45:22
INFO: Backup job finished with errors
INFO: notified via target `mail-to-root`
TASK ERROR: job errors
 
Last edited:
Huhu mariol,
danke für die Rückmeldung
Das mit dem vzdump.conf habe ich gelesen und, denke ich, auch soweit verstanden.

ich habe ein standard Proxmox laufen. (über den Installer alles soweit durchgewunken)
Proxmox hat die Disks selbst angelegt.

nun habe ich 2 locale Disks, local und local-lvm.

Bei dem tempdir DIR würde ich dann das DIR durch den Pfad auf eine locale Disk ersetzen.

Leider find ich nicht herraus wie der Pfad zu den beiden Disks ist.
Bin kein linux Nutzer.

notes-template: {{vmid}}-{{guestname}} habe ich so erweitert.

Gruß
Bernd
 
Huhu mariol,
danke für die Rückmeldung
Sehr gerne :)

nun habe ich 2 locale Disks, local und local-lvm.
Ich vermute mal du hast nur eine lokale Disk, also in Hardware? Eine SSD/HDD...? local und local-lvm sind bei der Default Installation einfach nur zwei verschiedene Storagetypen [1].

Bei dem tempdir DIR würde ich dann das DIR durch den Pfad auf eine locale Disk ersetzen.
Leider find ich nicht herraus wie der Pfad zu den beiden Disks ist.
Bei dir wird das wahrscheinlich
Code:
tmpdir: /var/tmp
werden.

Bitte poste noch den Output von
Code:
df -h

[1] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_storage_types
 
Hier der Output
root@proxmox:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 3.1M 3.2G 1% /run
/dev/mapper/pve-root 94G 7.1G 83G 8% /
tmpfs 16G 52M 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
efivarfs 192K 67K 121K 36% /sys/firmware/efi/efivars
/dev/nvme0n1p2 1022M 12M 1011M 2% /boot/efi
/dev/fuse 128M 20K 128M 1% /etc/pve
192.168.6.10:/volume1/Proxmox 16T 5.4T 11T 35% /mnt/pve/DSM
tmpfs 3.2G 0 3.2G 0% /run/user/0
192.168.6.10:/volume1/Backup 16T 5.4T 11T 35% /mnt/pve/DSM-Backup
 
Danke, sieht gut aus. Mit den 3 kleinen AppCT's, sollte das sehr gut funktionierten.

Code:
tmpdir: /var/tmp
Bitte in die die /etc/vzdump.conf eintragen und testen.
 
Mariol
danke für deine Hilfe, hat funktioniert.

Gruß Bernd
Perfekt. Wenn dein Thema gelöst ist, markiere bitte dein Thema als „SOLVED“. Du kannst dies tun, indem du deinen ersten Beitrag bearbeitest und das Flag setzt.
 

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!