I have been running into an issue with certain LXC containers on my server when backing them up to Proxmox Backup Server.
When I backup the LXC containers which have small disks from 8-24GB the backup to PBS will take an 30 minutes or more. It appears it is reading the entire LVM the LXC root disk is on. Each backup is reading about 445GB each time.
When I do a backup to an SMB share on an NAS or to directory storage on Proxmox the backup is really quick and only shows a size of the LXC of a few MB since the disks don't usually have that much data on them.
I know the actual backup will be much smaller on PBS but the backup time is the problem as it can take an entire day to backup the LXC containers on the server.
When the backups are running CPU and RAM usage is low and all packages are up to date on pve version 8.1.3
What may be causing this behavior with certain LXC containers and not others?
How can I reduce this backup time?
Should I be using different storage for LXC disks than LVM such as LVM-thin?
LXC Backup Log
LXC Config
When I backup the LXC containers which have small disks from 8-24GB the backup to PBS will take an 30 minutes or more. It appears it is reading the entire LVM the LXC root disk is on. Each backup is reading about 445GB each time.
When I do a backup to an SMB share on an NAS or to directory storage on Proxmox the backup is really quick and only shows a size of the LXC of a few MB since the disks don't usually have that much data on them.
I know the actual backup will be much smaller on PBS but the backup time is the problem as it can take an entire day to backup the LXC containers on the server.
When the backups are running CPU and RAM usage is low and all packages are up to date on pve version 8.1.3
What may be causing this behavior with certain LXC containers and not others?
How can I reduce this backup time?
Should I be using different storage for LXC disks than LVM such as LVM-thin?
LXC Backup Log
Code:
INFO: starting new backup job: vzdump 101 --remove 0 --node ds1 --mode snapshot --storage PBS1 --notification-mode auto --notes-template '{{guestname}}'
INFO: Starting Backup of VM 101 (lxc)
INFO: Backup started at 2024-01-09 10:14:51
INFO: status = running
INFO: CT Name: sdn
INFO: including mount point rootfs ('/') in backup
INFO: found old vzdump snapshot (force removal)
Logical volume "snap_vm-101-disk-0_vzdump" successfully removed.
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
Logical volume "snap_vm-101-disk-0_vzdump" created.
INFO: creating Proxmox Backup Server archive 'ct/101/2024-01-09T15:14:51Z'
INFO: run: lxc-usernsexec -m u:1502800000:1502810000:200000 -m g:1502800000:1502810000:200000 -m u:0:100000:65536 -m g:0:100000:65536 -- /usr/bin/proxmox-backup-client backup --crypt-mode=none pct.conf:/var/tmp/vzdumptmp2056880_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 1704813291 --repository ds1_backup@pbs@172.16.99.24:Local
INFO: Starting backup: ct/101/2024-01-09T15:14:51Z
INFO: Client name: ds1
INFO: Starting backup protocol: Tue Jan 9 10:14:54 2024
INFO: No previous manifest available.
INFO: Upload config file '/var/tmp/vzdumptmp2056880_101/etc/vzdump/pct.conf' to 'ds1_backup@pbs@172.16.99.24:8007:Local' as pct.conf.blob
INFO: Upload directory '/mnt/vzsnap0' to 'ds1_backup@pbs@172.16.99.24:8007:Local' as root.pxar.didx
INFO: root.pxar: had to backup 2.707 GiB of 411.645 GiB (compressed 1.165 GiB) in 1969.02s
INFO: root.pxar: average backup speed: 1.408 MiB/s
INFO: root.pxar: backup was done incrementally, reused 408.938 GiB (99.3%)
INFO: Uploaded backup catalog (855.708 KiB)
INFO: Duration: 1969.25s
INFO: End Time: Tue Jan 9 10:47:43 2024
INFO: adding notes to backup
INFO: cleanup temporary 'vzdump' snapshot
Logical volume "snap_vm-101-disk-0_vzdump" successfully removed.
INFO: Finished Backup of VM 101 (00:33:12)
INFO: Backup finished at 2024-01-09 10:48:03
INFO: Backup job finished successfully
INFO: notified via target `mail-to-root`
TASK OK
LXC Config
Code:
arch: amd64
cores: 2
features: nesting=1
hostname: sdn
memory: 2048
nameserver: 172.16.99.1
net0: name=eth0,bridge=vmbr1,hwaddr=A6:1A:F9:3B:10:51,ip=dhcp,tag=99,type=veth
onboot: 1
ostype: ubuntu
rootfs: local-lvm:vm-101-disk-0,size=24G
searchdomain: orl.domain.int
startup: order=1,up=10
swap: 1024
unprivileged: 1
lxc.idmap: u 1502800000 1502810000 200000
lxc.idmap: g 1502800000 1502810000 200000
lxc.idmap: u 0 100000 65536
lxc.idmap: g 0 100000 65536
Code:
proxmox-ve: 8.1.0 (running kernel: 6.5.11-7-pve)
pve-manager: 8.1.3 (running version: 8.1.3/b46aac3b42da5d15)
proxmox-kernel-helper: 8.1.0
pve-kernel-5.15: 7.4-7
proxmox-kernel-6.5: 6.5.11-7
proxmox-kernel-6.5.11-7-pve-signed: 6.5.11-7
proxmox-kernel-6.5.11-6-pve-signed: 6.5.11-6
proxmox-kernel-6.2.16-20-pve: 6.2.16-20
proxmox-kernel-6.2: 6.2.16-20
proxmox-kernel-6.2.16-15-pve: 6.2.16-15
pve-kernel-5.15.126-1-pve: 5.15.126-1
pve-kernel-5.15.102-1-pve: 5.15.102-1
ceph-fuse: 16.2.11+ds-2
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx7
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.0
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.3.3
libpve-access-control: 8.0.7
libpve-apiclient-perl: 3.3.1
libpve-common-perl: 8.1.0
libpve-guest-common-perl: 5.0.6
libpve-http-server-perl: 5.0.5
libpve-network-perl: 0.9.5
libpve-rs-perl: 0.8.7
libpve-storage-perl: 8.0.5
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 5.0.2-4
lxcfs: 5.0.3-pve4
novnc-pve: 1.4.0-3
openvswitch-switch: 3.1.0-2
proxmox-backup-client: 3.1.2-1
proxmox-backup-file-restore: 3.1.2-1
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.2.2
proxmox-mini-journalreader: 1.4.0
proxmox-widget-toolkit: 4.1.3
pve-cluster: 8.0.5
pve-container: 5.0.8
pve-docs: 8.1.3
pve-edk2-firmware: 4.2023.08-2
pve-firewall: 5.0.3
pve-firmware: 3.9-1
pve-ha-manager: 4.0.3
pve-i18n: 3.1.5
pve-qemu-kvm: 8.1.2-6
pve-xtermjs: 5.3.0-3
qemu-server: 8.0.10
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.2-pve1
Last edited: