The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/var/cpanel/bandwidth folder size

Discussion in 'Workarounds and Optimization' started by moogle, Jan 13, 2010.

  1. moogle

    moogle Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    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?
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    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.


    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
    
     
Loading...

Share This Page