Operating System - HP-UX
1830898 Members
3080 Online
110017 Solutions
New Discussion

Samba -facing problem file lock on samba

 
Mohamad Khir
New Member

Samba -facing problem file lock on samba

Clearcase is the major application in our environment. Recently we have upgraded my samba version from 2.0.7 to version 2.1.12. After upgraded samba, we are facing problem with file locks on samba. Most of the time hitting 100% and result users can’t use the application.



Server OS : HP-UX 11.00
Nflocks parameter value: 1024

5 REPLIES 5
Sameer_Nirmal
Honored Contributor

Re: Samba -facing problem file lock on samba

Hi,
I guess in the previous version 2.0.7 , there was explicit requirement of configuration for nflocks parameter.
But in the recent versions , this parameter is required to configure explicitly.

Generally the following equation is followed for this parameter
nflocks = 10 x max_connected_clients

I guess if there are around 100 clients , then the current value 1024 could be easily passed out.

So depending on the number of clients you have , increase this value , rebuild the kernel and restart the sytem.
Mohamad Khir
New Member

Re: Samba -facing problem file lock on samba

Thanks for your help
Darren Prior
Honored Contributor

Re: Samba -facing problem file lock on samba

Hi,

I think there were some significant changes to Samba after 2.0.7 which required greater resources - this is definitely covered in the CIFS manuals at http://docs.hp.com and refers to A.01.08 and above. I would point out that 2.1.12 is an old version, the latest CIFS for 11.00 from HP is based on a 2.2 release of Samba.

regards,

Darren.
Calm down. It's only ones and zeros...
eric roseme
Respected Contributor

Re: Samba -facing problem file lock on samba

As long as you are changing kernel parms, these should be set (for 2.2.12, which what I assume you mean. There never was a 2.1.12):

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
Mohamad Khir
New Member

Re: Samba -facing problem file lock on samba

Thanks for any advice....
Regards
Khir