/var/cpanel/bandwith BUG ?
Hello,
i notice that /var consuming a lot of space disk, when i further check i found that /var/cpanel/bandwith taking 2G space !
and what is strange is that i found also data for terminated accounts, which abnormal i think !!
Is there any tips to fix that ? it is safe to remove this bandwidth file ? or rotate them ?
-
For example can i remove bandwith files that have not be updated during last 3 months trough the below command ? ( it will correspond to terminated accounts ? ) supposing that all active accounts in the server receive at least 1 hit in week ( which supposed be logged to bandwith file ) find -P /var/cpanel/bandwidth -mindepth 1 -maxdepth 1 -mtime '+90' | while read OLDFile; do echo "Now deleting ${OLDFile} ..." rm -f "${OLDFile}" done 0 -
Hello :) You can remove bandwidth data for terminated accounts if that data still exists, but I do not reccomend removing additional data associated with bandwidth. Note that the following commands are helpful if you would like to symlink /var/cpanel/bandwidth to a partition (e.g. /home) with more disk space: 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
Thank you.0 -
[quote="cPanelMichael, post: 1520121">Hello :) You can remove bandwidth data for terminated accounts if that data still exists, but I do not reccomend removing additional data associated with bandwidth.
Why is cPanel not cleaning up after itself and removing this data after termination anyway??0 -
[quote="Echelon17, post: 1527502">Why is cPanel not cleaning up after itself and removing this data after termination anyway??
I recommend opening a bug report if you can reproduce this behavior: Submit A Bug Report Please post the ticket number here so we can update this thread with the outcome. Thank you.0
Please sign in to leave a comment.
Comments
4 comments