0% found this document useful (0 votes)
79 views3 pages

CVM Cleanup

This document describes running a script to clean up and free space on Nutanix CVMs. It details deploying the cleanup script to all CVMs in a cluster, then running the script locally. The script checks for old files and logs that can be deleted to free up disk space.

Uploaded by

amankumarkhatri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views3 pages

CVM Cleanup

This document describes running a script to clean up and free space on Nutanix CVMs. It details deploying the cleanup script to all CVMs in a cluster, then running the script locally. The script checks for old files and logs that can be deleted to free up disk space.

Uploaded by

amankumarkhatri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

llPROTECTED 関係者外秘

nutanix@NTNX-15SM35250089-B-CVM:10.82.18.50:~/tmp$ ./KB-1540_clean_v7.sh
====
====
File deploying tool

Deploying nutanix_home_clean.sh
Please follow KB-1540 (http://portal.nutanix.com/kb/1540) for the instruction.

========
AOS compatibility check
Current AOS version : 5.15.1.1
========
Package 0 : Compatible (4.* / 5.*)
Package 1 : Compatible (4.* / 5.*)

========
Select package to deploy
1 : Deploy the tool only to the local CVM
2 : Deploy the tool to all of the CVMs in the cluster

Selection (Cancel="c"): 2
Selected ( 2 : Deploy the tool to all of the CVMs in the cluster)

========
MD5SUM check
Package 1 :
"/home/nutanix/tmp/KB-1540_clean/files/nutanix_home_clean_v7.sh" => OK

========
Deploy files
Package 1 :
File 0 : "/home/nutanix/tmp/nutanix_home_clean.sh" in ALL CVMs
10.82.18.151 : Skipped / Same one already exists (same MD5SUM)
10.82.18.153 : Skipped / Same one already exists (same MD5SUM)
10.82.18.154 : Skipped / Same one already exists (same MD5SUM)
10.82.18.42 : Skipped / Same one already exists (same MD5SUM)
10.82.18.44 : Skipped / Same one already exists (same MD5SUM)
10.82.18.46 : Skipped / Same one already exists (same MD5SUM)
10.82.18.48 : Skipped / Same one already exists (same MD5SUM)
10.82.18.50 : Skipped / Same one already exists (same MD5SUM)
10.82.18.52 : Skipped / Same one already exists (same MD5SUM)
10.82.18.54 : Skipped / Same one already exists (same MD5SUM)
10.82.18.56 : Skipped / Same one already exists (same MD5SUM)
10.82.19.166 : Skipped / Same one already exists (same MD5SUM)
llPROTECTED 関係者外秘

====
====================
RESULT : == Complete ==

====
====
nutanix@NTNX-15SM35250089-B-CVM:10.82.18.50:~/tmp$

Run the actual script:


nutanix@NTNX-15SM35250089-B-CVM:10.82.18.50:~/tmp$ ./nutanix_home_clean.sh

###############################################
Clean Up script started in CVM 10.82.18.50
###############################################

=============================================
1. Removing files from delete safe directory
=============================================

=============================================
2. Checking Prism service temp directory
=============================================
4.0K /home/nutanix/prism/temp
---------------------------------------------
If you see a large usage(several GB) in the above, restarting Prism service on the cvm should
resolve the issue.
You can also restart the Prism service with below command
nutanix@CVM:~$ ssh 10.82.18.50 /usr/local/nutanix/cluster/bin/genesis stop prism ; cluster
start

=============================================
3. Checking for old AOS installer package
=============================================
current AOS version is 5.15.1.1
0 old AOS pkg detected

=============================================
4. Checking for NCC log file size
=============================================
No target log. skipping...
llPROTECTED 関係者外秘

=============================================
5. Listing +100M file under /home/nutanix/foundation/isos/
=============================================
Please check to see if any file can be deleted

=============================================
6. Older than 4 day log files size under ~/data/logs/
=============================================
772M total
Please check to see if any file can be deleted

###############################################
Clean Up script finished in CVM 10.82.18.50
###############################################

nutanix@NTNX-15SM35250089-B-CVM:10.82.18.50:~/tmp$

You might also like