lockfile does not work on NFS share

General support questions
Post Reply
MattClimb
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

Hi,

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,

Matt

User avatar
TrevorH
Site Admin
Posts: 33218
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
DIAGNOSTICS
...
Try praying, ... Missing subdirectories or insufficient privileges.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply