PowerCLI Reference

New-VsanDisk

Synopsis

This cmdlet adds a host SCSI disk to a vSAN disk group.

Syntax

New-VsanDisk -VsanDiskGroup <VsanDiskGroup> -CanonicalName <String> [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Get-VsanDisk
Remove-VsanDisk

Detailed Description

This cmdlet adds a host SCSI disk to a vSAN disk group.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
CanonicalNameStringSpecifies the canonical name of the host SCSI disk that is added to the group.truefalse
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falsefalse
RunAsyncSwitchParameterIndicates 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 VMware PowerCLI console.falsefalse
VsanDiskGroupVsanDiskGroupSpecifies the disk group that the disk is added to.truetrue (ByValue)
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse

Return Type

The newly created VsanDisk object

Notes

Works only with vCenter Server 5.5 or later.

Examples

-------------- Example 1 --------------

New-VsanDisk -CanonicalName "DiskCanonicalName" -VsanDiskGroup $vsanDiskGroup

Creates a new vSAN disk and adds the disk to the $vsanDiskGroup vSAN disk group.


Copyright © VMware, Inc. All rights reserved.