Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Viewing all articles
Browse latest Browse all 1860

How to find disk usage of a thin provisioned virtual disk?

$
0
0

 

Hi

 

 

I have a virtual machine having a thin provisioned virtual disk. The disk's allocated size is 8 GB but used size is around 2 GB.

 

 

I am interested in knowing is there a why of finding out the used size of disk programmatically like we can see in the

 

 

vSphere Client GUI's datastore browser. I have already tried to query the datastore using  the "HostDatastoreBrowser" but

 

 

it also returns the size of disk as 8GB. Any ideas in this direction will be appreciated. Thanks.

 

 


Viewing all articles
Browse latest Browse all 1860

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>