Re: [Samba] problem with Too many open files

2006-02-13 Thread Jean-Jacques Moulis
On Sun, 12 Feb 2006 14:31:47 +0100 Hans B. Randgaard [EMAIL PROTECTED] 
wrote:

HBR the error message:
HBR Too many open files
HBR each time drives are not mapped.

HBR In the log files I can see that it has happened even when we ran version
HBR 3.0.10.

HBR We run Samba on Solaris and have previously increased both rlim_fd_cur
HBR and
HBR rlim_fd_max to 1024. Do we need to increase these values further ?


Build samba in 64bit mode!
The Too many open files problem will go far away :-)

Don't ask me why or where the limitation lays but that solved our problem.


-- 
Jean-Jacques   Moulis  Tel:  (013) 281684
ISYFax:  (013) 139282
Linköping UniversityE-mail: [EMAIL PROTECTED]
581 83 Linköping
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] problem with Too many open files

2006-02-12 Thread Hans B. Randgaard
Hi Samba community,

 

Last year we upgraded from version 3.0.10 to 3.0.20b and at the same
time

switch from NT-domain controller membership to AD membership. After this

upgrade we began to experience that drives sometimes were not mapped.

We saw this both on our Citrix servers and on our XP PCs.

A couple of weeks back we then moved to 3.0.21b in the hope that this

misbehaviour would disappear, but in fact it didn't. I noticed that we
see

the error message:

Too many open files

each time drives are not mapped.

 

In the log files I can see that it has happened even when we ran version
3.0.10.

 

We run Samba on Solaris and have previously increased both rlim_fd_cur
and

rlim_fd_max to 1024. Do we need to increase these values further ?

If I do plimit smbd process it says:

  resourcecurrent maximum

  time(seconds)unlimited  unlimited

  file(blocks) unlimited  unlimited

  data(kbytes)   unlimited  unlimited

  stack(kbytes) 8192unlimited

  coredump(blocks)   unlimited  unlimited

  nofiles(descriptors) 10020   10020

  vmemory(kbytes)unlimited  unlimited

 

I have tried increasing nofiles to 20040 without any success :-(

 

Here are some examples of the full error messages from the logs:

 

[2005/04/21 08:45:36, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204)

  startsmbfilepwent_internal: unable to open file
/usr/local/samba/private/smbpasswd. Error was: Too many open files

[2005/04/21 08:45:36, 0]
passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326)

  Unable to open passdb database.

 

another example:

 

[2006/01/26 08:19:06, 0] lib/debug.c:reopen_logs(591)

  Unable to open new log file /usr/local/samba/var/log.pcped250: Too
many open files

 

Have any of you experienced the same and if yes what did you do to

get Samba to behave ?

It is as if files are not closed...

 

Any help would be appreciated !

 

Kind regards, Hans.

 

PS. below is an extract of smb.conf(testparm -v) parameters(excluding
all the shares: LOTS)

 

Server role: ROLE_DOMAIN_MEMBER

Press enter to see a dump of your service definitions

[global]

  dos charset = CP850

  unix charset = ISO-8859-1

  display charset = LOCALE

  workgroup = CPHOIL

  realm = REALM.NET

  netbios name = PCDISK01

  netbios aliases = pcdisk, pcdisk-1, pcdisk-2, pcdisk-3, pcdisk-4,
pcdisk-5, pcdisk-6, pcdisk-7, pcdisk-8, pcdisk-9, pcdisk-10, pcdisk-11,
pcdisk-12, pcdisk-13, pcdisk-14, pcdisk-15, pcdisk-16, pcdisk-17,
pcdisk-18, pcdisk-19, pcdisk-20, pcdisk-21, pcdisk-22, pcdisk-23,
pcdisk-24, pcdisk-25, pcdisk-26, pcdisk-27, pcdisk-28, pcdisk-29,
pcdisk-30

  netbios scope = 

  server string = Samba 3.0.21b

  interfaces = ge0, 89.0.0.0/255.0.0.0, 192.168.89.0/255.255.255.0,
10.65.0.0/255.255.0.0, 40.0.0.0/255.0.0.0, 127.0.0.1

  bind interfaces only = No

  security = ADS

  auth methods = 

  encrypt passwords = Yes

  update encrypted = No

  client schannel = Auto

  server schannel = Auto

  allow trusted domains = Yes

  hosts equiv = 

  map to guest = Never

  null passwords = No

  obey pam restrictions = No

  password server = *

  smb passwd file = /usr/local/samba/private/smbpasswd

  private dir = /usr/local/samba/private

  passdb backend = smbpasswd

  algorithmic rid base = 1000

  root directory = 

  guest account = nobody

  enable privileges = No

  pam password change = No

  passwd program = 

  passwd chat = *new*password* %n\n *new*password* %n\n *changed*

  passwd chat debug = No

  passwd chat timeout = 2

  check password script = 

  username map = /usr/local/samba/lib/users.map

  password level = 0

  username level = 0

  unix password sync = No

  restrict anonymous = 0

  lanman auth = Yes

  ntlm auth = Yes

  client NTLMv2 auth = No

  client lanman auth = Yes

  client plaintext auth = Yes

  preload modules = 

  use kerberos keytab = No

  log level = 1 printdrivers:10

  syslog = 1

  syslog only = No

  log file = /usr/local/samba/var/log.%m

  max log size = 100

  debug timestamp = Yes

  debug hires timestamp = No

  debug pid = No

  debug uid = No

  smb ports = 445 139

  large readwrite = Yes

  max protocol = NT1

  min protocol = CORE

  read bmpx = No

  read raw = Yes

  write raw = Yes

  disable netbios = No

  reset on zero vc = No

  acl compatibility = 

  defer sharing violations = Yes

  nt pipe support = Yes

  nt status support = Yes

  announce version = 4.9

  announce as = NT

  max mux = 50

  max xmit = 16644

  name resolve order = wins bcast

  max ttl = 259200

  max wins ttl = 518400

  min wins ttl = 21600

  time server = No

  unix