Remove-VsanStoragePoolDisk

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

Syntax

-VsanStoragePoolDisk  <VsanStoragePoolDisk[]>
[-Purpose  <String>]
[-RunAsync]
[-Server  <VIServer[]>]
[-VsanDataMigrationMode  <VsanDataMigrationMode>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VsanStoragePoolDisk
VsanStoragePoolDisk[] named
  • pipeline
  • Specifies the vSAN storage pool disks to remove.
    optional
    Purpose
    String named Specifies the purpose for removing the disk.
    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.
    optional
    VsanDataMigrationMode
    VsanDataMigrationMode named Specifies the decommissioning mode of removing the storage pool disks. Full = 0, EnsureAccessibility = 1, NoDataMigration = 2

    Output

    Examples


    Example 1

    $disks =get-vsanstoragepooldisk -VMHost (Get-VMHost 10.192.201.50)
    Remove-VsanStoragePoolDisk -VsanStoragePoolDisk $disks -VsanDataMigrationMode nodatamigration -Purpose "test" -Confirm:$false

    Removes vSAN storage pool disks from the specified host without confirmation.

    Related Commands

    Feedback

    Was this page helpful?