< Back

Get-VsanSpaceUsage

Sun Jan 19, 2020 7:17 pm

NAME Get-VsanSpaceUsage



SYNOPSIS

This cmdlet retrieves space usage details of a vSAN cluster.





SYNTAX

Get-VsanSpaceUsage [[-Cluster] <Cluster[]>] [-Server <VIServer[]>] [-StoragePolicy <SpbmStoragePolicy[]>]

[<CommonParameters>]





DESCRIPTION

This cmdlet retrieves space usage details of a vSAN cluster.





PARAMETERS

-Cluster <Cluster[]>

Specifies the vSAN clusters for which to retrieve space usage details.



Required? false

Position? 1

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? true



-Server <VIServer[]>

Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this

parameter, the command runs on the default servers. For more information about default servers, see the

description of Connect-VIServer.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-StoragePolicy <SpbmStoragePolicy[]>

Get usable free capacity and total capacity if all objects in the vSAN datastore use the specified storage

policy.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Zero or more VsanSpaceUsage objects







NOTES









-------------------------- Example 1 --------------------------



Get-VsanSpaceUsage -Cluster $cluster



Retrieves space usage details of the $cluster vSAN cluster.

-------------------------- Example 2 --------------------------



Get-VsanSpaceUsage -Cluster $cluster -StoragePolicy "vSAN Default Storage Policy"



Retrieves space usage details of the $cluster vSAN cluster and what-if usable free space if all new vSAN objects

using the specified vSAN storage policy.



RELATED LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... Usage.html