<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: file lock error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091498#M570549</link>
    <description>Hi,&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;  Massimo</description>
    <pubDate>Mon, 13 Oct 2003 05:41:12 GMT</pubDate>
    <dc:creator>Massimo Bianchi</dc:creator>
    <dc:date>2003-10-13T05:41:12Z</dc:date>
    <item>
      <title>file lock error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091497#M570548</link>
      <description>Good Morning,&lt;BR /&gt;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.&lt;BR /&gt;Other applications or a normal cp works fine.&lt;BR /&gt;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!&lt;BR /&gt;Logfile from rpc.lockd (HP) &lt;BR /&gt;----cut----&lt;BR /&gt;/usr/sbin/rpc.lockd&lt;BR /&gt;     /usr/sbin/rpc.lockd: Succesful bind to P.Port&lt;BR /&gt;10.09 13:51:05  tc51      pid=899    /usr/sbin/rpc.lockd&lt;BR /&gt;     /usr/sbin/rpc.lockd: unknown lock return: 9&lt;BR /&gt;10.09 14:15:06  tc51      pid=899    /usr/sbin/rpc.lockd&lt;BR /&gt;     Note ::: Last    1 Messages Repeated         73 times (sum total)&lt;BR /&gt;&lt;BR /&gt;----cut----&lt;BR /&gt;&lt;BR /&gt;Logfile SfU:&lt;BR /&gt;----cut----&lt;BR /&gt;10-08-2003 12:47:11 LOCK    FAILURE 10.233.16.51    \DosDevices\C:\Home\hugo\HUGO.model&lt;BR /&gt;10-08-2003 12:47:31 LOCK    FAILURE 10.233.16.51    \DosDevices\C:\Home\hugo\HUGO.model&lt;BR /&gt;10-08-2003 12:47:51 LOCK    FAILURE 10.233.16.51    \DosDevices\C:\Home\hugo\HUGO.model&lt;BR /&gt;10-08-2003 12:48:11 LOCK    FAILURE 10.233.16.51    \DosDevices\C:\Home\hugo\HUGO.model&lt;BR /&gt;10-08-2003 12:48:31 LOCK    FAILURE 10.233.16.51    \DosDevices\C:\Home\hugo\HUGO.model&lt;BR /&gt;10-08-2003 12:49:50 LOCK    FAILURE 10.233.16.51    \DosDevices\C:\Home\hugo\test.model&lt;BR /&gt;10-08-2003 12:50:00 LOCK    FAILURE 10.233.16.51    \DosDevices\C:\Home\hugo\test.model&lt;BR /&gt;10-08-2003 12:50:10 LOCK    FAILURE 10.233.16.51    \DosDevices\C:\Home\hugo\test.model&lt;BR /&gt;----cut----&lt;BR /&gt;&lt;BR /&gt;thx for help</description>
      <pubDate>Mon, 13 Oct 2003 02:57:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091497#M570548</guid>
      <dc:creator>Lars Blumenthal</dc:creator>
      <dc:date>2003-10-13T02:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: file lock error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091498#M570549</link>
      <description>Hi,&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;  Massimo</description>
      <pubDate>Mon, 13 Oct 2003 05:41:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091498#M570549</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-10-13T05:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: file lock error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091499#M570550</link>
      <description>Massimo's suggestion is excellent.&lt;BR /&gt; &lt;BR /&gt;Is it possible that the file in question actually is locked by another user?&lt;BR /&gt; &lt;BR /&gt;That would explain the behavior. Or a second copy of the same program running.&lt;BR /&gt; &lt;BR /&gt;If its a kernel problem, other attempts to open and lock files should also fail.&lt;BR /&gt; &lt;BR /&gt;SEP</description>
      <pubDate>Mon, 13 Oct 2003 06:22:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091499#M570550</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-10-13T06:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: file lock error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091500#M570551</link>
      <description>"/usr/sbin/rpc.lockd: unknown lock return: 9&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;So this is a protocol or version mismatch in NFS.  A patch of rpc.lockd and NFS may help this out.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Kent M. Ostby</description>
      <pubDate>Mon, 13 Oct 2003 06:54:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091500#M570551</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2003-10-13T06:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: file lock error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091501#M570552</link>
      <description>thx for response&lt;BR /&gt;Unfortunately my problem is still there :-(&lt;BR /&gt;- latest nfs/onc patches are installed&lt;BR /&gt;- latest lockd patches are installed &lt;BR /&gt;- increased nflocks to 400 (good choice?)&lt;BR /&gt;- the prog do not run twice an the same time&lt;BR /&gt;- the file is not lock by any another user/process&lt;BR /&gt;&lt;BR /&gt;any other ideas?&lt;BR /&gt;&lt;BR /&gt;thx&lt;BR /&gt;lars</description>
      <pubDate>Tue, 14 Oct 2003 01:44:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091501#M570552</guid>
      <dc:creator>Lars Blumenthal</dc:creator>
      <dc:date>2003-10-14T01:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: file lock error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091502#M570553</link>
      <description>Hello,&lt;BR /&gt;I have attached a simple locking program you can use to test outside of your application on the HPUX NFS client. &lt;BR /&gt;&lt;BR /&gt;* Compile this program on the nfs client using :&lt;BR /&gt;*&lt;BR /&gt;* cc locktest.c -o locktest&lt;BR /&gt;*&lt;BR /&gt;* Then run the executable passing the name of a file that&lt;BR /&gt;* is located on your nfs server, such as:&lt;BR /&gt;*&lt;BR /&gt;* ./locktest /nfs/server/testfile&lt;BR /&gt;*&lt;BR /&gt;* If file locking is working correctly, the output will look like:&lt;BR /&gt;*&lt;BR /&gt;* Open OK&lt;BR /&gt;* Locking...OK&lt;BR /&gt;*&lt;BR /&gt;* If you do not see the "OK" after the "Locking..." then you have&lt;BR /&gt;* a file locking problem. The typical symptom would be that the program&lt;BR /&gt;* will not complete, but will just hang afetr the "Locking...".&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;./locktest /HAdumps/testlock&lt;BR /&gt;Open OK&lt;BR /&gt;Locking...OK&lt;BR /&gt;&lt;BR /&gt;If this works you have to dig further into your application, if this fails you have a general locking issue. &lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;NOTE: I'd suggest if the locktest program fails you contact HP Support to assist with the debug of your lock issue. &lt;BR /&gt;&lt;BR /&gt;DEBUGGING LOCK PROBLEMS:&lt;BR /&gt;&lt;BR /&gt;On the HP you can "toggle" debug on via the SIGUSR2 signal ( kill -17 ) to the PID of the running rpc.lockd &amp;amp; rpc.statd, toggle it off w/ the same signal. &lt;BR /&gt;&lt;BR /&gt;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 &lt;BR /&gt;&lt;BR /&gt;For the HP side you can do this:&lt;BR /&gt;&lt;BR /&gt;Start nettl tracing at IP layer:&lt;BR /&gt;# /usr/sbin/nettl -tn pduin pduout -e ns_ls_ip -s 1024 -tm 99999 -f out_file&lt;BR /&gt;&lt;BR /&gt;Reproduce the lock failure, use the &lt;BR /&gt;lockprogram for example.&lt;BR /&gt;&lt;BR /&gt;#./locktest /nfs/server/testfile&lt;BR /&gt;&lt;BR /&gt;Stop your trace&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/nettl -tf -e all&lt;BR /&gt;&lt;BR /&gt;This is going to create a out_file.TRCXXX file which you can view with the netfmt command. &lt;BR /&gt;&lt;BR /&gt;Create a filter file:&lt;BR /&gt;&lt;BR /&gt;# cat filter_file&lt;BR /&gt;filter rpcdirection call&lt;BR /&gt;filter rpcdirection reply&lt;BR /&gt;&lt;BR /&gt;Then format it out&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/netfmt -Nnlf out_file.TRCXXX -c filter &amp;gt; trace.out&lt;BR /&gt;&lt;BR /&gt;You can view the trace.out and look for lock issues.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;Todd</description>
      <pubDate>Tue, 14 Oct 2003 07:05:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091502#M570553</guid>
      <dc:creator>Todd Whitcher</dc:creator>
      <dc:date>2003-10-14T07:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: file lock error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091503#M570554</link>
      <description>The result:&lt;BR /&gt;A patch from Microsoft was needed an it just works well with Win2000.&lt;BR /&gt;At the end it is an error in the NLM (Network Lock Mananger) between HPUX and Windows&lt;BR /&gt;&lt;BR /&gt;thx for your help&lt;BR /&gt;&lt;BR /&gt;Lars</description>
      <pubDate>Wed, 22 Oct 2003 01:08:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091503#M570554</guid>
      <dc:creator>Lars Blumenthal</dc:creator>
      <dc:date>2003-10-22T01:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: file lock error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091504#M570555</link>
      <description>I have the same problem.&lt;BR /&gt;My PC is Windows 2000 Professional(Service Pack 4).&lt;BR /&gt;Please Tell me the number of the patch that works well windows 2000.&lt;BR /&gt;&lt;BR /&gt;Best Reagrds.&lt;BR /&gt;Kohei Mochizuki</description>
      <pubDate>Thu, 08 Jan 2004 05:22:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091504#M570555</guid>
      <dc:creator>Kohei Mochizuki</dc:creator>
      <dc:date>2004-01-08T05:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: file lock error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091505#M570556</link>
      <description>Hello there,&lt;BR /&gt;&lt;BR /&gt;I've stumbled on the same problem,&lt;BR /&gt;Lars could you tell me, how to get the patch for Network Lock Mananger ?&lt;BR /&gt;&lt;BR /&gt;I've tried the SFU v3.5, the problem stay's.........&lt;BR /&gt;&lt;BR /&gt;thx, &lt;BR /&gt;&lt;BR /&gt;Geert Jan Laanstra</description>
      <pubDate>Thu, 12 Feb 2004 16:07:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091505#M570556</guid>
      <dc:creator>G.J.Laanstra</dc:creator>
      <dc:date>2004-02-12T16:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: file lock error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091506#M570557</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I've solved this problem.&lt;BR /&gt;I received Microsoft Professional Support.&lt;BR /&gt;This service is fare-paying services.&lt;BR /&gt;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.&lt;BR /&gt;Please contact Microsoft about the detail.</description>
      <pubDate>Thu, 12 Feb 2004 18:45:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091506#M570557</guid>
      <dc:creator>Kohei Mochizuki</dc:creator>
      <dc:date>2004-02-12T18:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: file lock error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091507#M570558</link>
      <description>Hello Geert,&lt;BR /&gt;&lt;BR /&gt;Kohei is right!&lt;BR /&gt;You must have a service contract with Microsoft.&lt;BR /&gt;Unfortunately I have just the patch for SfU3.0.&lt;BR /&gt;&lt;BR /&gt;Good Luck :-)&lt;BR /&gt;&lt;BR /&gt;Lars</description>
      <pubDate>Fri, 13 Feb 2004 03:25:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091507#M570558</guid>
      <dc:creator>Lars Blumenthal</dc:creator>
      <dc:date>2004-02-13T03:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: file lock error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091508#M570559</link>
      <description>Dear Lars,&lt;BR /&gt;&lt;BR /&gt;Could you send me the patch for V3.0 as well ? That would help me.....&lt;BR /&gt;I've asked one of our IT people to get the one for V3.5.&lt;BR /&gt;&lt;BR /&gt;I've also tested a competative product :&lt;BR /&gt;Hummingbird NFS Server&lt;BR /&gt;&lt;BR /&gt;It looks like this one works okay (for now)&lt;BR /&gt;&lt;BR /&gt;thx,   ;-)&lt;BR /&gt;&lt;BR /&gt;Geert Jan Laanstra</description>
      <pubDate>Fri, 13 Feb 2004 18:43:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091508#M570559</guid>
      <dc:creator>G.J.Laanstra</dc:creator>
      <dc:date>2004-02-13T18:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: file lock error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091509#M570560</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;It looks like that the patch is already included in version V3.5.&lt;BR /&gt;After installing the only thing i had to do was to deactivate the EnableSMBLocking entry, see KB328858.&lt;BR /&gt;For SFU V3.0 you'll need the additional hotfix 329072.&lt;BR /&gt;&lt;BR /&gt;SFU V3.5 works fine now........&lt;BR /&gt;&lt;BR /&gt;thx&lt;BR /&gt;&lt;BR /&gt;Geert Jan Laanstra</description>
      <pubDate>Mon, 16 Feb 2004 06:32:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-lock-error/m-p/3091509#M570560</guid>
      <dc:creator>G.J.Laanstra</dc:creator>
      <dc:date>2004-02-16T06:32:22Z</dc:date>
    </item>
  </channel>
</rss>

