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.