Get-VsanStoragePoolDisk Command | Vmware PowerCLI Reference

Get-VsanStoragePoolDisk

This cmdlet fetches VsanStoragePoolDisk information from a certain host or cluster. It also enables you to fetch storage pool disks by disk canonical name. If both host and disk canonical name are specified, the system uses both parameters.

Syntax

Get-VsanStoragePoolDisk
-Cluster < Cluster[] >
[-DiskCanonicalName < String[] > ]
[-Server < VIServer[] > ]
[-VsanStoragePoolDiskType < VsanStoragePoolDiskType > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Cluster Cluster[] named
  • pipeline
Specifies the Cluster from which to fetch the storage pool disk info.
optional DiskCanonicalName String[] named
Specifies the identifier of the disk. It accepts one or more disk canonical names.
optional Server VIServer[] named
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.
optional VsanStoragePoolDiskType VsanStoragePoolDiskType named
Specifies the type of vSAN storage pool disk. Accepted values are single tier, capacity tier and performance tier. Note: This parameter is not currently supported and will be activated in a future release.
Get-VsanStoragePoolDisk
-VMHost < VMHost[] >
[-DiskCanonicalName < String[] > ]
[-Server < VIServer[] > ]
[-VsanStoragePoolDiskType < VsanStoragePoolDiskType > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VMHost VMHost[] named
  • pipeline
Specifies the VMHost from which to fetch the storage pool disk info.
optional DiskCanonicalName String[] named
Specifies the identifier of the disk. It accepts one or more disk canonical names.
optional Server VIServer[] named
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.
optional VsanStoragePoolDiskType VsanStoragePoolDiskType named
Specifies the type of vSAN storage pool disk. Accepted values are single tier, capacity tier and performance tier. Note: This parameter is not currently supported and will be activated in a future release.

Output

VMware.VimAutomation.Storage.Types.V1.Vsan.VsanStoragePoolDisk

Examples

Example 1

Get-VsanstoragepoolDisk -Cluster $config.cluster

Retrieves all vSAN storage pool disks from the specified cluster.

Example 2

Get-VsanStoragePoolDisk -VMHost (Get-VMHost 10.192.207.142)

Retrieves all vSAN storage pool disks from the specified host.

Example 3

Get-VsanStoragePoolDisk -VMHost (Get-VMHost 10.192.207.142) -DiskCanonicalName "mpx.vmhba0:C0:T4:L0"

Retrieves all vSAN storage pool disks from the specified host and with the specified canonical name.

Example 4

Get-VsanStoragePoolDisk -VMHost (Get-VMHost 10.192.207.142) -DiskCanonicalName ("mpx.vmhba0:C0:T4:L0" ,"mpx.vmhba0:C0:T5:L0")

Retrieves all vSAN storage pool disks from the specified host and with the specified canonical names.

Example 5

Get-VsanstoragepoolDisk -Cluster $config.cluster -VsanStoragePoolDiskType singleTier

Retrieves all vSAN storage pool disks of the specified storage pool disk type from the specified cluster. Important: Only the "singleTier" storage pool disk type is supported in vCenter Server 8.0.

Related Commands

VsanStoragePerformance

This cmdlet runs a storage performance test on the specified vSAN clusters and returns the test results.

VsanStoragePoolDisk

This cmdlet adds one or multiple disks to the unique storage pool under a certain host. This cmdlet returns VsanStoragePoolDisk information of a disk that is claimed by a storage pool. Storage pool refers to vSAN ESA disks.

This cmdlet fetches VsanStoragePoolDisk information from a certain host or cluster. It also enables you to fetch storage pool disks by disk canonical name. If both host and disk canonical name are specified, the system uses both parameters.

This cmdlet removes a single or multiple storage pool disks on a vSAN cluster.