New-VsanDirectDisk Command | Vmware PowerCLI Reference

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

New-VsanDirectDisk
-DiskCanonicalName < String >
-VMHost < VMHost >
[-ProgressAction < ActionPreference > ]
[-RunAsync ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
DiskCanonicalName String named
Specifies the canonical name of a hard disk from which to create a vSAN direct disk.
required
VMHost VMHost named
  • pipeline
Specifies the VMHost from which to create vSAN Direct disks.
optional ProgressAction ActionPreference named
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.

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 creates a vSAN Direct disk from a specified hard disk.

This cmdlet removes vSAN Direct disks from a vSAN cluster.