Removing WHM Disk Space Errors

Removing WHM Disk Space Errors
1.33 (26.54%) 52 votes

If your server is approaching 99% disk space, your users may be aware of this before you are. At the 1% free margin, the following error will pop up when accessing certain features in cPanel and WHM:

Sorry for the inconvience!
The filesystem mounted at / on this server is running out of disk space. cPanel operation has been temporarily suspended to prevent something bad from happening. Please ask your system admin to remove any files not in use on that partition

While 99% may seem like a dangerous limit, servers nowadays are getting rather large. If you have a server with over 3T of disk space, that 1% free could be well over 100G of space – space that would seemingly become waste.

Until this limit is removed in a future release, you can actually trick cPanel into thinking that the server has more space available. The key is the cache files located in /root/.cpanel/datastore, specifically the file _bin_df_-P_-k_-l.

If you edit that file and change the occurrence of 99% to a lower value, you’ll see the restricted cPanel and WHM features return to normal. Keep in mind that the cache regenerates, so in some cases it may be appropriate to create a cron job to periodically change the file.

Of course, if 99% disk usage on your server leaves you with a minuscule amount of space, you’ll want to remove some files or add additional storage. The following articles may be useful:

 

Thanks to my colleague Lee for sharing this tidbit of info

 

Don't be selfish, share!Tweet about this on TwitterShare on RedditShare on TumblrBuffer this pageDigg thisShare on FacebookFlattr the authorEmail this to someoneShare on Google+Pin on PinterestPrint this pageShare on LinkedInShare on StumbleUpon

4 Comments

  1. Eric Gillette Reply

    Excellent article — just had this problem today with a new client who’s /usr/ partition was running out of space due to /usr/local/apache/logs/error_log filling up and becoming a 56GB file!

    The better issue was to resolve the PHP script that was creating the errors in the first place, so that the log didn’t fill up like that. =0)

    Thanks!

  2. Rai Reply

    Vanessa,

    There is no file like ‘file _bin_df_-P_-k_-l’ right now in the /root/.cpanel/datastore . Is this post still valid ? Please review. Thanks.

    1. Vanessa Reply

      This post is probably outdated. I don’t think the cPanel versions higher than 11.30 use this file anymore, but I have not officially confirmed this with the developers. Prior to the release of this version I was told that the 1% disk free warning would be removed altogether, therefore rendering this file deprecated.

Leave a Reply

Your email address will not be published. Required fields are marked *

Log in