Microsoft Virtualization Discussions

Equivalent Cmdlets for the Filer commands available

skalaska
3,591 Views

What would be the equivalent Cmdlets for following filer commands:

  • Snapvault snap sched
    • I’m using “Set-NaSnapvaultPriSnapshotSchedule”
  • Snapvault snap unsched
    • I’m  using “Remove-NaSnapvaultPriSnapshotSchedule”
  • Snapvault stop
    • I tried “Remove-NaSnapvault”
      • It throws an Exception Message: Api snapvault-secondary-delete-relationship requires license for sv_ontap_sec

  • Also with “Stop-NaSnapvaultPriSnapshot”
    • It throws an Exception Message: snapshot target not configured

Can you help me out?

Thanks,

Sandeep

1 ACCEPTED SOLUTION

vinith
3,591 Views

Try this à Invoke-NaSsh "Snapvault stop"

View solution in original post

4 REPLIES 4

vinith
3,591 Views
  • Snapvault stop
    • I tried “Remove-NaSnapvault”
      • It throws an Exception Message: Api snapvault-secondary-delete-relationship requires license for sv_ontap_sec

The secondary systems must also be licensed as secondaries, chk if the license has been added

SnapVault Secondary: sv_ontap_sec

  • Also with “Stop-NaSnapvaultPriSnapshot”
    • It throws an Exception Message: snapshot target not configured

The only thing you need to make sure you do on the destination is run the "snapvault snap sched vol_name snapshot_name retention@-" - for example "snapvault snape sched sv_daily sv_dest 8@-".  The reason the snapshot creation is failing on the destination is because you don't have a schedule setup for snapvault.  Please note this won't transfer any data - all SnapVault will do is make sure you have 8 copies (in this example) available on the destination.  This also eliminates the need to perform snap rename and snap delete commands to handle the retention/rotation of snapshot copies on the destination.  Also, you want to make sure you use the "-s" option on your "snapvault update" command to make sure you are updating from the application consistent snapshot you are creating.  Also, be sure to have your script run the "snapvault snap create" command after the update since the "snapvault update" doesn't create a snapshot on the destination when it's complete.

run the "snapvault snap sched" command on the destination and you should be able to continue. You need to perform from cli, check if these settings are done, it might help you.

skalaska
3,591 Views

I have added the licenses correctly and  have tried snapvault operations manually on filer, its working fine.

When I try to run it through the UIA script by invoking the PowerShell Cmdlets, its giving the error.

So, what I need is the Cmdlet to be used to stop the snapvault.

Filer commands Cmdlets

Snapvault stop  ???

Thanks,

Sandeep

vinith
3,592 Views

Try this à Invoke-NaSsh "Snapvault stop"

skalaska
3,591 Views

Thanks Vinith,

I am able to run the filer commands from Powershell

Thanks,

Sandeep

Public