How do I clean up diskspace in HSPcomplete server?

Article ID: 2178 
Last Review: Oct,6 2008
Author: Tarasov Yuri
Last updated by: system APPLIES TO:
  • Parallels Business Automation - Standard 3.3.x

Symptoms

The following warning message is shown in Provider's Control Center:
The number of used inodes or free disk space at one of the partitions has exceeded 80%

Cause

The reason of this warning message was increased diskspace usage inside HSPcomplete VE.
  • To check current diskspace usage you may use the following command inside HSPcomplete VE:
    # df -h
  • To check current inodes (number of files created) usage you may use the following command inside HSPcomplete VE:
    # df -i

Resolution

Please use the following steps to solve this issue:
  • increase diskspace for HSPcomplete VE from hardware node:
    # vzquota stat 99 ## to check current limit
    # vzctl set 99 --save --diskspace NEW_LIMIT ## to increase it
  • delete old logs under /var/log/hspc/ directory;
  • decrease period which problem reports are kept with adjusting REPORT_EXPIRES variable (it is set in days) in /etc/hspc/hspc.conf configuration file inside HSPcomplete VE
  • turn off MySQL binary logging and delete existing MySQL binary logs:
    • login to mysql command line and execute the following command:
      mysql > reset master;
    • comment 'log-bin' line in /etc/my.cnf configuration file (changes will be applied only after HSPcomplete VE restart)
  • check if logrotate is working correctly as described in this article
Keywords: disk space, inodes


Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields