Operating System - HP-UX
1832586 Members
2873 Online
110043 Solutions
New Discussion

CIFS/9000 ignoring max log size parameter

 
SOLVED
Go to solution
Christian Schulze
Regular Advisor

CIFS/9000 ignoring max log size parameter

Hi everybody,
last night ran into a full stop of my CIFS/9000 Server in a production environment.

What has happened?
Samba did not allow any Clients to connect, because the filesystem containing the log-files was filled up.
Why?
some logfiles (named %m.%u.log) grew enourmous large (speaking of some 10 MBs) instead of getting cut at 100 kB (as specified in smb.conf, max log size = 100)

This way samba was up and running, but would not allow any actions.

Did anybody have this or a similar effect ?



some more Details about the System:
HPUX 11.0
Serviceguard A.11.09
CIFS9000 A.01.02
smb.conf:
security = SHARE
log level = 5
max log size = 10
log file = /cifs/samba/log/%m.%u.log


As a first workaround I set now log level to 1 and max log size to 10
And I set up a cron to page me when a Fleisystem grews to 90 % ...



Christian

never touch a running system
7 REPLIES 7
U.SivaKumar_2
Honored Contributor

Re: CIFS/9000 ignoring max log size parameter

Hi,

Run testparms command against your current configuration file and check for errors.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Christian Schulze
Regular Advisor

Re: CIFS/9000 ignoring max log size parameter

Here the output of testparm:
Load smb config files from /etc/opt/samba/smb.conf
Loaded services file OK.
WARNING: You have some share names that are longer than 8 chars
These may give errors while browsing or may not be accessible
to some older clients
Press enter to see a dump of your service definitions ...

Seems OK
the System is running now for almost 1 Year. the only changes were adding some shares time by time.

My first Idea was also a typo in smb.conf

Christian
never touch a running system
U.SivaKumar_2
Honored Contributor

Re: CIFS/9000 ignoring max log size parameter

Hi,

#dos2ux /etc/opt/samba/smb.conf

Restart smbd once. Simulate the overflow of log files by appending some text files to them.

Does the problem come now.

regards,
U.SivaKumar




Innovations are made when conventions are broken
Christian Schulze
Regular Advisor

Re: CIFS/9000 ignoring max log size parameter

OK tried the following:
Appended some chars to the logfile, it grows.
when it reaches max log size,
file gets renamed to .old and new logfile is created.
when this second logfile reaches max log size again, no switch happens, file keeps growing.

My thought was, that the previous .old file gets overwritten ...

Christian
never touch a running system
Christian Schulze
Regular Advisor

Re: CIFS/9000 ignoring max log size parameter

Update:

file is switched to .old not before client disconnects this mapped drive and reconnects again.

If a client does not close the connection, the file keeps growing.


This might be the problem I had last night.
My Clients are W2K-Terminal Servers, which reconnect very seldom (only when they are rebooted)

I'll keep an eye on that ....

Christian
never touch a running system
Stefan Pendl
Valued Contributor
Solution

Re: CIFS/9000 ignoring max log size parameter

Hi Christian,
since you are running a very old version of Samba, try to upgrade. Release A.01.07 was running very good, I am using A.01.08.01 and it is running well. The latest Release is A.01.09.01. You may free download from http://software.hp.com or the University of Utah site listed there.

---
Steve
Programing is fun.
Christian Schulze
Regular Advisor

Re: CIFS/9000 ignoring max log size parameter

Hi,

well, on another cluster I'm running the newest version of CIFS/9000. But for upgrading in need some planned downtime. Maybe I have a chance to do this during christmas ...

Merry christmas everybody

Christian
never touch a running system