HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: file lock fails on nfs file system
Operating System - HP-UX
1833271
Members
3067
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2003 03:59 AM
06-26-2003 03:59 AM
file lock fails on nfs file system
Hi,
The file locking (using lockf as well as fcntl) fails on a file (always returns -1 on a nfs filesystem). The 'errno' is set to ENOLCK.
This happens only on HP.
any help would be greatly appreciated
TIA
satya
The file locking (using lockf as well as fcntl) fails on a file (always returns -1 on a nfs filesystem). The 'errno' is set to ENOLCK.
This happens only on HP.
any help would be greatly appreciated
TIA
satya
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2003 04:02 AM
06-26-2003 04:02 AM
Re: file lock fails on nfs file system
Hi,
check if on the server the rpc.lockd is active.
HTH,
Massimo
check if on the server the rpc.lockd is active.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2003 04:05 AM
06-26-2003 04:05 AM
Re: file lock fails on nfs file system
Hi,
I think that you can find the answer in man lockf.
See the NFS section :
"Only advisory record locking is implemented for NFS files"
and in the ERRORS :
[ENOLCK] Either function is F_TLOCK or F_LOCK and the file is an NFS file with access bits set for enforcement mode, or the file is an NFS file and a system error occurred on the remote node.
Regards.
I think that you can find the answer in man lockf.
See the NFS section :
"Only advisory record locking is implemented for NFS files"
and in the ERRORS :
[ENOLCK] Either function is F_TLOCK or F_LOCK and the file is an NFS file with access bits set for enforcement mode, or the file is an NFS file and a system error occurred on the remote node.
Regards.
It works for me (© Bill McNAMARA ...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2003 04:16 AM
06-26-2003 04:16 AM
Re: file lock fails on nfs file system
Hi,
from manual:
If multiple users on different NFS clients will be writing to the file,
you must also turn off attribute caching on those clients by mounting
the file with the noac option.
Issue the following command on the NFS client to make sure the
server is running all the NFS server processes:
/usr/bin/rpcinfo -p servername
The rpcinfo command should display the following processes:
??? rpcbind
??? nfs
??? mountd
??? status
??? nlockmgr
??? llockmgr
Enrico
from manual:
If multiple users on different NFS clients will be writing to the file,
you must also turn off attribute caching on those clients by mounting
the file with the noac option.
Issue the following command on the NFS client to make sure the
server is running all the NFS server processes:
/usr/bin/rpcinfo -p servername
The rpcinfo command should display the following processes:
??? rpcbind
??? nfs
??? mountd
??? status
??? nlockmgr
??? llockmgr
Enrico
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP