- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- flock() failing in 2+0 environment
Operating System - HP-UX
1820390
Members
3565
Online
109623
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
Discussions
Discussions
Discussions
Forums
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
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
тАО02-09-2004 05:15 PM
тАО02-09-2004 05:15 PM
flock() failing in 2+0 environment
I'm using flock() in one of my perl scripts. It is working fine in the HP-UX 1+0 environment. But hanging in the 2+0 environment. I'm creating the lock on a file where the directory is mounted on both the systems. If I create the file in the local directory (eg: /tmp) and use the script that is working fine. We are suspecting this as some NFS problem. When we restarted the cluster, then the flock is working fine in 2+0. Can anybody suggest what could be the problem and what to do in case of the hanging situation instead of cluster restart.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2004 05:19 PM
тАО02-09-2004 05:19 PM
Re: flock() failing in 2+0 environment
In the perl manual, I think it says something like "flock is unlikely to work on a network filesystem".
NFS is not really easy to lock files on. I think you are going to have to implement locking yourself.
NFS is not really easy to lock files on. I think you are going to have to implement locking yourself.
Never preceed any demonstration with anything more predictive than "watch this"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2004 08:56 PM
тАО02-10-2004 08:56 PM
Re: flock() failing in 2+0 environment
Hi,
NFS may cause the problem. Restarting nfs will solve your problem.
Instead of restarting entire cluster, you can stop and start only NFS.
Followin commands may help.
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.client start
Regards
VJ.
NFS may cause the problem. Restarting nfs will solve your problem.
Instead of restarting entire cluster, you can stop and start only NFS.
Followin commands may help.
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.client start
Regards
VJ.
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP