3

I'm trying to run a capacity report, and when I run the Get-HardDisk cmdlet in PowerCLI, the value it returns for CapacityKB is the Provisioned space. For example, let's say I've thin provisioned a 200GB disk, which is currently using say 30GB, it returns the 200GB value.

Is there any way I can get the other value? I need to know how much disk space is actually being used on the LUN by the vmdk file. My PowerCLI version is 5.0.1.

Matt
  • 1,883
  • 5
  • 26
  • 39

1 Answers1

7

Just query the VM with get-vm and add | Select UsedSpaceGB.

For example, you could type:

get-vm | Select Name, UsedSpaceGB, ProvisionedSpaceGB
Khaled
  • 35,688
  • 8
  • 69
  • 98
Martin
  • 86
  • 2