VPS
Main PagecPanel and DirectAdmin LicensingServer Management PlansVirtual Private ServersDedicated Servers
Control Panel Licensing
ServerTune ResellersResellersSpecial PromotionsServerTune SpecialsHomeAbout ServerTuneContact usTechnical SupportKB
ServerTune Main Page
Space
Space
Our most popular products:

SPECIAL PROMOTION: cPanel License $36 /month. more info

Issues, Tips, and Solutions

Protect your server with Mod Security rules written specifically for your system. more info ...

Space
Search:    Advanced search
Browse by category:
HowTo :: clear a full partition?
Printer Friendly
email to a friend
Add comment Add comment
Views: 227
Votes: 0
Comments: 0
Posted: 23 Apr, 2008
by: Support T.
* * * * *
Updated: 24 Apr, 2008
by: Support T.

Adapted from: http://faq.cpanel.net/list.cgi

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:

  • cd /var
  • du -sh *
    this shows how much space is used/available in each directory as well as the file sizes of each file in the current directory.

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:

  • tail -5000 filename > filename.new
  • mv filename.new filename
    This will copy the last 5000 lines from the file to a temporary file.

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

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

  • cd to /usr/local/apache
  • du -sh *

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.

Other articles in this Category
document DOWNLOADS
document Documentation & HowTo
document FAQ and Bugzilla
document My hosting packages are not showing in the WHM
document How can I re-activate my WHM/cPanel license?
document I need to run one more backup session on my WHM/cPanel; How?
document Can't connect to local MySQL server through socket '/tmp/mysql.sock
document Is there a difference between the cPanel themes: x, x2 and x3?
document cPsrvd won't start, how can I fix it?
document How can I un-install or remove a Perl Module?
document (internal warning)
document What are the local paths to log files?
document Removing and/or re-installing the cPanel/WHM
document HowTo :: upgrade Perl to v5.8.8
document HowTo: set up the cPanel/WHM to use /home and /home2 partitions?
document HowTo: get rid of the pop-up login screen
document HowTo: reset bandwidth for a specific user
document rsync: failed to connect to rsync.cpanel.net: Connection refused (111)
document Your operating system's rpm update method (yum) was not able to locate the glibc package
document Can I remove the /home/Virtfs directory?
document sshd has failed, please contact the sysadmin.
document Webalizer stats is not in English
document HowTo :: restore cPanel powered server from an old to a new HD
document How can I disable Mod Security for a specific domain while keeping the Mod Security for the rest of domains enabled?
document HowTo :: install a Perl Module
document cPanel cpsrvd is down
document Where to buy or lease a License?
document Where to get technical support
document HowTo :: make scripts available to all clients on your server
document Error: Missing language key "BUAliasFilterTitle"
document HowTo :: install ASP
document HowTo :: remove Tomcat
document Sorry modified cPanel addons are not allowed, contact your server admin for more info.
document Sorry, the nameserver ip 12.34.56.78 cannot be removed since it is still registered with an ICANN register.
document WHM :: Access Denied



RSS