Solved

Is there a script or tool for clearing down the home directory?

  • 25 September 2019
  • 5 replies
  • 2773 views

Userlevel 2
Badge +3
Hi, I often get the error of: Warning : Disk space usage for /home on Controller VM... Does anyone have a definitive list of what needs to be deleted beyond the installation files? or a script that deletes the un-needed files? Surely it is something Nutanix should be building in to the system, I never have problems with VMware running out of installation space!

Thanks

Eric
icon

Best answer by rhunt 26 September 2019, 03:41

Here are the ones that we check first that have been deemed OK to remove. Make sure you only remove the files in these folders not the actual folders themselves. Normally things get removed automatically but occasionally we get this if automatic download is enabled for aos and NCC updates.

/Home/nutanix/data/cores/
/home/nutanix/data/binary_logs/
/home/nutanix/data/ncc/installer/
/home/nutanix/data/log_collector/

Same for this folder but only remove old versions of Aos binaries

/home/nutanix/software_uncompressed/

Then run
code:
allssh "df -h /home"

To see the space used on each of the cvms
View original

5 replies

Userlevel 2
Badge +4
Here are the ones that we check first that have been deemed OK to remove. Make sure you only remove the files in these folders not the actual folders themselves. Normally things get removed automatically but occasionally we get this if automatic download is enabled for aos and NCC updates.

/Home/nutanix/data/cores/
/home/nutanix/data/binary_logs/
/home/nutanix/data/ncc/installer/
/home/nutanix/data/log_collector/

Same for this folder but only remove old versions of Aos binaries

/home/nutanix/software_uncompressed/

Then run
code:
allssh "df -h /home"

To see the space used on each of the cvms
Userlevel 7
Badge +35
Hi @Eric-The_Viking did you see the reply from @rhunt ? Did it help? Let us know

If it helps, consider clicking 'best answer' and 'like' - that will others in the community find the same content quicker. Thanks
Userlevel 2
Badge +3
Hi @Eric-The_Viking did you see the reply from @rhunt ? Did it help? Let us know

If it helps, consider clicking 'best answer' and 'like' - that will others in the community find the same content quicker. Thanks


Hi Aluciani, I was testing the commands to see if it worked and I thought there may be more answers - I have marked it as the best answer now as I have been able to clear the space enough to cease the warnings.

Thank you to RHunt for your help.
Userlevel 2
Badge +4

Additional places where you can free space:

  • /home/nutanix/data/logs/sysstats/
    • look for *.gz files
  • /home/nutanix/data/logs/
    • look for ncc_log_collector
  • /home/nutanix/foundation/isos/
    • Look for old ISOs of hypervisors or Phoenix
  • /home/nutanix/foundation/tmp/
    • Look for temporary files

 

Userlevel 1
Badge +2

Prism Central 5.16.1.2 would not download upgrade for 5.17.1.1 due to /home being 77% in use.

removing:- 

/home/nutanix/data/logs/sysstats/*.gz

free’d up 4.6GB and let me download the Prism Central update.

Thanks.

 

 

Reply