Microsoft Virtualization Discussions
Microsoft Virtualization Discussions
PS /> Test-v3Prerequisites
[?] You are using a PowerShell version 7.3.9.
[√] PSGallery is available.
[√] PSGallery is Trusted.
[√] Repositories are available and configured correctly.
[√] VMware.PowerCLI 13.2.1.22851661
[√] NetApp.ONTAP 9.14.1.2401
----------------------------------------------------------------------------------
[√] All the required Modules are installed in the required version
----------------------------------------------------------------------------------
passed prerequisites check
PS />
PS /> Get-Command -Syntax New-NcVolClone
New-NcVolClone [-CloneVolume] <string> [-ParentVolume] <string> [[-ParentSnapshot] <string>] [-SpaceReserve <string>] [-JunctionPath <string>] [-JunctionActive <bool>] [-VolumeType <string>] [-QosPolicyGroup <string>] [-CachingPolicy <string>] [-Option <string[]>] [-Comment <string>] [-Vserver <string>] [-ParentVserver <string>] [-VserverDrProtection <string>] [-Uid <long>] [-Gid <long>] [-MatchParentStorageTier <bool>] [-Style <string>] [-SnaplockType <string>] [-VserverContext <string>] [-Controller <NcController[]>] [-ZapiCall] [-WhatIf] [-Confirm] [-ZapiRetryCount <int>] [<CommonParameters>]
PS /> $global:currentNcController
Name Address Vserver Version
---- ------- ------- -------
<REDACTED> <REDACTED> vserver NetApp Release 9.13.1P6: Tue Dec 05 16:06:25 UTC 2023
PS /> $global:currentNcController.Vserver
vserver
PS /> $Params = @{
>> ParentSnapshot = $snapshotName
>> CloneVolume = $vAppName
>> VserverDrProtection = "unprotected" <<<<<<<<<<
>> JunctionPath = $junctionPath
>> JunctionActive = $True
>> Vserver = $global:currentNcController.Vserver
>> }
PS /> $sourceVol | New-NcVolClone @Params
New-NcVolClone: [failure]: Cannot protect volume "vserver:VolClone" because the parent volume is unprotected in the Vserver DR relationship. If volume requires Vserver DR protection, protect the parent volume first using the "volume modify -vserver-dr-protection protected" command. Otherwise, to create a clone without protection, specify the "-vserver-dr-protection unprotected" parameter.
PS />
PS /> $Params = @{
>> ParentSnapshot = $snapshotName
>> CloneVolume = $vAppName
>> VserverDrProtection = "unprotected"
>> JunctionPath = $junctionPath
>> JunctionActive = $True
>> Vserver = $global:currentNcController.Vserver
>> "vserver-dr-protection" = "unprotected"
>> }
PS />
PS /> $sourceVol | New-NcVolClone @Params
New-NcVolClone: A parameter cannot be found that matches parameter name 'vserver-dr-protection'.
PS />
Any thoughts on this?
Hi,
As I see the vserver-dr-protection is not supported in the rest call
volume-vserver-dr-protection-attributes | NO REST EQUIVALENT |
Could you please let us know which Powershell toolkit version you are using?
Using
NetApp.ONTAP 9.14.1.2401
connected to
NetApp Release 9.13.1P6
9.14.1 use REST internally, the volume-vserver-dr-protection-attributes not supported.
volume-vserver-dr-protection-attributes | NO REST EQUIVALENT |