Learned something New.
- When put in charge of the admin responsibilities of a linux RedHat 2.1AS server, there are somethings that I have learned.
There are some logs in /var/log that can get very big and use up substantial disk space.
Yesterday my sendmail was giving me a error of insufficient disk space. unable to send. unable to save. with a few other errors. So, I googled, and learned that the df command is very handy. It showed me that in the filesystem mounted on /var was 100% used up. So I started there. I looked through the entire /var dir looking to what was going on. The maillog and the secure files were huge. Hadn’t been looked at since we the server was started in 2005. I also found in /var/mail each user that had mail also hadn’t been cleared for a while. root’s mail had thousands of emails, spanning back from 2005.
After a few hours and reviewing and clearing several hundred megabytes up, the sendmail resumed it’s proper operation.
Thanks to:
http://forevergeek.com/linux/check_disk_space_in_linux.php
The developers and hosts for:
WinSCP :: Free SFTP and FTP client for Windows