Browse by category

Search    |    Advanced search

HowTo :: clear a full partition?

If you get an email from your server or notice that a partition is near or at 100% full, check out some of the following possible solutions.

1. /var partition holds system log files. To see what directory/log is exhausting this partition, do the following:

The 'offending' file and/or directory should be fairly obvious. Once you see what directory is taking up all the space, cd to it and type the same command again; follow this pattern until you find the files taking up all the space. Once found, you can either delete the files or if you'd like to save some of the most recent entries to it, you can type this:

2. /usr partition holds Apache files, including log files.

The first thing you should look at is the the apache log files.

Chances are you'll find that the logs/error_log or logs/access_log is very large. Feel free to delete them or use the tail trick above.

Add comment
Views: 1044
Votes: 0
Comments: 0

Other articles in this Category