Add-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.

Syntax

-DiskCanonicalNames  <String[]>
-VMHost  <VMHost>
-VsanStoragePoolDiskType  <VsanStoragePoolDiskType>
[-RunAsync]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
DiskCanonicalNames
String[] named Specifies the canonical names of hard disks that must be added to one storage pool. The parameter also accepts ScsiLun and VMHostDisk objects through argument transformation.
required
VMHost
VMHost named
  • pipeline
  • Specifies the VMHost from which you want to create a vSAN ESA storage pool.
    required
    VsanStoragePoolDiskType
    VsanStoragePoolDiskType named Specifies the type of vSAN storage pool disk. The disks can be used in single tier.
    optional
    RunAsync
    SwitchParameter named Indicates that the command returns immediately without waiting for the task to complete. In this mode, the output of the cmdlet is a Task object. For more information about the RunAsync parameter run "help About_RunAsync" in the vSphere PowerCLI console.
    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.

    Output

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

    Examples


    Example 1

    Add-VsanStoragePoolDisk -VMHost (Get-VMHost 10.192.201.50) -VsanStoragePoolDiskType "singleTier" -DiskCanonicalName ("mpx.vmhba0:C0:T11:L0","mpx.vmhba0:C0:T12:L0")

    Adds disks with specified canonical names from a specified host as "singleTier" vSAN storage pool disks.

    Example 2

    Add-VsanStoragePoolDisk -VMHost (Get-VMHost 10.192.201.50) -VsanStoragePoolDiskType "singleTier" -DiskCanonicalName "mpx.vmhba0:C0:T6:L0"

    Adds a disk with a specified canonical name from a specified host as "singleTier" vSAN storage pool disks.

    Related Commands

    Feedback

    Was this page helpful?