NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

Error creating vserver subtype dp-destination with PowerShell Toolkit

MadSANMan
1,929 Views

I'm trying to script DR vserver creation on a FAS we have at our DR site using the PowerShell Toolkit. When I try and create the vserver using the New-NcVserver command with subtype dp-destination, it prompts me for the root volume information as shown in the first snippet of text below. But then it tells me I can't supply anything other then the vserver name, comment and ipspace. If I supply the root volume information with the command, I get the same error. If I leave the prompts to the root volume information blank as shown in the second snippet, it comes back with a different error. The command appears schizophrenic. Any ideas what I'm doing wrong?

 

PS> New-NcVserver -Name dr_01234fs01 -Subtype dp-destination
cmdlet New-NcVserver at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
RootVolume: dr_01234fs01_root
RootVolumeAggregate: aggr1_dd_netapp02_02
RootVolumeSecurityStyle: NTFS
New-NcVserver : Cannot specify options other than Vserver name, comment and ipspace for a Vserver that is being configured as the destination for Vserver DR.
At line:1 char:1
+ New-NcVserver -Name dr_01234fs01 -Subtype dp-destination
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (netapp02.vcpi.com:NcController) [New-NcVserver], NaUnknownErrnoException
    + FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Vserver.NewNcVserver

 

 

 

PS C:\Users\jking> New-NcVserver -Name dr_01234fs01 -Subtype dp-destination
cmdlet New-NcVserver at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
RootVolume:
RootVolumeAggregate:
RootVolumeSecurityStyle:
New-NcVserver : Cannot bind argument to parameter 'RootVolume' because it is an empty string.
At line:1 char:1
+ New-NcVserver -Name dr_01234fs01 -Subtype dp-destination
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [New-NcVserver], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,DataONTAP.C.PowerShell.SDK.Cmdlets.Vserver.NewNcVserver

0 REPLIES 0
Public