Low disk space

Disk space might be an issue on a Sandbox server after a long period of heavy load, especially if the retention settings are not configured correctly (see Retention Policy Configuration) or some old files cannot be removed from the system for an unexpected reason.

In this case, it is crucial to understand which processes use up more disk space than expected.

Before doing a deeper investigation or cleaning up any files on the system, it is strongly recommended to reboot the Sandbox server and check if the disk usage improves.

A reboot allows the system to purge obsolete files.

After a reboot, the first step would be checking the available disk space across all partitions:

Bash
Copy

A total disk usage of 30-50 GB is typical on a Sandbox server with continuous medium load. If your total disk usage is substantially more, then further investigation is necessary to determine which system folders use that extra space.

If you have multiple system partitions, then please pay special attention to the available space on the /home, /var and /data partitions, because the Sandbox service actively uses those partitions.

Recommended minimum sizes for the most important partitions:

PartitionMinimum size
/var50 GB
/home20 GB
/data20 GB
/usr10 GB

It is also recommended to check the disk usage of top-level system folders:

Bash
Copy

If a top-level folder looks larger than expected, it is possible to drill down to the necessary level, e.g.:

Bash
Copy

When the largest folders are found on the system, it is usually obvious which process is responsible for writing to those folders.

Docker disk usage

The Sandbox service uses several Docker containers, and it is also recommended to check the total disk usage of Docker:

Bash
Copy

Note that the total disk usage of Docker usually corresponds to the size of the /var top-level folder (or partition).

Optional tools

Using these commands is usually enough to discover the largest folders and sub-folders. If it is possible to install additional packages, then the ncdu utility provides an interactive summary of disk usage:

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard