Active IQ Unified Manager Discussions

Restore VM Using NetApp Snapshot (SnapRestore)

mdaly1234
3,557 Views

We want to automate a snap restore command for restoring a VM from one of the nightly snapshots we take. Assuming this can be done with Powershell, just wondering if someone knows the best way to script this. 

 

Obviously happy to use WFA to do this. 

2 REPLIES 2

abhit
3,402 Views

You can look into this website.

Jeremy had developed some workflows.

http://www.virtpirate.com/tag/wfa/

 

Regards

Abhi

sinhaa
3,372 Views

Powershell cmdlets are available  for this. For cDOT Restore-NcSnapshotVolume Restore-NcSnapshotFile and for 7Mode Restore-NaSnapshotVolume Restore-NaSnapshotFile can be used to get this done. You can create a new WFA command to execute it.

 

Example:

 

PS C:\Users\sinhaa> Restore-NcSnapshotVolume -Volume sinhaa_vol1011 -SnapName "hourly.2015-05-14_1805" -VserverContext SivaVS1 -Confirm:0

Name State TotalSize Used Available Dedupe Aggregate Vserver
---- ----- --------- ---- --------- ------ --------- -------
sinhaa_vol1011 online 100.0 MB 5% 94.9 MB False Test_aggregate SivaVS1

 

 

Is this okay, or you would need the whole WFA command code?

 

sinhaa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Public