Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 230900

Re: Datastore Capacity

$
0
0

OK I'm getting something back but it's not correct:

 

The output from the script is 1.32 TB. The vcenter summary tab shows 3.40 TB

 

Code:

 

Get-Datastore -Name DS1 |

Select Name,
@{N="Capacity";E={Get-FriendlyUnit -Value ($_.CapacityMB * 1MB) |
%{"{0,7:f2} {1,2}" -f $_.Value,$_.Unit}}},
@{N="FreeSpace";E={Get-FriendlyUnit -Value ($_.FreeSpaceMB * 1MB)

|
%{"{0,7:f2} {1,2}" -f $_.Value,$_.Unit}}},
@{N="ProvisionedSpace";E={Get-FriendlyUnit -Value

($_.ExtensionData.Summary.Capacity -

$_.ExtensionData.Summary.FreeSpace +

$_.ExtensionData.Summary.Uncommitted/1GB)|
%{"{0,7:f2} {1,2}" -f $_.Value,$_.Unit}}}


Viewing all articles
Browse latest Browse all 230900

Trending Articles



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