VMware Cloud Community
CFormage
Enthusiast
Enthusiast

VirtualDisk allocated and used size

How can I get the virtual hard disk used and allocated size for a thin disk.

I can get the allocated size via

Get-VM -Name $vmName | Select -ExpandProperty Harddisks

But there does not seem to be a way to get the actual used space when it’s a thin disk

Many Thanks

Blog: www.dcinfrastructure.blogspot.com
0 Kudos
2 Replies
PduPreez
VMware Employee
VMware Employee

Not sure about the command but RvTools can get this for you

Have you tried it before?

http://www.robware.net/

Please award points for helpful/correct answers Smiley Happy

0 Kudos
mattboren
Expert
Expert

Hello, CFormage-

Another community member had a question like this a couple of months ago in the Find VM disks actual size thread.  You should be able to use the code there to get the provisioned sizes of VMs' disks, along with their sizes on the datastores.  Also, LucD has a link from there to his vdisk reporting script. One or the other (or both) should get you for what you are looking.

Enjoy.

0 Kudos