Is there a script or tool for clearing down the home directory? | Nutanix Community
Skip to main content
Solved

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

  • September 25, 2019
  • 5 replies
  • 4288 views

Eric-The_Viking
Forum|alt.badge.img+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

Best answer by rhunt

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
Did this topic help you find an answer to your question?

5 replies

rhunt
Forum|alt.badge.img+4
  • Trailblazer
  • 18 replies
  • Answer
  • September 26, 2019
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

aluciani
Forum|alt.badge.img+34
  • Chevalier
  • 348 replies
  • September 26, 2019
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

Eric-The_Viking
Forum|alt.badge.img+3
aluciani wrote:
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.

AntonioG
Nutanix Employee
Forum|alt.badge.img+4
  • Nutanix Employee
  • 52 replies
  • March 9, 2020

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

 


Forum|alt.badge.img+2
  • Voyager
  • 2 replies
  • November 11, 2020

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