- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file lock error
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
10-12-2003 07:57 PM
10-12-2003 07:57 PM
we have trouble saving files from HPUX 11 (with Catia or a simple test prog) over NFS on a Windows XP Client with Services for Unix running.
Other applications or a normal cp works fine.
AFAIK depends the problem on file locking (rpc.lockd), that's seems to be different on HPUX. Saving files with Catia/SUN on the windows machine works!
Logfile from rpc.lockd (HP)
----cut----
/usr/sbin/rpc.lockd
/usr/sbin/rpc.lockd: Succesful bind to P.Port
10.09 13:51:05 tc51 pid=899 /usr/sbin/rpc.lockd
/usr/sbin/rpc.lockd: unknown lock return: 9
10.09 14:15:06 tc51 pid=899 /usr/sbin/rpc.lockd
Note ::: Last 1 Messages Repeated 73 times (sum total)
----cut----
Logfile SfU:
----cut----
10-08-2003 12:47:11 LOCK FAILURE 10.233.16.51 \DosDevices\C:\Home\hugo\HUGO.model
10-08-2003 12:47:31 LOCK FAILURE 10.233.16.51 \DosDevices\C:\Home\hugo\HUGO.model
10-08-2003 12:47:51 LOCK FAILURE 10.233.16.51 \DosDevices\C:\Home\hugo\HUGO.model
10-08-2003 12:48:11 LOCK FAILURE 10.233.16.51 \DosDevices\C:\Home\hugo\HUGO.model
10-08-2003 12:48:31 LOCK FAILURE 10.233.16.51 \DosDevices\C:\Home\hugo\HUGO.model
10-08-2003 12:49:50 LOCK FAILURE 10.233.16.51 \DosDevices\C:\Home\hugo\test.model
10-08-2003 12:50:00 LOCK FAILURE 10.233.16.51 \DosDevices\C:\Home\hugo\test.model
10-08-2003 12:50:10 LOCK FAILURE 10.233.16.51 \DosDevices\C:\Home\hugo\test.model
----cut----
thx for help
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 10:41 PM
10-12-2003 10:41 PM
Re: file lock error
apart from a good NFS/ONC patch, i suggest you to check the kernel parameter nflocks, it could very well be a problem of nflock table full.
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 11:22 PM
10-12-2003 11:22 PM
Re: file lock error
Is it possible that the file in question actually is locked by another user?
That would explain the behavior. Or a second copy of the same program running.
If its a kernel problem, other attempts to open and lock files should also fail.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 11:54 PM
10-12-2003 11:54 PM
Re: file lock error
"
Not sure what version of HP-UX or NFS you are running, but this essentially means that the protocal on one machine is returning a lock status ("9") that is unknown to the system where the error message is appearing.
So this is a protocol or version mismatch in NFS. A patch of rpc.lockd and NFS may help this out.
Best regards,
Kent M. Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 06:44 PM
10-13-2003 06:44 PM
Re: file lock error
Unfortunately my problem is still there :-(
- latest nfs/onc patches are installed
- latest lockd patches are installed
- increased nflocks to 400 (good choice?)
- the prog do not run twice an the same time
- the file is not lock by any another user/process
any other ideas?
thx
lars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2003 12:05 AM
10-14-2003 12:05 AM
SolutionI have attached a simple locking program you can use to test outside of your application on the HPUX NFS client.
* Compile this program on the nfs client using :
*
* cc locktest.c -o locktest
*
* Then run the executable passing the name of a file that
* is located on your nfs server, such as:
*
* ./locktest /nfs/server/testfile
*
* If file locking is working correctly, the output will look like:
*
* Open OK
* Locking...OK
*
* If you do not see the "OK" after the "Locking..." then you have
* a file locking problem. The typical symptom would be that the program
* will not complete, but will just hang afetr the "Locking...".
Example:
./locktest /HAdumps/testlock
Open OK
Locking...OK
If this works you have to dig further into your application, if this fails you have a general locking issue.
First of all, 99% of locking issues come down to name resolution problems. Make sure the XP server resolves the HP forward and reverse addresses the same way the HP resolves ( FQHN or Short names ). IF there is a mismatch the locking protocol on the NFS server will typically fail to allow the lock.
If the name resolution is correct then the next step is to debug with a network trace and debug logging on rpc.lockd and rpc.statd on the HP client and the XP server.
NOTE: I'd suggest if the locktest program fails you contact HP Support to assist with the debug of your lock issue.
DEBUGGING LOCK PROBLEMS:
On the HP you can "toggle" debug on via the SIGUSR2 signal ( kill -17 ) to the PID of the running rpc.lockd & rpc.statd, toggle it off w/ the same signal.
For a network trace you can use something like ethereal or netmon on the XP and use nettl on the HP side. You would want to capture the network traffic on both sides for the best results
For the HP side you can do this:
Start nettl tracing at IP layer:
# /usr/sbin/nettl -tn pduin pduout -e ns_ls_ip -s 1024 -tm 99999 -f out_file
Reproduce the lock failure, use the
lockprogram for example.
#./locktest /nfs/server/testfile
Stop your trace
# /usr/sbin/nettl -tf -e all
This is going to create a out_file.TRCXXX file which you can view with the netfmt command.
Create a filter file:
# cat filter_file
filter rpcdirection call
filter rpcdirection reply
Then format it out
# /usr/sbin/netfmt -Nnlf out_file.TRCXXX -c filter > trace.out
You can view the trace.out and look for lock issues.
Hope this helps,
Todd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 06:08 PM
10-21-2003 06:08 PM
Re: file lock error
A patch from Microsoft was needed an it just works well with Win2000.
At the end it is an error in the NLM (Network Lock Mananger) between HPUX and Windows
thx for your help
Lars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 09:22 PM
01-07-2004 09:22 PM
Re: file lock error
My PC is Windows 2000 Professional(Service Pack 4).
Please Tell me the number of the patch that works well windows 2000.
Best Reagrds.
Kohei Mochizuki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 08:07 AM
02-12-2004 08:07 AM
Re: file lock error
I've stumbled on the same problem,
Lars could you tell me, how to get the patch for Network Lock Mananger ?
I've tried the SFU v3.5, the problem stay's.........
thx,
Geert Jan Laanstra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 10:45 AM
02-12-2004 10:45 AM
Re: file lock error
I've solved this problem.
I received Microsoft Professional Support.
This service is fare-paying services.
At first, I got a hotfix(Patch) from microsoft, however the error wasn't solved by the hotfix. Next, I got the instruction to change a registry. The registry is to avoid the file lock mandatorily. Hereby, I was able to open a file on my application, though the application had a error internally.
Please contact Microsoft about the detail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 07:25 PM
02-12-2004 07:25 PM
Re: file lock error
Kohei is right!
You must have a service contract with Microsoft.
Unfortunately I have just the patch for SfU3.0.
Good Luck :-)
Lars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2004 10:43 AM
02-13-2004 10:43 AM
Re: file lock error
Could you send me the patch for V3.0 as well ? That would help me.....
I've asked one of our IT people to get the one for V3.5.
I've also tested a competative product :
Hummingbird NFS Server
It looks like this one works okay (for now)
thx, ;-)
Geert Jan Laanstra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2004 10:32 PM
02-15-2004 10:32 PM
Re: file lock error
It looks like that the patch is already included in version V3.5.
After installing the only thing i had to do was to deactivate the EnableSMBLocking entry, see KB328858.
For SFU V3.0 you'll need the additional hotfix 329072.
SFU V3.5 works fine now........
thx
Geert Jan Laanstra