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

Dietmar Maurer dietmar at proxmox.com
Mon May 12 10:46:15 CEST 2014


> timeout (automatic unlock after 120 seconds).
> 
> > I need something between 6-10min.
> 
> Again, you can't do that, so you need to find some workaround.
> 
> Usually it is not necessary to lock things for such a long time.

One workaround is to define an 'owner' node. We use that for VM configs.
That way you only need to hold the global lock when you create or move VMs. For other operations
it is good enough to acquire a local lock. Only the 'owner' can move a VM.





More information about the pve-devel mailing list