Remove-VsanDirectDisk
This cmdlet removes vSAN Direct disks from a vSAN cluster. This cmdlet is not supported in a vSAN ESA enabled cluster. You can use this cmdlet starting from vSAN 7.0 Update 1.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
Cluster | Cluster | named |
|
Specifies the cluster from which to remove vSAN Direct disks. |
required
|
VsanDirectDisk | VsanDirectDisk[] | named |
|
Specifies the vSAN Direct 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 vSAN Direct disks. Full = 0, EnsureAccessibility = 1, NoDataMigration = 2 |
Output
Examples
Example 1
Remove-VsanDirectDisk -cluster "VSAN-Cluster" -Vsandirectdisk $disk[0]
Removes the specified vSAN Direct disks from the specified cluster.
Related Commands
VsanDirectDisk
This cmdlet retrieves vSAN Direct disks based on the specified filters.
This cmdlet creates a vSAN Direct disk from a specified hard disk.
This cmdlet removes vSAN Direct disks from a vSAN cluster.