< Back

New-VsanDisk

Sun Jan 19, 2020 7:18 pm

NAME New-VsanDisk



SYNOPSIS

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





SYNTAX

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

[<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-CanonicalName <String>

Specifies the canonical name of the host SCSI disk that is added to the group.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RunAsync [<SwitchParameter>]

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 VMware PowerCLI console.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-VsanDiskGroup <VsanDiskGroup>

Specifies the disk group that the disk is added to.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are

modified.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

The newly created VsanDisk object







NOTES





Works only with vCenter Server 5.5 or later.



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



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



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



RELATED LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... nDisk.html

Get-VsanDisk

Remove-VsanDisk