> >>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.