moogle

Well-Known Member
Apr 7, 2003
94
0
156
Hello,

When I set up my most recent server, the /var partition was not correctly sized and now it's at 96%. Although my MySQL databases are taking up most of it, the other really big folder is the /var/cpanel/bandwidth folder, which is taking up 1.8GB.

Is there something I can do to reduce this size? Is there a WHM setting to rotate these?
What effect will it have to delete the contents of this folder?
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
79
458
cPanel Access Level
Root Administrator
Hello,

When I set up my most recent server, the /var partition was not correctly sized and now it's at 96%. Although my MySQL databases are taking up most of it, the other really big folder is the /var/cpanel/bandwidth folder, which is taking up 1.8GB.

Is there something I can do to reduce this size? Is there a WHM setting to rotate these?
The contents of /var/cpanel/bandwidth are not log files, they are data. As such rotating them would have no effect, other than data loss.


What effect will it have to delete the contents of this folder?
You'll lose all the bandwidth data for every account.

Rather than deleting the directory, moving it to a location with more storage, then symlink to the old location. Something like:

Code:
# mv /var/cpanel/bandwidth /home/bandwidth
# ln -s /home/bandwidth /var/cpanel/bandwidth
 
  • Like
Reactions: sneader and Losmi