2013-11-24 08:39 PM
I want to create a new VHDX file on this CIFS share by using the "New-NcVirtualDisk" cmdlet from one of the Hyper-V nodes, but I .
Here's what I've tried doing:
# Connect directly to the Vserver (SVM)
PS C:\> $conn = Connect-NcController -Name melfvsn1 -Credential vsadmin
# Print out the $conn variable to check
PS C:\> $conn
Name Address Vserver Version
---- ------- ------- -------
melfvsn1 xx.xxx.xxx.xxx MELFVSN1 NetApp Release 8.2P3 Cluster-Mode: Thu Sep 12 01:13:07 PDT 2013
# Now create a new VHDX file on a CIFS share that is hosted by this Vserver (SVM)
PS C:\> New-NcVirtualDisk -FullName \\melfvsn1\hv1\newdisk.vhdx -Size 200g -Vhdx -Controller $conn
I get this error:
New-NcVirtualDisk : Could not find file \\melfvsn1\hv1\newdisk.vhdx on NetApp.
At line:1 char:1
+ New-NcVirtualDisk -FullName \\melfvsn1\hv1\newdisk.vhdx -Size 200g -Vhdx -Contro ...
+ CategoryInfo : NotSpecified: ( [New-NaVirtualDisk], ArgumentException
+ FullyQualifiedErrorId : System.ArgumentException,DataONTAP.PowerShell.SDK.Cmdlets.HyperV.NewNaVirtualDisk
What am I doing wrong?
I've tried making a connection to the Cluster rather than the Vserver, but that didn't help. I tried using just IP addresses but that didn't work...
Solved! SEE THE SOLUTION
2013-11-24 09:59 PM
Could you please try the same by creating a lif exclusively specifying the data role and protocol as CIFS, it should work for you.
As you can see below when i try specifying the path with the lif which serves both data and management it leads to the same error and the vhd does not get created.
But when i try the same with the exclusive data Lif it creates the vhd.
2013-11-25 03:40 AM
Thanks Vinith - your suggestion worked!
Actually to be clear, I had to make sure that I established a connection (Connect-NcController) to a LIF that does allow management access. Then I ran the New-NcVirtualDisk to a UNC path containing the IP Address of a Data-only LIF. Then it worked.