Proxmox Backup task keeps running after backup is done

bgkprmx

New Member
Aug 24, 2023
4
0
1
I have recently setup a new PBS and pointed the pve to backup to that.

PBS (3.3.2)
PVE (8.3.2)

Here's the backup log

Code:
INFO: starting new backup job: vzdump 993 --storage bulk-pbs --notification-mode auto --node pve1 --remove 0 --notes-template '{{guestname}}' --mode stop
INFO: Starting Backup of VM 993 (lxc)
INFO: Backup started at 2025-01-08 23:09:07
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: network-test
INFO: including mount point rootfs ('/') in backup
INFO: creating Proxmox Backup Server archive 'ct/993/2025-01-09T04:09:07Z'
INFO: set max number of entries in memory for file-based backups to 1048576
INFO: run: lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- /usr/bin/proxmox-backup-client backup --crypt-mode=none pct.conf:/var/tmp/vzdumptmp1604631_993/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 993 --backup-time 1736395747 --entries-max 1048576 --repository pbs-pve@pbs@192.168.101.91:bulk-pbs-pve
INFO: Starting backup: ct/993/2025-01-09T04:09:07Z   
INFO: Client name: pve1   
INFO: Starting backup protocol: Wed Jan  8 23:09:07 2025   
INFO: No previous manifest available.   
INFO: Upload config file '/var/tmp/vzdumptmp1604631_993/etc/vzdump/pct.conf' to 'pbs-pve@pbs@192.168.101.91:8007:bulk-pbs-pve' as pct.conf.blob   
INFO: Upload directory '/mnt/vzsnap0' to 'pbs-pve@pbs@192.168.101.91:8007:bulk-pbs-pve' as root.pxar.didx   
INFO: root.pxar: had to backup 716.363 MiB of 716.363 MiB (compressed 250.354 MiB) in 7.73 s (average 92.731 MiB/s)
INFO: Uploaded backup catalog (478.271 KiB)
INFO: Duration: 8.08s   
INFO: End Time: Wed Jan  8 23:09:15 2025   
INFO: adding notes to backup
INFO: Finished Backup of VM 993 (00:00:08)
INFO: Backup finished at 2025-01-08 23:09:15
INFO: Backup job finished successfully


I can see the backup file is created in the PBS too, but the backup task in the PVE is still running (stuck?) even after 12 hours passed.


1736442626721.png

Any idea how to fix it, where should I look?


Thanks,
 
Is your datastore on a hdd and the "verify after backup" option enabled? Verify is known to take looong on spinning discs
 
Is your datastore on a hdd and the "verify after backup" option enabled? Verify is known to take looong on spinning discs
Yes, the datastore is on 3x16TB HDD with RAIDZ1. Even though the LXC disk size I am backing up is 8G, it's supposed to take 13+ hours (and still running)?

This is what's set on the PBS datastore (default values)


1736445135403.png
 
Yes, the datastore is on 3x16TB HDD with RAIDZ1. Even though the LXC disk size I am backing up is 8G, it's supposed to take 13+ hours (and still running)?

This sounds extreme but RAIDz in general and hdds are each known for performance issues, even more together. It shouldn't be that worse for eight GB though.
If you gave a ssd available on the PBS could you please try to create a temporary datastore on it to see whether that makes any difference?

Another issue might be the network but eight GB isn't that much data to cause trouble even on a slow line.

This is what's set on the PBS datastore (default values)


View attachment 80463
The notify options only affects in which cases a notification will be sent not the actual verify. The interesting option would be "verify New snapshots", which is already disabled thus not the culprit.

Could you please copy-paste the whole output of the job?
 
This sounds extreme but RAIDz in general and hdds are each known for performance issues, even more together. It shouldn't be that worse for eight GB though.
If you gave a ssd available on the PBS could you please try to create a temporary datastore on it to see whether that makes any difference?

Another issue might be the network but eight GB isn't that much data to cause trouble even on a slow line.


The notify options only affects in which cases a notification will be sent not the actual verify. The interesting option would be "verify New snapshots", which is already disabled thus not the culprit.

Could you please copy-paste the whole output of the job?
So, I created a test datastore which is on an SSD. I stopped the old running backup task.

The same disk got backed up on the SSD datastore within 4 seconds.

This is the output of the backup job (on SSD datastore)

