<?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: Samba locking database errors in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-locking-database-errors/m-p/3140141#M572162</link>
    <description>You will have to tune this.&lt;BR /&gt;&lt;BR /&gt;Increase it to 15000. I think this dynamic parameter, so you wont require a reboot.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 09 Dec 2003 12:26:30 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2003-12-09T12:26:30Z</dc:date>
    <item>
      <title>Samba locking database errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-locking-database-errors/m-p/3140138#M572159</link>
      <description>We are in the process of commissioning a new HP server (on HP-UX 11i) and have installed Samba which we have configured and used extensively before without major problems (though not this version - 2.2.8.a). Samba ran OK initially, but now we are getting failures with messages of 'smbd[pid] Cannot initialize locking database' and 'no locks available' logged to the syslog and no new connections can be established (can not even browse - get message 'Network name could not be found'). This can only be cleared by restarting the daemons.&lt;BR /&gt;&lt;BR /&gt;I have checked our smb.conf file with the testparm utility and this looks ok, and checked the parameters (including the defaults) against the smb.conf man page at samba.org in an attempt to identify any bad config. I have also verified the obvious - that the lock directory exists and the permissions are correct (if they didn't I guess it would fall over straight away).&lt;BR /&gt;&lt;BR /&gt;I have attached a dump of our global definitions for inspection.&lt;BR /&gt;&lt;BR /&gt;Has anybody any ideas what may be causing this ? I have checked the Samba web pages without success. &lt;BR /&gt;&lt;BR /&gt;Is there a bad locking option here - or some other samba / kernel threshold we are hitting ?&lt;BR /&gt;If I can't resolve this the filestore is going to NT !&lt;BR /&gt;&lt;BR /&gt;Any help very gratefully recieved.</description>
      <pubDate>Tue, 09 Dec 2003 12:12:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-locking-database-errors/m-p/3140138#M572159</guid>
      <dc:creator>Ian Foster_2</dc:creator>
      <dc:date>2003-12-09T12:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Samba locking database errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-locking-database-errors/m-p/3140139#M572160</link>
      <description>Post the following.&lt;BR /&gt;&lt;BR /&gt;kmtune -lq nflocks&lt;BR /&gt;&lt;BR /&gt;This no. of file locks kernel parameter.&lt;BR /&gt;&lt;BR /&gt;If it is too low, you will have to increase it.</description>
      <pubDate>Tue, 09 Dec 2003 12:14:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-locking-database-errors/m-p/3140139#M572160</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-12-09T12:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Samba locking database errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-locking-database-errors/m-p/3140140#M572161</link>
      <description># kmtune -lq nflocks&lt;BR /&gt;Parameter:      nflocks             &lt;BR /&gt;Current:        200&lt;BR /&gt;Planned:     200                                                         &lt;BR /&gt;Default:        200                                                         &lt;BR /&gt;Hmmm - not too high.  I guess if there are other file locks on the system in addition to those instigated by Samba this will come to a grinding halt pretty quickly ? ?&lt;BR /&gt;&lt;BR /&gt;Is there a way to check the current number of system wide file locks ?&lt;BR /&gt;&lt;BR /&gt;I must admit I trusted that the kernel had been tuned to at least match the system we are decommissioning.</description>
      <pubDate>Tue, 09 Dec 2003 12:21:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-locking-database-errors/m-p/3140140#M572161</guid>
      <dc:creator>Ian Foster_2</dc:creator>
      <dc:date>2003-12-09T12:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Samba locking database errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-locking-database-errors/m-p/3140141#M572162</link>
      <description>You will have to tune this.&lt;BR /&gt;&lt;BR /&gt;Increase it to 15000. I think this dynamic parameter, so you wont require a reboot.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Dec 2003 12:26:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-locking-database-errors/m-p/3140141#M572162</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-12-09T12:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Samba locking database errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-locking-database-errors/m-p/3140142#M572163</link>
      <description>I've had issue with keepalive before - try setting to 0 instead of default 300.&lt;BR /&gt;&lt;BR /&gt;keepalive (G)&lt;BR /&gt;The value of the parameter (an integer) represents the number of seconds between keepalive packets. If this parameter is zero, no keepalive packets will be sent. Keepalive packets, if sent, allow the server to tell whether a client is still present and responding.&lt;BR /&gt;&lt;BR /&gt;Keepalives should, in general, not be needed if the socket being used has the SO_KEEPALIVE attribute set on it (see socket options). Basically you should only use this option if you strike difficulties.&lt;BR /&gt;&lt;BR /&gt;As others have said, I would increase nflocks....mine is at 1200 - but I also run Oracle....&lt;BR /&gt;&lt;BR /&gt;Also, did you compile Samba yourself or did you use the HP Depot?&lt;BR /&gt;&lt;BR /&gt;I'm using 2.28a without any issues at all.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Dec 2003 13:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-locking-database-errors/m-p/3140142#M572163</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2003-12-09T13:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Samba locking database errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/samba-locking-database-errors/m-p/3140143#M572164</link>
      <description>Thanks for the responses guys.&lt;BR /&gt;&lt;BR /&gt;I am 95% confident the problem is down to nflocks. We are running an Oracle DB on this system too, believe it or not !&lt;BR /&gt;&lt;BR /&gt;I'm just waiting for an outage to change the parameter.&lt;BR /&gt;&lt;BR /&gt;It is not dynamically configurable according to the output from kmtune.&lt;BR /&gt;&lt;BR /&gt;Thanks again.</description>
      <pubDate>Wed, 10 Dec 2003 11:06:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/samba-locking-database-errors/m-p/3140143#M572164</guid>
      <dc:creator>Ian Foster_2</dc:creator>
      <dc:date>2003-12-10T11:06:24Z</dc:date>
    </item>
  </channel>
</rss>

