Cpanel Bandwidth Tracking issue

In cPanel 11.25 they have made a few feature improvements to the bandwidth tracking system built into WHM and cPanel. While these new features grant you a much more accurate and granular view of client bandwidth usage, customers with inadequately sized /var partitions may run into issues related to partition size and disk space consumption.

It should also be noted that the creation of these files occurs during the first upcp that results in an upgrade to 11.25 and can require significantly more time than a normal upgrade. The notice for this change was in our release notes for 11.25 which can be found at http://docs.cpanel.net/twiki/pub/AllDocumentation/ReleaseNotes/1125releasenotes.pdf

The changes which were made, are in regarding to the bandwidth graph RRD files which are split off for each individual service per domain and subdomain and stored in /var/cpanel/bandwidth/ .

The potential issue is this: On some machines, depending on the partitioning schema and the number of domains on a server, there may be a disk space issue. This will only effect customers with large numbers of domains and a relatively small /var/ partition, i.e., 8-10G. In these situations, the /var/ partition may become full.

The workaround for the time being, if you are affected by this issue, is that cpanel has suggesting running the following commands:

To disable the Bandwidth Stats Generation run:

touch /etc/rrdtooldisable

This will disable generation of the rrdfiles altogether. Removing this file will result in the graphs being generated again or Symlinking /var/cpanel/bandwidth to a partition with more space.

The below command will create a /home/bwtemp directory, copy the contents of /var/cpanel/bandwidth to it, create a backup in /root/cp- bandwidth-backup.tar.gz, and then symlink the old directory to the new one where there should be more diskspace.

mkdir /home/bwtmp; tar -czvf /root/cp-bandwidth-backup.tar.gz /var/ cpanel/bandwidth ; mv /var/cpanel/bandwidth/* /home/bwtmp/; rm -rf /var/cpanel/bandwidth ; ln -s /home/bwtmp /var/cpanel/bandwidth

g33kadmin

I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.