Pivotal Knowledge Base

Follow

Ops Manager VM - no space left on device

Environment

Product Version
Pivotal Cloud Foundry® Ops Manager 1.6.x, 1.7.x

Symptom

Ops Manager VM disk becomes full and an error message such as "no space left on device" can be seen in Ops Manager log files.

Cause

A possible cause of this issue is that the /tmp directory on the Ops Manager VM has become full. An error message such as "no space left on device" can be seen in Ops Manager log files.

One reason why the /tmp may fill up, is frequent exporting of the Ops Manager installation files (backups etc).

In Ops Manager 1.6 exporting the installation settings will leave files in /tmp/ops_manager directory per export. This will fill up the /tmp directory over time.

In Ops Manager 1.7, although an export will leave files in /tmp/ops_manager, there is a daily job to clear down these files.

Resolution

Manually clear down the /tmp directory or the Ops Manager VM can be restarted to clear down the /tmp directory. 

In Ops Manager 1.6 it is possible to run a cron job that will delete files in /tmp generated by the export installation process. For example:

sudo find /tmp -user tempest-web -type f ! -name "*.log" -exec rm {} \;

This will go through `/tmp` and find all of the files that are owned by the tempest-web user that are not log files and delete them.

If the /tmp directory is frequently filling up then further investigation is needed to see what process is filling up the disk.

Additional Information

Please see Ops Manager VM - /tmp directory is growing in size if the clear down process is not running in Ops Manager 1.7.

Comments

Powered by Zendesk