Code:
INFO: starting new backup job: vzdump 993 --node pve1 --storage pbs-pve-test-ssd --notification-mode auto --notes-template '{{guestname}}' --mode stop --remove 0
INFO: Starting Backup of VM 993 (lxc)
INFO: Backup started at 2025-01-09 13:36:18
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: network-test
INFO: including mount point rootfs ('/') in backup
INFO: creating Proxmox Backup Server archive 'ct/993/2025-01-09T18:36:18Z'
INFO: set max number of entries in memory for file-based backups to 1048576
INFO: run: lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- /usr/bin/proxmox-backup-client backup --crypt-mode=none pct.conf:/var/tmp/vzdumptmp2601291_993/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 993 --backup-time 1736447778 --entries-max 1048576 --repository pbs-pve@pbs@192.168.101.91:test-pbs-ssd
INFO: Starting backup: ct/993/2025-01-09T18:36:18Z  
INFO: Client name: pve1  
INFO: Starting backup protocol: Thu Jan  9 13:36:18 2025  
INFO: No previous manifest available.  
INFO: Upload config file '/var/tmp/vzdumptmp2601291_993/etc/vzdump/pct.conf' to 'pbs-pve@pbs@192.168.101.91:8007:test-pbs-ssd' as pct.conf.blob  
INFO: Upload directory '/mnt/vzsnap0' to 'pbs-pve@pbs@192.168.101.91:8007:test-pbs-ssd' as root.pxar.didx  
INFO: root.pxar: had to backup 716.363 MiB of 716.363 MiB (compressed 250.354 MiB) in 2.24 s (average 320.145 MiB/s)
INFO: Uploaded backup catalog (478.271 KiB)
INFO: Duration: 2.41s  
INFO: End Time: Thu Jan  9 13:36:21 2025  
INFO: adding notes to backup
INFO: Finished Backup of VM 993 (00:00:03)
INFO: Backup finished at 2025-01-09 13:36:21
INFO: Backup job finished successfully
TASK OK


I tried to do the same LXC backup on the 3x16 TB RAIDz pool after that and same thing, it is showing "Backup job finished successfully" but the backup task is still running,

Backup on HDD datastore output:

Code:
INFO: starting new backup job: vzdump 993 --notes-template '{{guestname}}' --mode stop --remove 0 --node pve1 --storage bulk-pbs --notification-mode auto
INFO: Starting Backup of VM 993 (lxc)
INFO: Backup started at 2025-01-09 13:39:03
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: network-test
INFO: including mount point rootfs ('/') in backup
INFO: creating Proxmox Backup Server archive 'ct/993/2025-01-09T18:39:03Z'
INFO: set max number of entries in memory for file-based backups to 1048576
INFO: run: lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- /usr/bin/proxmox-backup-client backup --crypt-mode=none pct.conf:/var/tmp/vzdumptmp2605767_993/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 993 --backup-time 1736447943 --entries-max 1048576 --repository pbs-pve@pbs@192.168.101.91:bulk-pbs-pve
INFO: Starting backup: ct/993/2025-01-09T18:39:03Z  
INFO: Client name: pve1  
INFO: Starting backup protocol: Thu Jan  9 13:39:03 2025  
INFO: Downloading previous manifest (Thu Jan  9 13:37:04 2025)  
INFO: Upload config file '/var/tmp/vzdumptmp2605767_993/etc/vzdump/pct.conf' to 'pbs-pve@pbs@192.168.101.91:8007:bulk-pbs-pve' as pct.conf.blob  
INFO: Upload directory '/mnt/vzsnap0' to 'pbs-pve@pbs@192.168.101.91:8007:bulk-pbs-pve' as root.pxar.didx  
INFO: root.pxar: had to backup 0 B of 716.363 MiB (compressed 0 B) in 1.47 s (average 0 B/s)
INFO: root.pxar: backup was done incrementally, reused 716.363 MiB (100.0%)
INFO: Uploaded backup catalog (478.271 KiB)
INFO: Duration: 1.55s  
INFO: End Time: Thu Jan  9 13:39:05 2025  
INFO: adding notes to backup
INFO: Finished Backup of VM 993 (00:00:02)
INFO: Backup finished at 2025-01-09 13:39:05
INFO: Backup job finished successfully
 
Could you please open the host console, enter following commands and paste the results here?
Bash:
ps ax|grep proxmox-backup-client
Bash:
ps ax|grep vzdump
 
Last edited:

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!