Ehrke, Christian
2002-Apr-18 03:57 UTC
[Samba] Locking Errors with Samba 2.2.3a on HP-UX 11.00
Hello, while running Samba 2.2.3a on HP-UX 11.00 the following error occured: [2002/04/18 10:36:43, 0] tdb/tdbutil.c:tdb_log(475) tdb(/opt/samba/var/locks/connections.tdb): tdb_lock failed on list -1 ltype=2 (No locks available) [2002/04/18 10:36:43, 0] smbd/connection.c:claim_connection(187) claim_connection: tdb_store failed with error Locking error. For more detail see attached file SambaError.txt The version of Samba 2.2.3a cmes as a binary distribution from the HP-UX Porting Center. Mit freundlichem Gru? / Kind regards Christian Ehrke, Abt./Dept. ZOS Organisation/Informationsystems ALLWEILER AG A Member of the COLFAX PUMP GROUP Postfach 1140 . 78301 Radolfzell Allweilerstra?e 1 . 78315 Radolfzell Germany Tel. +49 (0)7732 86-509 Fax +49 ((0)7732 86-552, 86-99509 E-mail: C.Ehrke@allweiler.de http://www.allweiler.com <<SambaError.txt>> -------------- next part -------------- log.nmbd: --------- [2002/04/18 08:49:03, 0] nmbd/nmbd.c:main(783) Netbios nameserver version 2.2.3a started. Copyright Andrew Tridgell and the Samba Team 1994-2002 [2002/04/18 08:49:03, 1] lib/debug.c:debug_message(248) INFO: Debug class all level = 1 (pid 4403 from pid 4403) [2002/04/18 10:36:44, 0] tdb/tdbutil.c:tdb_log(475) tdb(/opt/samba/var/locks/unexpected.tdb): tdb_lock failed on list -1 ltype=2 (No locks available) [2002/04/18 10:36:44, 0] tdb/tdbutil.c:tdb_log(475) tdb(/opt/samba/var/locks/unexpected.tdb): tdb_lock failed on list -1 ltype=2 (No locks available) log.smbd: -------- [2002/04/18 08:49:03, 0] smbd/server.c:main(698) smbd version 2.2.3a started. Copyright Andrew Tridgell and the Samba Team 1992-2002 [2002/04/18 08:49:03, 1] lib/debug.c:debug_message(248) INFO: Debug class all level = 1 (pid 4401 from pid 4401) [2002/04/18 08:49:03, 0] param/loadparm.c:map_parameter(1996) Unknown parameter encountered: "force security mask" [2002/04/18 08:49:03, 0] param/loadparm.c:lp_do_parameter(2665) Ignoring unknown parameter "force security mask" [2002/04/18 08:49:03, 0] param/loadparm.c:map_parameter(1996) Unknown parameter encountered: "force directory mask" [2002/04/18 08:49:03, 0] param/loadparm.c:lp_do_parameter(2665) Ignoring unknown parameter "force directory mask" [2002/04/18 10:38:26, 0] locking/locking.c:locking_init(293) ERROR: Failed to initialise locking database [2002/04/18 10:38:26, 0] locking/locking.c:locking_init(293) ERROR: Failed to initialise locking database [2002/04/18 11:10:08, 0] locking/locking.c:locking_init(293) ERROR: Failed to initialise locking database log.username: ------------ [2002/04/16 08:12:44, 1] smbd/service.c:close_cnum(653) kellerk (10.1.2.208) closed connection to service disk3 [2002/04/18 10:36:43, 0] tdb/tdbutil.c:tdb_log(475) tdb(/opt/samba/var/locks/connections.tdb): tdb_lock failed on list -1 ltype=2 (No locks available) [2002/04/18 10:36:43, 0] smbd/connection.c:claim_connection(187) claim_connection: tdb_store failed with error Locking error. ~
MCCALL,DON (HP-USA,ex1)
2002-Apr-18 10:17 UTC
[Samba] Locking Errors with Samba 2.2.3a on HP-UX 11.00
Hi Christian, I suspect that this is simply a result of 2.2.3a needing/using more fcntl locks than it's predicessors, and that the nflocks kernel parameter in HP-UX is by default rather small (200). I would suggest that you use SAM to modify the kernel parameter 'nflocks', possibly up to about 1000 or so; this will require a regen and reboot, that SAM will do for you. Also, take a look at the online HP-UX documentation for this samba version at: http://www.docs.hp.com/hpux/onlinedocs/B8725-90021/B8725-90021.html There is a section called HP-UX Configuration for CIFS/9000 (samba) that discusses how to determine appropriate values for nflocks, as well as other kernel tuneable parameters that you will need to alter depending on # of users, etc. Hope this helps, Don -----Original Message----- From: Ehrke, Christian [mailto:C.Ehrke@allweiler.de] Sent: Thursday, April 18, 2002 6:56 AM To: 'samba@lists.samba.org' Subject: [Samba] Locking Errors with Samba 2.2.3a on HP-UX 11.00 Hello, while running Samba 2.2.3a on HP-UX 11.00 the following error occured: [2002/04/18 10:36:43, 0] tdb/tdbutil.c:tdb_log(475) tdb(/opt/samba/var/locks/connections.tdb): tdb_lock failed on list -1 ltype=2 (No locks available) [2002/04/18 10:36:43, 0] smbd/connection.c:claim_connection(187) claim_connection: tdb_store failed with error Locking error. For more detail see attached file SambaError.txt The version of Samba 2.2.3a cmes as a binary distribution from the HP-UX Porting Center. Mit freundlichem Gru? / Kind regards Christian Ehrke, Abt./Dept. ZOS Organisation/Informationsystems ALLWEILER AG A Member of the COLFAX PUMP GROUP Postfach 1140 . 78301 Radolfzell Allweilerstra?e 1 . 78315 Radolfzell Germany Tel. +49 (0)7732 86-509 Fax +49 ((0)7732 86-552, 86-99509 E-mail: C.Ehrke@allweiler.de http://www.allweiler.com <<SambaError.txt>>
Hiya! You can also use kmtune(1m) to change the parameter. We set kmtune to 2048 on an N-4000 running Samba, Oracle8i and Seagate's HOLOS. To query the current value of nflocks do this: kmtune -q nflocks svr1.root /root$ kmtune -q nflocks Parameter Value =============================================================================nflocks 2048 svr1.root /root$ Then to change the parameter do the following: cd /stand/build /usr/lbin/sysadm/system_prep -s system kmtune -s nflocks = 2048 -S /stand/build/system config -u system mv /stand/system /stand/system.prev mv /stand/build/system /stand/system cd / shutdown -r -y 0 This will set kmtune to 2048, rebuild your kernel, and shutdown will reboot it. Of course, you might want to let your customers know you are going to reboot before you do it, just a thought. :) HTH/HAND, Mike Kerns> ---------- > From: MCCALL,DON (HP-USA,ex1)[SMTP:don_mccall@hp.com] > Sent: Thursday, April 18, 2002 10:15 AM > To: 'Ehrke, Christian'; 'samba@lists.samba.org' > Subject: RE: [Samba] Locking Errors with Samba 2.2.3a on HP-UX 11.00 > > Hi Christian, > I suspect that this is simply a result of 2.2.3a needing/using more > fcntl locks than it's predicessors, and that the nflocks kernel parameter > in HP-UX is by default rather small (200). > I would suggest that you use SAM to modify the kernel parameter 'nflocks', > possibly up to about 1000 or so; this will require a regen and reboot, > that > SAM will do for you. > > Also, take a look at the online HP-UX documentation for this samba version > > at: > > http://www.docs.hp.com/hpux/onlinedocs/B8725-90021/B8725-90021.html > > There is a section called HP-UX Configuration for CIFS/9000 (samba) that > discusses > how to determine appropriate values for nflocks, as well as other kernel > tuneable parameters that you will need to alter depending on # of users, > etc. > > Hope this helps, > Don > > > -----Original Message----- > From: Ehrke, Christian [mailto:C.Ehrke@allweiler.de] > Sent: Thursday, April 18, 2002 6:56 AM > To: 'samba@lists.samba.org' > Subject: [Samba] Locking Errors with Samba 2.2.3a on HP-UX 11.00 > > > Hello, > > while running Samba 2.2.3a on HP-UX 11.00 the following error occured: > > [2002/04/18 10:36:43, 0] tdb/tdbutil.c:tdb_log(475) > tdb(/opt/samba/var/locks/connections.tdb): tdb_lock failed on list -1 > ltype=2 (No locks available) > [2002/04/18 10:36:43, 0] smbd/connection.c:claim_connection(187) > claim_connection: tdb_store failed with error Locking error. > > For more detail see attached file SambaError.txt > > The version of Samba 2.2.3a cmes as a binary distribution from the HP-UX > Porting Center. > > Mit freundlichem Gru? / Kind regards > Christian Ehrke, Abt./Dept. ZOS > Organisation/Informationsystems > > ALLWEILER AG > A Member of the > COLFAX PUMP GROUP > Postfach 1140 . 78301 Radolfzell > Allweilerstra?e 1 . 78315 Radolfzell > Germany > Tel. +49 (0)7732 86-509 > Fax +49 ((0)7732 86-552, 86-99509 > E-mail: C.Ehrke@allweiler.de > http://www.allweiler.com > > <<SambaError.txt>> > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >