Microsoft Virtualization Discussions

Assign snapshot policy to a volume

mg
NetApp
5,199 Views

Hello,

Is it possible to assign an existing snapshot policy to a volume with Powershell Toolkit please?

Using PSTK 3.1 and cDOT 8.2.1.

PS E:\Scripts\bin> set-ncvoloption -Controller $TargetClusterCnt -VserverContext nas-dcwnd-wprd -name nasdcwndwprd_root -key "snapshot-policy" -value "none"

set-ncvoloption : Invalid value specified for "option-name" element within "volume-set-option": "snapshot-policy".

At line:1 char:1

+ set-ncvoloption -Controller $TargetClusterCnt -VserverContext nas-dcwnd-wprd -na ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (nas-dcwnd-cprd.san.cec.eu.int:NcController) [Set-NcVolOption], EINVAL

   IDINPUTERROR

    + FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Volume.SetNcVolOption

Kind regards,

Michel

1 ACCEPTED SOLUTION

vinith
5,199 Views

Can you try with

Invoke-Ncssh

or

Update-NcVol

View solution in original post

3 REPLIES 3

vinith
5,200 Views

Can you try with

Invoke-Ncssh

or

Update-NcVol

mg
NetApp
5,199 Views

That was it, thank you!

(Update-NcVol is pretty complex and would require a bit more documentation IMHO)

vinith
5,199 Views

Thanks for the feedback, we will look at the same.

Public