Receiving disk_usage_check alerts and in need of guidance.

  • 24 October 2019
  • 0 replies
  • 962 views

Userlevel 4
Badge +5

NCC check giving you warning that /home space usage is above the threshold(75%) and now you’re worried how will it affect your production and what all files and directories can you safely delete. 

Let us guide you through the steps to safely reduce the space usage of /home directory in the CVM. 

Before let us understand why you’re receiving this warning.Nutanix reserves space in the SSD under /home for its infrastructure and is capped at 40GB, and sometimes it is possible to run low on the space usage and triggering an alert.

IMPORTANT NOTE → DO NOT treat the Nutanix CVM (Controller VM) as a normal Linux machine. DO NOT perform "rm -rf /home" on any of the CVMs. It could lead to data loss scenarios. Contact Nutanix Support in case you have any doubts.

Now that we got that warning noted on a serious note, let us answer the question : 
 

How can we reduce space usage?
 

First, you need to get an idea of space usage.

You can run the following script to parse the usage of /home partition and give us an estimate.

Log in to CVM, download KB-1540.sh to /home/nutanix/tmp directory,  make it executable and run it.

This will give us an idea regarding space usage in a more organised way. 

You can also delete unused software downloads used earlier for planned upgrades.
To find out the Software Bundle downloaded before follow the steps mentioned below :

 

  • Go to Prism.
  • Click on Gear icon.
  • Select Upgrade Software and see the various software bundles downloaded.
  • Simple click X  to delete the files.

Still confused?

Give the following KB a read to find out the files and directories safe to remove and the procedure regarding the whole process.

KB-1540


Cleaned up all the files and still space utilisation is high ?

Contact Nutanix Support with script log bundle script log bundle (/tmp/home_kb1540_<cvm_name>_<timestamp>.tar.gz). 



IMPORTANT NOTE (AGAIN BECAUSE IT IS REALLY IMPORTANT ) -> DO NOT DELETE DIRECTORIES AND FILES NOT MENTIONED IN THE KNOWLEGBE BASE ARTICLE . WHENEVER IN DOUBT, CONTACT NUTANIX SUPPORT AND THEY WILL BE HAPPY TO HELP YOU.


This topic has been closed for comments