Active IQ Unified Manager Discussions

SnapRestore via WFA

yarmas
5,377 Views

I do not see a Command in WFA to allow me to execute a SnapRestore function. If I wanted to create a workflow to do a volume SnapRestore, would I have to create a SnapRestore command? I have not looked at all of the possible commands that exist in the ZAPI that are not in WFA, but is there a list? And are there plans to add to the WFA Command set?

Thanks.

-tom

5 REPLIES 5

girirp
5,321 Views

Hi Tom,

There is no command for snapshot restore (volume) in WFA1.1.1 or WFA 2.0.

We can write a new command using snapshot table. By default snapshot information/table are not cached in WFA database. This can be enabled from WFA -> Tools -> Wfa configuration -> other (tab). Mark 'enable snapshot caching'.

yarmas
5,321 Views

Thanks, that helps.

Is there a matrix of what commands exist/do not exist in WFA and a list of those that are being added (with timeframe)

yaron
5,321 Views

True statement, however we ran into the need for this. Have already created this command as well as a workflow that demonstrates how to use the command. Had to use Perl as the PowerShell implementation of snap restore requires an interactive mode to be used (i.e. answering a pop-up question of "are you sure...").

Testing the Perl code and hopefully will publish the workflow and command (as well as update the Pirate Pack for Storage Provisioning) at some point tomorrow.

yaron
5,321 Views

Here you go. The attached file includes the command "yaron_Restore Volume from Snapshot" as well as the workflow "Restore a Volume from Snapshot".

A few notes:

  1. As mentioned on prior response, you need to enable Snapshot caching in WFA (as it is disabled by default). This can be done by clicking on the Tools menu, choosing WFA Configuration, clicking on the Other tab and checking the enable snapshot caching check-box.
  2. The command above was written in Perl as it turned out that the Powershell implementation of the snap reserve API cannot operate in non-interactive mode. This requires Perl to be installed on the WFA server. Simply follow the instructions on page 39 (Appendix G) of the Installation Guide (v1.7)
  3. I found a bug (which I need to report) that will prevent Perl from working. Fortunately, the fix is rather simple. Before coping the WFAutil.pm file to the lib directory of your Perl installation (see note #2 above), open it using Notepad, find line 54 and change it as follows (simply change the number 14 to 1):
    • Original content: my $server = NaServer->new($array, 1, 14);
    • Updated content: my $server = NaServer->new($array, 1, 1);

That's it. I will update the Pirate Pack for Storage Provisioning to include this workflow as well.

Thank you for raising this question during the WFA session yesterday. Let me know if you have any additional questions.

Yaron

hill
5,321 Views

Hey Yaron,

This is great.  Just one  comment....

  •      When first enabling snapshot caching via the method you mentioned, it IS necessary to reset the cache.  This is done in the following manner:
    • log into WFA as an 'admin' or 'architect'
    • Click on the 'Execution' tab
    • Click on 'Data Sources'
    • access the 'Data Source' for the Storage Schema you are interested in
    • click on the 'storage' caching scheme under the "Scheduler Configuration" section
    • click on "Reset Cache"

The next time the 'Storage' cache is refreshed, the overall Storage caching schema will be recreated... and you will now be caching the Snapshot information.

hope this helps,

Kevin.

Public