Installation & Configuration

Welcome to the Nutanix NEXT community. To get started please read our short welcome post. Thanks!

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create and assign vdisk to VG by CMDLETS?

SOLVED Go to solution
Outrider

How to create and assign vdisk to VG by CMDLETS?

Hello everyone,

 

I am stucking at the step as I cannot find out what is the exact command to create a vdisk and assign it to a newly created Volume group as well as the usage differences between Virtual Disk, Volume Disk and vDisk commands in Powershell CMDLets.

May someone help me on pointing this out?

 

Thanks a lot

1 ACCEPTED SOLUTION

Accepted Solutions
Nutanix Employee

Re: How to create and assign vdisk to VG by CMDLETS?

Try Below:

=========

 

vDisk Create Spec:

================

$vdiskcreate = New-ntnxobject 0name VmDiskSpecCreateDTO

$vdiskcreate.containerUuid = "Provide the container UUID where u need to place the vdisk"

$vdiskcreate.sizeMb = "vDisk size in kb"

 

Create Command:

===============

New-NtnxVolumeDisk -Uuid "VG UUID" -CreateSpec $vdiskcreate

2 REPLIES
Nutanix Employee

Re: How to create and assign vdisk to VG by CMDLETS?

Try Below:

=========

 

vDisk Create Spec:

================

$vdiskcreate = New-ntnxobject 0name VmDiskSpecCreateDTO

$vdiskcreate.containerUuid = "Provide the container UUID where u need to place the vdisk"

$vdiskcreate.sizeMb = "vDisk size in kb"

 

Create Command:

===============

New-NtnxVolumeDisk -Uuid "VG UUID" -CreateSpec $vdiskcreate

Highlighted
Outrider

Re: How to create and assign vdisk to VG by CMDLETS?

@sandeepmp

By the way, does Nutanix CMDLETS support VG for Protection Domain?

I just can see only get-ntnxunprotectedVMs for using with Protection Domain