Problems with backup of the lxc container to pbs

leksand

Member
Aug 28, 2020
77
0
11
38
I found a problem with copying the container to proxmox backup server.
pve 6.4-8, Backup Server 1.1-12. As I understand it, due to old containers, upgrading to the latest versions can make containers non-working.

Initially it was (log) 202: 2023-11-09 18:16:00 INFO: Starting Backup of VM 202 (lxc)
202: 2023-11-09 18:16:00 INFO: status = running
202: 2023-11-09 18:16:00 INFO: CT Name: name
202: 2023-11-09 18:16:00 INFO: including mount point rootfs ('/') in backup
202: 2023-11-09 18:16:00 INFO: mode failure - some volumes do not support snapshots
202: 2023-11-09 18:16:00 INFO: trying 'suspend' mode instead
202: 2023-11-09 18:16:00 INFO: backup mode: suspend
202: 2023-11-09 18:16:00 INFO: ionice priority: 7
202: 2023-11-09 18:16:00 INFO: CT Name: name
202: 2023-11-09 18:16:00 INFO: including mount point rootfs ('/') in backup
202: 2023-11-09 18:16:00 INFO: starting first sync /proc/15477/root/ to /mnt/disk1/vzdumptmp27145_202/
202: 2023-11-09 18:30:04 ERROR: Backup of VM 202 failed - command 'rsync --stats -h -X -A --numeric-ids -aH --delete --no-whole-file --sparse --one-file-system --relative '--exclude=/tmp/?*' '--exclude=/var/tmp/?*' '--exclude=/var/run/?*.pid' /proc/15477/root//./ /mnt/disk1/vzdumptmp27145_202/' failed: exit code 11

I made a separate lvm partition of 100 GB and mounted it as /tmp, specified it in /etc/vzdump.conf as tmpdir.

And still a mistake
202: 2023-11-09 19:08:35 INFO: starting first sync /proc/15477/root/ to /mnt/tmpvzdump/vzdumptmp10675_202/
202: 2023-11-09 19:32:15 ERROR: Backup of VM 202 failed - command 'rsync --stats -h -X -A --numeric-ids -aH --delete --no-whole-file --sparse --one-file-system --relative '--exclude=/tmp/?*' '--exclude=/var/tmp/?*' '--exclude=/var/run/?*.pid' /proc/15477/root//./ /mnt/tmpvzdump/vzdumptmp10675_202/' failed: exit code 11

As I see, when backing up, a full copy is made to the temporary folder /mnt/tmpvzdump/vzdumptmp5971_202/ and there is simply not enough space on the temporary partition.

The container is large - 2500 GB, there is no way to make the same tmp partition for it. Or difficult and painful through the network section.

How to make copying not require so much space, but go in chunks or compare parts/blocks without full copying?

Is it possible to solve this with settings? The goal is normal backup operation. There is enough space on pbs.
 

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!