VMware Cloud Community
AravindhG
Contributor
Contributor

Script to Identify VMDKs not attached to any VM

Hello Folks,

I'm looking for a script to identify the vmdk files which are not attached to any VM on all datastores. We do have a practice to take root clone disk during patch actvities but missed to cleanup those files for pretty long time now. Have to regularize this post clean up.

 

Cheers,

Aravindh

Labels (1)
Reply
0 Kudos
1 Reply
scott28tt
VMware Employee
VMware Employee

Search this area of VMTN for the word “orphan”


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
Reply
0 Kudos