Discuss NetApp solutions for Microsoft Private Cloud and the Hyper-V platform, including FlexPod Datacenter, OnCommand Plug-in for Microsoft, and ONTAP PowerShell Toolkit.
Discuss NetApp solutions for Microsoft Private Cloud and the Hyper-V platform, including FlexPod Datacenter, OnCommand Plug-in for Microsoft, and ONTAP PowerShell Toolkit.
Hi everyone, I would need to purge the volume-recovery queue in my script. I can't find the cmdlet. Can someone give me some advice please? Thank you very much and have a nice day! Bye
... View more
Hi can some one help please its urgent I have created volume clone parent volume and cloned volume are growing like anything with out writing any data over there i didnot see ant LUN growth no snapshot growth. even i tried spliting still eating volume space please help we have volume named hyperv_vol which is cloned named as hyperv_vol_clone 2 csv LUNs are created from hyperv_vol_clone and one from hyperv_vol but hyperv_vol and hyperv_vol_clone are utilizing more aggregate space even though there is no data written on LUNs I have splited volume from parent its strucking and middle and consuming more aggregate space
... View more
I am trying to script the snapmirror failover process using PTK. When I run the following set of commands, # Update Existing SnapMirror and then Break it off Invoke-NcSnapMirrorUpdate -Controller $DstCtrl -DestinationVserver $DstSVM -DestinationVolume $DstVol -ErrorAction stop Watch-Command { Get-NcSnapMirror -Controller $DstCtrl -DestinationVserver $DstSVM -DestinationVolume $DstVol | Select Status } -Until "idle" Invoke-NcSnapMirrorQuiesce -Controller $DstCtrl -DestinationVserver $DstSVM -DestinationVolume $DstVol -ErrorAction stop Watch-Command { Get-NcSnapMirror -Controller $DstCtrl -DestinationVserver $DstSVM -DestinationVolume $DstVol | Select Status } -Until "quiesced" Invoke-NcSnapMirrorBreak -Controller $DstCtrl -DestinationVserver $DstSVM -DestinationVolume $DstVol -Confirm:$false -ErrorAction stop the Invoke-NcSnapMirrorBreak sometime returns with an error: Invoke-NcSnapMirrorBreak : Another SnapMirror operation is in progress. At Z:\Software\NetApp\Powershell Toolkit\Scripts\SnapMirror-Reverse-v3.ps1:119 char:1 + Invoke-NcSnapMirrorBreak -Controller $DstCtrl -DestinationVserver $Ds ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (apfas8200:NcController) [Invoke-NcSnapmirrorBreak], EANOTHER_OP_ACTIVE + FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapmirror.InvokeNcSnapmirrorBreak Why does it report another operation is in progress? I just checked the status, and it was quiesced. It does not fail every time it runs, just some of the time. I have many snapmirrors where I perform this operation repeatedly. Many work just fine and then others seem to fail nearly all the time. I can sometimes just resume the snapmirror and start the script again and it runs without any issues on the same snapmirror. Is there some code I can add to check and try again... like maybe 3 times before aborting? Or better yet, does anyone know what I am not doing correctly to make sure the snapmirror is not performing another operation before I request the snapmirror break?
... View more
Please see attached picture, it pops the error message whenver we run "Add-Credential ip-address -cred CredInfo" and supplying password. Please help any useful idea/info. thank you
... View more
I create a snapshot policy name mypolicy1 PS C:\File> Get-NcSnapshotPolicymypolicy1 Policy Enabled SnapshotPolicySchedules ------ ------- ----------------------- mypolicy1True {1min (5)} and I have volume name vol1 PS C:\File> get-ncvol -Vserver svm1 -name vol1 Name State TotalSize Used Available Dedupe Aggregate Vserver ---- ----- --------- ---- --------- ------ --------- ------- vol1 online 1.0 GB 972.3 MB aggr1 svm1 the vol1's snapshot policy is default now PS C:\File> (Get-Ncvol -Vserver svm1 -Name vol1).SnapshotPolicy Name Uuid ---- ---- default ba1e9fa1-e597-11ed-bc7b-00a098e1d252 when I want to change the vol1's snapshot policy to mypolicy1 I use the powershell command PS C:\File> Get-Ncvol -Vserver svm1 -Name vol1 |Set-NcSnapshotPolicy -Name mypolicy1 Policy Enabled SnapshotPolicySchedules ------ ------- ----------------------- mypolicy1 True {1min (5)} but it still use the default snapshot policy PS C:\File> (Get-Ncvol -Vserver svm1 -Name vol1).SnapshotPolicy Name Uuid ---- ---- default ba1e9fa1-e597-11ed-bc7b-00a098e1d252 I try to change the snapshot policy in GUI, and it's work Can anyone help me, how to change snapshot policy by powershell?
... View more