VMware Cloud Community
vmk2014
Expert
Expert

Zombie file Size from Power cli

Hi All,

We have pulled the RV tools report for Zombie files and there were around 7000 Zombie vmdk files as per rv tools report. Can we determine the size of Zombie vmdk to see the potential space gain ?

Also, is it possible to find from power cli script that Zombie files are attached to running VM's or not ?

Thanks

vmk

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership

You might want to have a look at Orphaned Files And Folders – Spring Cleaning and Orphaned Files Revisited posts.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
vmk2014
Expert
Expert

LucD,

Does the script  applies to vCenter6.0/6.5 ? I have not yet tested it, since the environment is huge. Can we convert the vmdk file size from KB to GB ?

Thanks

vmk

Reply
0 Kudos
LucD
Leadership
Leadership

Yesm it should run on those versions as well.

Changes the lines wit

CapacityKB = $_.CapacityKB

into

CapacityGB = $_.CapacityKB/1MB


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos