How to create a consistency based snapshot of multiple volumes in NetApp cDot, then flexclones

  1. Identify the volumes to be part of the consistency group snapshot.
  2. You can create a new snapshot policy or an existing.
  3. Assign the policy to the volumes in question.
  4. Go to Schedules and create a new schedule or modify the existing to start at the desired time
  5. Once the snapshots have been created you can create the flexclone volumes.

Working with Netapp snapshots via PowerShell, cluster mode

Connect-NcController anystor

Get-Ncvol -Vserver anysrv -Name anyvol | Get-NcSnapshot | Format-Table -Wrap -AutoSize

$DateToCompare = (Get-date).AddDays(-2)

Get-Ncvol -Vserver anyvsrv -Name anyvol | Get-NcSnapshot | Where-Object {$_.created -lt $DateToCompare -and $_.Name -Notlike “*snapmirror*”}  | remove-ncsnapshot -WhatIf | Format-Table -Wrap -AutoSize

Netapp and Antivirus AV configuration cluster mode

vserver vscan scanner-pool create -vserver anysvrv001_file -scanner-pool anysvrv001_file_SPool -servers 0.0.0.135,0.0.0.136,0.0.0.147,0.0.0.148,0.0.0.149,0.0.0.150 -privileged-users “anydomain\anyaccount”

vserver vscan scanner-pool apply-policy -vserver anysvrv001_file -scanner-pool anysvrv001_file_SPool -scanner-policy primary

vserver vscan on-access-policy create -vserver anysvrv001_file -policy-name anysvrv001_file_AV_Policy -protocol CIFS -filters scan-mandatory -max-file-size 20GB -file-ext-to-exclude “mp3”, “txt” -paths-to-exclude “\~snapshots”

vserver vscan on-access-policy enable -vserver anysvrv001_file -policy-name anysvrv001_file_AV_Policy

vserver vscan scanner-pool servers remove -vserver anysvrv001_file -scanner-pool anysvrv001_file_SPool -servers 0.0.0.136,0.0.0.148, 0.0.0.150

vserver cifs share modify -vserver anysvrv001_file -share-name anysvrv001_file_root$ -vscan-fileop-profile standard