backup failed: can't aquire lock

offerlam

Member
Dec 30, 2012
198
0
16
Denmark
Hi all,

I starting to get these emails where it says my backup is locked and so gets a timeout

vzdump backup status (proxmox01.ins.local) : backup failed: can't aquire lock '/var/run/vzdump.lock' - got timeout

but the funny thing is that i do get a successfull email also on the mashines involved. In the lock error it says its VM being backed up on backup02 storage and those VM are being backed up successfully according to another email from vzdump saying it was successful

Any suggestions?
 

fabian

Proxmox Staff Member
Staff member
Jan 7, 2016
3,399
529
113
do you have multiple backup cron jobs that run very long? on each host, vzdump will aquire a global lock and can only run once at the same time. the default timeout for aquiring the lock is 3 hours.
 

fabian

Proxmox Staff Member
Staff member
Jan 7, 2016
3,399
529
113
You can either make them one job (if they are similar enough), space them sufficiently apart (difference between start of second and end of first < 3 hours) or increase the timeout in /etc/vzdump.conf .
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!