[pve-devel] does /etc/pve support flock?

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Mon May 12 07:29:28 CEST 2014


Am 12.05.2014 um 06:04 schrieb Dietmar Maurer <dietmar at proxmox.com>:

>>>> Is there any other machanism usable for this task?
>> 
>> PVE::Cluster::cfs_lock() ?
>> 
>> (in Cluster.pm)
> 
> But such lock have a timeout, so please do not try to hold them longer that 60 seconds.
> 
> PVE::Cluster::cfs_lock() enforces that timeout using an alarm timer.

Not familiar with the cfs locking. What happens if the process dies which has set the lock?

I need something between 6-10min.

Stefan




More information about the pve-devel mailing list