Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux is slowly consuming disk space

Status
Not open for further replies.

purity

MIS
Nov 5, 2002
6
US
Hello,

I posted a message a few weeks back about a Linux Samba server whose Linux native partition was completely filled, making Samba (as well as many other applications) unable to run.

I've just recently started to monitor its hard drive space consumption in order to ensure that something like this never happens again.

Here are the results of "df" on the 3rd of December:

3782912 in use
44356 free
99% in use

And here are the results of "df" this morning (the 9th):

3783804 in use
43464 free
99% in use

I am guessing that log files could be responsible for this. Samba is the only application being used on the server, and we have a separate partition specifically for users to copy and send data to - and that partition has plenty of free space. Would it be safe for me to delete ALL of the log files in the /var/log/ directory? Or is this a matter of something else that's causing that partition's space to slowly decrease?
 
Try using 'du' to determine which files are taking up all your space... You'll probably get a lot of use out of the -sh args.
 
It's not a wise thing to have so few disk space for logging... You really should buy another disk for them, or just repartition your existing disk. Turning logging off is not wise, too. It makes debugging much harder when some problems arise... and they will, really.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top