Fehler Backup

xnetworkerx

New Member
Mar 23, 2023
20
0
1
Ich habe 2 Container laufen. Bei einem von beiden schlägt das Backup immer fehl.

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=/var/tmp/vzdumptmp2541_101/' ./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 --rsyncable '--threads=1' >/mnt/usbstick/dump/vzdump-lxc-101-2024_06_01-16_51_23.tar.dat' failed: exit code 1

Was kann ich tun?
 
Unten, in "Tasks" den "VM/CT 101 - Backup" Job suchen und das dort enhaltene gesamte Log hier posten. Das erhöht zumindest die Chance auf eine hilfreichere Antwort als diese ;-)
 
INFO: starting new backup job: vzdump 101 --storage USBSTICK --compress zstd --notes-template '{{guestname}}' --node proxmox --remove 0 --mode snapshot
INFO: Starting Backup of VM 101 (lxc)
INFO: Backup started at 2024-06-01 16:51:23
INFO: status = running
INFO: CT Name: pihole
INFO: including mount point rootfs ('/') in backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
WARNING: You have not turned on protection against thin pools running out of space.
WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
Logical volume "snap_vm-101-disk-0_vzdump" created.
WARNING: Sum of all thin volume sizes (380.00 GiB) exceeds the size of thin pool pve/data and the size of whole volume group (<118.74 GiB).
INFO: creating vzdump archive '/mnt/usbstick/dump/vzdump-lxc-101-2024_06_01-16_51_23.tar.zst'
INFO: tar: ./var/log/journal/99a19ce22a174d6daadb822230a0c010/system@421213e13205443f986705aa0f89d624-000000000000d3e8-00060101105ea896.journal: File shrank by 25030656 bytes; padding with zeros
INFO: Total bytes written: 4724848640 (4.5GiB, 81MiB/s)
INFO: cleanup temporary 'vzdump' snapshot
Logical volume "snap_vm-101-disk-0_vzdump" successfully removed
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=/var/tmp/vzdumptmp2541_101/' ./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 --rsyncable '--threads=1' >/mnt/usbstick/dump/vzdump-lxc-101-2024_06_01-16_51_23.tar.dat' failed: exit code 1
INFO: Failed at 2024-06-01 16:52:21
INFO: Backup job finished with errors
TASK ERROR: job errors
 
Ich nehme an, dessen bist Du Dir bewusst?
WARNING: Sum of all thin volume sizes (380.00 GiB) exceeds the size of thin pool pve/data and the size of whole volume group (<118.74 GiB).

Wie ist denn Dein USB-Stick denn formatiert? Kannst Du in der Shell darauf schreiben?
 
Ein anderes Backup klappt ja mit dem Schreiben auf den Stick. Nur ein Backup macht Probleme. Weder auf die interne noch auf auf den Stick
 
Gelesen was im Log steht? und was auch devaux und ich sofort gesehen hatten?
Wenn lokal und auf dem device kein Platz mehr ist, klappt das natürlich nicht mehr.
 
Hi,
der Grund warum tar Exit-Code 1 liefert ist diese Datei hier:
Code:
INFO: tar: ./var/log/journal/99a19ce22a174d6daadb822230a0c010/system@421213e13205443f986705aa0f89d624-000000000000d3e8-00060101105ea896.journal: File shrank by 25030656 bytes; padding with zeros

Möglicherweise hilft ein pct fsck 101. Andererseits, schauen, ob die Datei gelöscht/neu erstellt werden kann.

Aus der man page man tar:
Code:
RETURN VALUE
       Tar exit code indicates whether it was able to successfully perform the requested operation, and if not, what kind of error occurred.

       0      Successful termination.

       1      Some  files  differ.  If tar was invoked with the --compare (--diff, -d) command line option, this means that some files in the archive differ from their disk counterparts.  If tar was
              given one of the --create, --append or --update options, this exit code means that some files were changed while being archived and so the resulting archive does not contain the  exact
              copy of the file set.

       2      Fatal error.  This means that some fatal, unrecoverable error occurred.
 
Hi,
der Grund warum tar Exit-Code 1 liefert ist diese Datei hier:
Code:
INFO: tar: ./var/log/journal/99a19ce22a174d6daadb822230a0c010/system@421213e13205443f986705aa0f89d624-000000000000d3e8-00060101105ea896.journal: File shrank by 25030656 bytes; padding with zeros

Möglicherweise hilft ein pct fsck 101. Andererseits, schauen, ob die Datei gelöscht/neu erstellt werden kann.

Aus der man page man tar:
Code:
RETURN VALUE
       Tar exit code indicates whether it was able to successfully perform the requested operation, and if not, what kind of error occurred.

       0      Successful termination.

       1      Some  files  differ.  If tar was invoked with the --compare (--diff, -d) command line option, this means that some files in the archive differ from their disk counterparts.  If tar was
              given one of the --create, --append or --update options, this exit code means that some files were changed while being archived and so the resulting archive does not contain the  exact
              copy of the file set.

       2      Fatal error.  This means that some fatal, unrecoverable error occurred.
Hallo Fiona,

pct fsck 101 gibt folgendes zurück:
root@proxmox:~# pct fsck 101
fsck from util-linux 2.36.1
/dev/mapper/pve-vm--101--disk--0: clean, 25625/1966080 files, 1313576/7864320 blocks

Fehlermeldung nach erneuten Backupversuch:

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=/var/tmp/vzdumptmp401901_101/' ./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 --rsyncable '--threads=1' >/var/lib/vz/dump/vzdump-lxc-101-2024_09_02-09_54_51.tar.dat' failed: exit code 1
INFO: Failed at 2024-09-02 09:55:41

Diesen Container kann ich auch nicht klonen auf die SSD wo mehr Platz ist.
 
Last edited:
Fehlermeldung nach erneuten Backupversuch:

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=/var/tmp/vzdumptmp401901_101/' ./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 --rsyncable '--threads=1' >/var/lib/vz/dump/vzdump-lxc-101-2024_09_02-09_54_51.tar.dat' failed: exit code 1
INFO: Failed at 2024-09-02 09:55:41
Bitte den gesamten Task-Log posten. Gibt es immer noch den Fehler wegen der selben Datei? Wie gesagt:
Andererseits, schauen, ob die Datei gelöscht/neu erstellt werden kann.

Diesen Container kann ich auch nicht klonen auf die SSD wo mehr Platz ist.
Was für eine Fehlermeldung gibt es hier?
 

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!