How to use for loop to identify vmdk locked files

some times we are facing that vmdk locked scenario which we need to identify the locked file using vmkfstools.  But when we having multiple vmdk files, we need to run this command several times. To overcome this issue I have tried to use for loop in esxi shell. This may be help others when they having same problem.

for files in *.vmdk

>do

>vmkfstools -D ${files}

>done

clip_image001

vRops-how to reclaim resources

We can use VMware operations manager to find powered off vms, idle vms & oversized vms easily.

1. Login to the vRops

image

2. Click on reclaim

image


3. From the powered off category we can select and delete the vms

image

4. same way we can find idle vms

image

5. we can select & delete snapshots

image