Bernard Sagnol
2004-Aug-24 11:06 UTC
[Samba] CIFS Server 2.2j Pb with locking : No locks available
I 've installed Samba on my Hp-Ux station and can access the files with my Windows clients (a hundred client)...but one hour or more later i face a problem : Actual user : oK. New access : Ko. ------------------------------------------------------------------------------- Error message in the client logfile 2004/08/23 14:15:39, 0] tdb/tdbutil.c:(531) tdb(/var/opt/samba/locks/connections.tdb): tdb_lock failed on list 91 ltype=2 (No locks available) ------------------------------------------------------------------------------- Environnment HP Product : HP CIFS Server 2.2j downloaded from Hp web site. B8725AA A.01.11.02 HP CIFS Server on HP-UX 11.00 -- ----------------------------------------------------------------------------- Smb conf : [global] security = share [public] browseable = yes path = /public public = yes only guest = yes writable = yes printable = no create mask = 777 -------------------------------------------------------------------------------
eric roseme
2004-Aug-24 13:37 UTC
[Samba] CIFS Server 2.2j Pb with locking : No locks available
You probably did not tune nflocks for Samba. The default kernel variable will be exhausted quickly with Samba due to the extensive tdb locking. As long as you are doing nflocks, you might as well do the other stuff too: nflocks (10*maximum smbd)+(other apps + system) example 1000 connected clients and baseline NFS system (10*1000)+(2048) = 12048 nfile ((23+opens_per_smbd)*maximum smbd)+(other apps+system)) example 1000 connected clients and baseline NFS system ((23+7)*1000)+(8192)=38192 nproc (maximum smbd)+(other apps+system) example 1000 connected clients and baseline NFS system (1000)+(1024)=2024 Eric Roseme Hewlett-Packard Bernard Sagnol wrote:> I 've installed Samba on my Hp-Ux station and can access the files with > my Windows clients (a hundred client)...but one hour or more later i > face a problem : > Actual user : oK. > New access : Ko. > ------------------------------------------------------------------------------- > > Error message in the client logfile > > 2004/08/23 14:15:39, 0] tdb/tdbutil.c:(531) > tdb(/var/opt/samba/locks/connections.tdb): tdb_lock failed on list 91 > ltype=2 > (No locks available) > ------------------------------------------------------------------------------- > > Environnment > HP Product : HP CIFS Server 2.2j downloaded from Hp web site. > > B8725AA A.01.11.02 HP CIFS Server > on HP-UX 11.00 > -- > ----------------------------------------------------------------------------- > > Smb conf : > [global] > security = share > [public] > browseable = yes > path = /public > public = yes > only guest = yes > writable = yes > printable = no > create mask = 777 > ------------------------------------------------------------------------------- >
Jeremy Allison
2004-Aug-24 15:09 UTC
[Samba] CIFS Server 2.2j Pb with locking : No locks available
On Tue, Aug 24, 2004 at 01:14:05PM +0200, Bernard Sagnol wrote:> I 've installed Samba on my Hp-Ux station and can access the files with > my Windows clients (a hundred client)...but one hour or more later i > face a problem : > Actual user : oK. > New access : Ko. > ------------------------------------------------------------------------------- > > Error message in the client logfile > > 2004/08/23 14:15:39, 0] tdb/tdbutil.c:(531) > tdb(/var/opt/samba/locks/connections.tdb): tdb_lock failed on list 91 > ltype=2 > (No locks available) > ------------------------------------------------------------------------------- > > Environnment > HP Product : HP CIFS Server 2.2j downloaded from Hp web site. > > B8725AA A.01.11.02 HP CIFS Server > on HP-UX 11.00You need to increase the number of locks available in the kernel. It's an HPUX kernal tuning parameter (when, oh when will they fix this :-). Jeremy.