NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform.
You will still be able to view content, but posting and replying will be temporarily disabled.
To learn more, please review the information in this blog post.

ONTAP Discussions

Powershell modules to remove snapmirror does not clean base snapshot

CAPATEL_NET1984
2,968 Views

I have below code

 

Invoke-NcSnapmirrorRelease -Source $vsm.SourceLocation -Destination $vsm.DestinationLocation -Confirm:$false -ErrorAction Stop

 Remove-NcSnapmirror -Source $vsm.SourceLocation -Destination $vsm.DestinationLocation -Confirm:$false -ErrorAction Stop

 

when i remove the snapmirror relationship it does not remove base snapshot  , the relationship type here is DP between two different cluster.

 

is there any option I am missing here?

 

I am running above two from remote cluster side

 

1 REPLY 1

moep
2,793 Views

The Powershell command does the same as running "snapmirror release" on the command line. It is standard behavior that the base snapshot remains on the volume. You will have to delete it yourself afterwards.

Public