lockfile does not work on NFS share

General support questions
Post Reply
Posts: 3
Joined: 2020/08/19 07:18:20

lockfile does not work on NFS share

Post by MattClimb » 2020/09/18 10:48:56


I have a new share NFS where i need to make a semaphore with lockfile command.

But when i execute the command it does not work.

Code: Select all

[root@serv-test1 sauv_data]# df . -Th
Filesystem           Type  Size  Used Avail Use% Mounted on
share:/share_test    nfs    60T   31T   30T  52% /sauv_data
[root@serv-test1 sauv_data]# lockfile -r 0 toto
lockfile: Try praying, giving up on "toto"
Can you help me please?

Thx for your help,


User avatar
Forum Moderator
Posts: 29681
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: lockfile does not work on NFS share

Post by TrevorH » 2020/09/18 16:47:43

From man lockfile
Try praying, ... Missing subdirectories or insufficient privileges.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 6 - General Support”