Broken Windows File Sharing Logging

My iMac with OS X 10.5.1 just ran out of disk space. about 100 GB of space was missing in action.

After some command line magic I found it back:

# ls -lh /var/log/samba
total 205596456
drwx------  4 root  wheel   136B Oct 27 19:25 cores
-rw-r--r--  1 root  wheel    18K Dec  1 18:23 log.nmbd
-rw-r--r--  1 root  wheel    98G Dec  2 10:49 log.smbd

Wow. Almost 100GB log file for Samba, which is used for Windows File Sharing.

This log is filled with 584.807.562 entries that say:

open_sockets_smbd: accept: Too many open files in system

It seems Apple forgot to:

  • Properly test Samba (Windows File Sharing) – This iMac is mostly sitting idle on my Desk at the moment, so I have no how too many files can be open. I don’t even have any samba clients connected to this Mac!
  • Properly rotate the log files – The first entry was from a week ago. Why are these log files not rotated like the rest in /var/log? Seems they missed the smb logs.

Lame. Not tested well enough. Feels like beta software.

Advertisements

4 comments so far

  1. Paul on

    This has nothing to do with 10.5. This has happened with 10.4 and maybe 10.3 – it’s never happened to me so I can’t give any suggestions as to what’s causing it.

  2. Josh Huhmann on

    Unfortunately I have to agree with Paul, it has been an unresolved problem for years. Lots of people have it, but no one ever finds a solution.

  3. Michael D'Angelo on

    we had a similar samba log file totaling 580 gb. Unfortunately Leopard has not been tested thoroughly at all.

  4. Lolsox on

    Simply set up a cron job to rotate the logs. Actually, no just apply the update which fixes this bug.

    🙂


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: