New-VsanDirectDisk
This cmdlet creates a vSAN Direct disk from a specified hard disk that is not a part of any existing vSAN disk group. You can use vSAN Direct disk for direct access from cloud-native applications that require stateful storage. This cmdlet is not supported in a vSAN ESA enabled cluster. You can use this cmdlet starting from vSAN 7.0 Update 1.
Syntax
-DiskCanonicalName
<String>
-VMHost <VMHost>
[-RunAsync]
[-Server <VIServer[]>]
[CommonParameters]
-VMHost <VMHost>
[-RunAsync]
[-Server <VIServer[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
String | named |
|
Specifies the canonical name of a hard disk from which to create a vSAN direct disk. | required |
|
VMHost | named |
|
Specifies the VMHost from which to create vSAN Direct disks. | optional |
|
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 |
|
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. |
Output
VMware.VimAutomation.Storage.Types.V1.Vsan.VsanDirectDisk
Examples
Example 1
New-VsanDirectDisk -diskcanonicalname "mpx.vmhba0:C0:T1:L0" -vmhost "10.161.138.179"
Creates a new vSAN Direct disk with the specified canonical name on the specified host.
Related Commands
VsanDirectDisk
This cmdlet retrieves vSAN Direct disks based on the specified filters.
This cmdlet removes vSAN Direct disks from a vSAN cluster.
This cmdlet creates a vSAN Direct disk from a specified hard disk.