Disk Space Usage and bandwidth data (RRD)
In cPanel™ 11.25 the number of bandwidth data (RRD) files has increased. File names have also changed for clarity. There are now two files for each protocol and for the aggregate.
As noted above, the number of RRD files generated by the system increased with cPanel™ 11.25. With this comes an increase in the disk space used by /var/cpanel/bandwidth.
To prevent issues related to disk consumption by the RRD files, during the cPanel™ Update /usr/local/cpanel/bin/chk_bwrrd_space is used to examine the disk mount that contains /var/cpanel/bandwidth.
If insufficient disk space is detected then bandwidth generation is disabled.
Cpanel disk space consumed by an account’s MySQL and PostgreSQL database
To enable this feature toggle the following Tweak Setting:
When displaying disk usage in cPanel/WHM include Postgresql and MySQL® disk usage.
As with the database counts, the disk usage calculation is handled by /scripts/update_db_cache which executes every 4 hours. This script is executed upon enabling the Tweak Setting. Administrators may also execute this script to recalculate the figures.
The disk usage figures are stored in /var/cpanel/datastore/mysql-disk-usage and /var/cpanel/datastore/postgres-disk-usage.
cat /var/cpanel/datastore/mysql-disk-usage
Support for /scripts/updatemysqlquota ends as of cPanelTM 11.25.0. Per this change /scripts/updatemysqlquota is no longer distributed with the product.
Reference: http://cpanel.net
Quick way to add more SWAP space on your server
To check the swap space used you can use “free -m“.
If for some reason you have a server with too little SWAP then there is a quick way to create a swap file and then use it for additional swap space on the server.
dd if=/dev/zero of=/opt/swapfile bs=1024 count=2048000
mkswap /opt/swapfile
swapon /opt/swapfile
swapon -s
And then we need to add the following to the /etc/fstab.
/opt/swapfile swap swap defaults 0 0
What is the difference between Domain disk space and Hard disk quota?
Domain disk space - a calculation of everything the domain uses disk space for i.e. web, mail, databases, etc.
Hard disk quota - a calculation of disk space used by a domains ftp user account i.e. web files.
Domain disk space
This is how much disk space is used by the entire domain. It is made up of Plesk statistics and includes the amount of disk space taken by web pages, mail accounts, databases and other domain data including options specified in the statistic settings on Server -> Server preferences page in the Plesk CP.
Hard disk quota
Is a file system feature that limits how much disk space can be taken by the files which are owned by a specific system account (either domain FTP user or webuser or subdomain FTP user).
This file system quota cannot be exceeded. If the limit is reached, the system user will not be able to create new files and will receive the error “no more space left on device”.
Reference : http://parallels.com
semget: No space left on device
This relates to semaphores on your system (you’ve run out). Run the following to clear them out:
ipcs | grep apache | awk ‘{print $2}’ > sem.txt
And then run the following.
for i in `cat sem.txt`; do { ipcrm -s $i; }; done;