backup failed: can't aquire lock

offerlam

Renowned Member
Dec 30, 2012
218
0
81
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?
 
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.
 
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 .