<?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: problem with lockd in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154034#M541111</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;I did enable the logging. So fare the Mac client could mount the hp-ux nfs shared folders. As soon as the problem occurs , I will post the logged data.&lt;BR /&gt;I keep the logging enabled.&lt;BR /&gt;&lt;BR /&gt;cheers,&lt;BR /&gt;</description>
    <pubDate>Tue, 04 Mar 2008 09:37:22 GMT</pubDate>
    <dc:creator>Guettache</dc:creator>
    <dc:date>2008-03-04T09:37:22Z</dc:date>
    <item>
      <title>problem with lockd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154032#M541109</link>
      <description>Hi,&lt;BR /&gt;A Mac client (OS 10.5 or leopard) of our HP server has ramdom problems mounting the Hp-ux shared folders using NFS. By ramdom, I mean the client can sometimes mount them and sometimes not and gets in this case the following message on the Mac system log:&lt;BR /&gt;nfs server xxxx: /share : lockd is not reponding.&lt;BR /&gt;The hp server is running hp-ux 11.0 &lt;BR /&gt;Any idea?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Narimane</description>
      <pubDate>Mon, 03 Mar 2008 10:40:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154032#M541109</guid>
      <dc:creator>Guettache</dc:creator>
      <dc:date>2008-03-03T10:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: problem with lockd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154033#M541110</link>
      <description>Debug logging can be toggled on and off by sending the SIGUSR2 signal to the running lockd or statd process(kill -17 pid).By default , the dubug information is logged to the /var/adm/rpc/lockd.log and /var/adm/rpc.statd.log files respectively.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My first recommendation would be as follows:&lt;BR /&gt;&lt;BR /&gt;1) Get a listing of the nodes in /var/statmon/sm:&lt;BR /&gt;&lt;BR /&gt;# ll /var/statmon/sm&lt;BR /&gt;&lt;BR /&gt;2) Get a listing of nodes in /var/statmon/sm.bak:&lt;BR /&gt;&lt;BR /&gt;# ll /var/statmon/sm.bak&lt;BR /&gt;&lt;BR /&gt;3) Collect a debug logfile from rpc.statd and rpc.lockd&lt;BR /&gt;&lt;BR /&gt;# ps -ef | grep rpc&lt;BR /&gt;# kill -17 &lt;RPC.STATD pid=""&gt;&lt;BR /&gt;# kill -17 &lt;RPC.LOCKD pid=""&gt;&lt;BR /&gt;&lt;BR /&gt;wait 30 seconds&lt;BR /&gt;&lt;BR /&gt;# kill -17 &lt;RPC.STATD pid=""&gt;&lt;BR /&gt;# kill -17 &lt;RPC.LOCKD pid=""&gt;&lt;BR /&gt;&lt;BR /&gt;I'd want to examine the debug logfile from rpc.statd to see what it's doing before killing and restarting it, or just killing/restarting it might not be enough to clear the race condition.&lt;BR /&gt;&lt;BR /&gt;Let me know if you need any help interpreting the data.&lt;BR /&gt;======&lt;BR /&gt;If the servers in /var/statmon/sm.bak are permanently removed then here is what you should do:&lt;BR /&gt;&lt;BR /&gt;1) Kill rpc.statd and rpc.lockd&lt;BR /&gt;&lt;BR /&gt;# kill $(ps -e | egrep 'rpc.statd|rpc.lockd' | awk '{print $1}')&lt;BR /&gt;&lt;BR /&gt;2) Remove any entries from /var/statmon/sm.bak for systems that are permanently gone from your environment&lt;BR /&gt;&lt;BR /&gt;3) Restart rpc.statd and rpc.lockd&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/rpc.statd&lt;BR /&gt;# /usr/sbin/rpc.lockd&lt;BR /&gt;==========&lt;/RPC.LOCKD&gt;&lt;/RPC.STATD&gt;&lt;/RPC.LOCKD&gt;&lt;/RPC.STATD&gt;</description>
      <pubDate>Mon, 03 Mar 2008 11:53:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154033#M541110</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2008-03-03T11:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: problem with lockd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154034#M541111</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;I did enable the logging. So fare the Mac client could mount the hp-ux nfs shared folders. As soon as the problem occurs , I will post the logged data.&lt;BR /&gt;I keep the logging enabled.&lt;BR /&gt;&lt;BR /&gt;cheers,&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Mar 2008 09:37:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154034#M541111</guid>
      <dc:creator>Guettache</dc:creator>
      <dc:date>2008-03-04T09:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: problem with lockd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154035#M541112</link>
      <description>Mac NFS locking is not compatible&lt;BR /&gt;with an HP NFS server. Under Tiger&lt;BR /&gt;it appeared to work, but didn't: for Leopard&lt;BR /&gt;they came up with the NFS mount option 'locallocks' - which does locking in the Mac kernel. This "fudge" will fix problems caused by locks hanging, but the&lt;BR /&gt;HP server won't know about such locks. So.&lt;BR /&gt;your MAC client applications cannot rely on NFS locking..</description>
      <pubDate>Wed, 05 Mar 2008 11:59:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154035#M541112</guid>
      <dc:creator>David Nixon</dc:creator>
      <dc:date>2008-03-05T11:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: problem with lockd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154036#M541113</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Mac NFS locking is not compatible with an HP NFS server. &lt;BR /&gt;&lt;BR /&gt;I hadn't heard of this one.  Do you have any details on why locking is incompatible with HP-UX?  Do you, or anyone else, have a reproduction environment where we can collect some data to understand why locking fails between these systems?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Wed, 05 Mar 2008 16:44:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154036#M541113</guid>
      <dc:creator>Dave Olker</dc:creator>
      <dc:date>2008-03-05T16:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem with lockd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154037#M541114</link>
      <description>Hi Dave,&lt;BR /&gt;         To summarise my research of the matter:&lt;BR /&gt;Before Panther OSX there was no NFS locking.&lt;BR /&gt;The OSX NFS implementaion is based on that of FreeBSD 5.1&lt;BR /&gt;File locking is incompatible with "non-BSD"&lt;BR /&gt;NFS servers. So the problems may also exist with Linux servers.&lt;BR /&gt;During tests with HP-UX 11.11 and an OSX Tiger client I found that locks seemingly could be obtained on files - but that didn't prevent another process obtaining a lock. &lt;BR /&gt;Also their new 'launchd' mechanism for starting the portmapper was unreliable. &lt;BR /&gt;&lt;BR /&gt; The 'locallocks' work-around is new with Leopard.. I could certainly look&lt;BR /&gt;at what ensues without this mount option.&lt;BR /&gt;&lt;BR /&gt;Dave.</description>
      <pubDate>Wed, 05 Mar 2008 20:14:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154037#M541114</guid>
      <dc:creator>David Nixon</dc:creator>
      <dc:date>2008-03-05T20:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: problem with lockd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154038#M541115</link>
      <description>Hi Dave,&lt;BR /&gt;&lt;BR /&gt;Please forgive my ignorance, but what is the significance of "non-BSD" servers when it comes to locking?  Is it that Mac clients need to use a specific type of lock, like synchronous locks vs. asynchronous locks?  Are they expecting to find the lock daemon running on a specific port?  Something else?  I've never played with a Mac before so I apologize if I'm asking dumb questions.&lt;BR /&gt;&lt;BR /&gt;Whatever the case, I'd be interested if there was a way to duplicate the problem so I could collect some network traces and rpc.lockd traces on the HP-UX side to see how it deals with whatever lock requests the Mac is issuing.  I'd also be interested to see if an 11i v3 server behaves differently because we completely replaced the Network Lock Manager implementation on 11i v3 with a much newer one that might interoperate better with the Mac.  &lt;BR /&gt;&lt;BR /&gt;In addition, we're getting ready to release some new rpc.lockd functionality on our 11i v2 systems to help us interoperate better with Linux and Windows systems, so I wonder if those changes would also help us interoperate with the Mac.&lt;BR /&gt;&lt;BR /&gt;If you have a reproduction environment where you can duplicate these lock failures I'd be interested in looking at some data.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Wed, 05 Mar 2008 20:20:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154038#M541115</guid>
      <dc:creator>Dave Olker</dc:creator>
      <dc:date>2008-03-05T20:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem with lockd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154039#M541116</link>
      <description>I know that Mac OSX uses Posix advisory locks - but never found evidence of locking working with anything other than an OSX/BSD server.. &lt;BR /&gt;  &lt;BR /&gt; Will shortly be configuring a Leopard client to use Autofs (a new feature with Leopard).&lt;BR /&gt;So could collect data from its lock requests to an 11i v1 server.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Mar 2008 12:46:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154039#M541116</guid>
      <dc:creator>David Nixon</dc:creator>
      <dc:date>2008-03-06T12:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem with lockd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154040#M541117</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for the useful replies.&lt;BR /&gt;&lt;BR /&gt;I attach the logfile of the hp-ux rpc.lockd daemon. I hope you can find useful info.&lt;BR /&gt;&lt;BR /&gt;So far, when the Mac user fails to nfs mount the hp-ux shares, restarting the statd and lockd daemons seems to be a work around.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Mar 2008 13:11:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154040#M541117</guid>
      <dc:creator>Guettache</dc:creator>
      <dc:date>2008-03-06T13:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: problem with lockd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154041#M541118</link>
      <description>Hi Guettache,&lt;BR /&gt;               For a better work-around&lt;BR /&gt;add 'locallocks' to the line of&lt;BR /&gt;mount options in /etc/autofs.conf</description>
      <pubDate>Thu, 06 Mar 2008 14:46:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154041#M541118</guid>
      <dc:creator>David Nixon</dc:creator>
      <dc:date>2008-03-06T14:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem with lockd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154042#M541119</link>
      <description>Hi Narimane,&lt;BR /&gt;&lt;BR /&gt;I looked at the log file and it's not enough information to show me the problem.  The logfile contains lots of successful lock requests followed by lots of successful unlock reqeusts.  Things appear mostly normal in the logfile.  &lt;BR /&gt;&lt;BR /&gt;At some points in the logfile I see the client sending in the same UNLOCK request over and over and over again.  The logfile merely shows the server had already granted the UNLOCK and removed the lock from it's queues, so every time it gets another UNLOCK request it simply sends back the same successful status to the client.&lt;BR /&gt;&lt;BR /&gt;As for why the client doesn't accept these replies and continues to send the same UNLOCK requests over and over again - the logfile doesn't show that.  I'd need to see a network trace taken on either the Mac client or the HP-UX server during the application failure to see why the client doesn't like the server's replies.&lt;BR /&gt;&lt;BR /&gt;If you have the ability to collect a network trace during the failure, it would be helpful to have both a network trace *AND* a debug rpc.lockd logfile of the same duplication event.  That way I can sync up what I see in the logfile with what I see in the network trace.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Thu, 06 Mar 2008 19:52:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154042#M541119</guid>
      <dc:creator>Dave Olker</dc:creator>
      <dc:date>2008-03-06T19:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: problem with lockd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154043#M541120</link>
      <description>Hi Dave,&lt;BR /&gt;&lt;BR /&gt;What I can post now is only  statd and lockd logs.&lt;BR /&gt;May be this can help.&lt;BR /&gt;&lt;BR /&gt;I post first the statd log.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Narimane</description>
      <pubDate>Thu, 20 Mar 2008 11:25:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154043#M541120</guid>
      <dc:creator>Guettache</dc:creator>
      <dc:date>2008-03-20T11:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: problem with lockd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154044#M541121</link>
      <description>Hee is the lockd log&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Narimane</description>
      <pubDate>Thu, 20 Mar 2008 11:25:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154044#M541121</guid>
      <dc:creator>Guettache</dc:creator>
      <dc:date>2008-03-20T11:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: problem with lockd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154045#M541122</link>
      <description>Hello Narimane,&lt;BR /&gt;&lt;BR /&gt;I looked at the log files and this looks like a hostname resolution problem.  From the rpc.statd log file:&lt;BR /&gt;&lt;BR /&gt;03.18 11:13:38  hp_server   pid=17366  /usr/sbin/rpc.statd&lt;BR /&gt;     proc sm_prog_1: Program=100024, Procedure=2, Version=1&lt;BR /&gt;03.18 11:13:38  hp_server   pid=17366  /usr/sbin/rpc.statd&lt;BR /&gt;     proc insert_mon: called for host Geoff-Macbook-Pro.local&lt;BR /&gt;03.18 11:13:38  hp_server   pid=17366  /usr/sbin/rpc.statd&lt;BR /&gt;     proc insert_mon: gethostbyname() of Geoff-Macbook-Pro.local failed &lt;BR /&gt;03.18 11:13:38  hp_server   pid=17366  /usr/sbin/rpc.statd&lt;BR /&gt;     proc sm_mon_1: mon_name=Geoff-Macbook-Pro.local, res_state=1, state=-1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The rpc.statd is trying to resolve the hostname "Geoff-Macbook-Pro.local" and cannot successfully do so.  It logs the error "gethostbyname() failed" and the request returns an error.  Looking at the rpc.lockd log file:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;03.18 11:15:18  hp_server   pid=17372  /usr/sbin/rpc.lockd&lt;BR /&gt;     call_udp[hp_server, 100024, 1, 2] returns 0&lt;BR /&gt;03.18 11:15:18  hp_server   pid=17372  /usr/sbin/rpc.lockd&lt;BR /&gt;     /usr/sbin/rpc.lockd: !site: Geoff-Macbook-Pro.local not subscribe to status monitor service &lt;BR /&gt;03.18 11:15:18  hp_server   pid=17372  /usr/sbin/rpc.lockd&lt;BR /&gt;     /usr/sbin/rpc.lockd: req discard due status monitor problem !&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rpc.lockd is reporting that since it cannot register this host with rpc.statd it discards the lock request.&lt;BR /&gt;&lt;BR /&gt;Can you please make sure the NFS server is able to successfully resolve the hostname "Geoff-Macbook-Pro.local" to the correct IP address and let me know if this resolves the problem.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Thu, 20 Mar 2008 16:29:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-lockd/m-p/4154045#M541122</guid>
      <dc:creator>Dave Olker</dc:creator>
      <dc:date>2008-03-20T16:29:32Z</dc:date>
    </item>
  </channel>
</rss>

