How to Disable Disk Space Warnings with Files

Last modified: January 14, 2025


Overview

This document explains how to disable disk space warnings with files. You can configure disk space warnings with files in the following ways:

  • Use the /var/cpanel/chkservd_ignored_mounts file to disable disk space monitoring for selected mount points. This method will prevent disk space warnings from mount points that always report as full, such as the snapd service.
  • Use the /var/cpanel/disablediskfreecheck file to bypass disk space warnings. This method will allow users to perform functions that cPanel & WHM would otherwise prevent due to disk space constraints, like changing account settings in WHM.

The /var/cpanel/chkservd_ignored_mounts file

Each line in the /var/cpanel/chkservd_ignored_mounts file must include a single mount point to ignore.

Important:
  • Entries must contain alphanumeric, English language characters.
  • Entries may also include the slash character (/).
  • Separate each line with a newline (\n) character.
  • You can only disable monitoring for an entire mount point (For example, /var). You cannot disable monitoring for the last segment of a mount point (for example, /var/tmp).

For example, to prevent disk space monitoring alerts for the snap and tempbackup mount points, add the following entries to the /var/cpanel/chkservd_ignored_mounts file:

1
2
snap
tempbackup

The /var/cpanel/disablediskfreecheck file

To bypass disk space warnings, create the empty /var/cpanel/disablediskfreecheck file.

Warning:

Bypassing disk space warnings means that cPanel & WHM could run out of disk space. Running out of disk space can cause a variety of issues, including website failures.

Additional Documentation