[Samba] Samba 3.2.5 / Debian Lenny var full

Christian PERRIER bubulle at debian.org
Thu Feb 18 22:54:49 MST 2010

Quoting Didier Roques (Didier.Roques at brive.unilim.fr):
> Hi
>  i've got a server with lenny installed on it with samba 3.2.5.
> My problem is that the var partition is sometimes full. In fact, if i use
> df command I watch the partition full, but if I use du command the
> partition is not full.
> If i use lsof command i see plenty of log samba files into /var/log/samba
> wich are very big, i have
> - to kill the process given by lsof  associated to log samba file (smbd
> process)
> - to restart samba
> to see the partition not full.
> Is there a bug with this official version of samba with lenny ? or have
> you got a solution for me.

Well, the default settings in Debian for logging are:
# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Cap the size of the individual log files (in KiB).
   max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
#   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

So, in short, there shuold be one log fie per client and it is limited
to 1MiB size. The log level is Samba's defautl log level, hence '0',
which is not verbose at all.

So, with these default settings, there is a good reason to have many
log files (in case you have many clients...) but not big files and I
fails to see how this would fill up a reasonably sized /var partition.

You should check "log level" in your smb.conf,file

More information about the samba mailing list