Remove-VsanStoragePoolDisk Command | Vmware PowerCLI Reference

Remove-VsanStoragePoolDisk

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

Syntax

Remove-VsanStoragePoolDisk
-VsanStoragePoolDisk < VsanStoragePoolDisk[] >
[-ProgressAction < ActionPreference > ]
[-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 ProgressAction ActionPreference named
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

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.