You try to delete a vserver peer (vserver peer delete) and get an error message that the connection is still in use in a SnapMirror relationship (Relationship is in use by SnapMirror in local cluster. Use the “snapmirror list destinations” command to view the relationships.)
You are of course in set d mode.
Before you despair, here’s a course of action:
vServer Peer Delete fails:
FILER-01::*>vserver peer delete -vserver SVM_01_Source -peer-vserver SVM_01-Target -force true -Error: command failed: Relationshipnis in use by SnapMirror in local cluster. Use the "snapmirror list-destinations" command to view the relationships. Use the "snapmirror release command to release the application, then try the command again.
Okay so let’s do what this thing tells us:
FILER-01::*>snapmirror list-destinations - This table is currently empty
Can’t be….. So another Snapmirror Show afterwards:
FILER-01::*>snapmirror show - This table is currently empty
Okay apparently no more active Snapmirror connections. But why don’t I get the vserver peer connection deleted?
Maybe something was still hiding with you and was not deleted correctly. To display something like this there is the small “hidden” switch -expand
FILER-01::*>snapmirror list-destinations -expand Progress Source Destination Transfer Last Relationship Path Type Path Status Progress Updated ID ----------- ----- ------------ ------- --------- --------- ---------------- SVM_01_Source:dp_s1 XDP SVM_01_Target:dp_d1 Idle--
Wow!!! That’s cool. Now delete this “hidden” relationship and off you go.
snapmirror delete snapmirror delete -destination-path SVM_01_Target:dp_d1 -source-path SVM_01_Source:dp_01
Then the “Server delete” command works:
FILER-01::*>vserver peer delete -vserver SVM_01_Source -peer-vserver SVM_01-Target -force true Job queued ID (123) server peer delete
Tadaaa…. It wasn’t that difficult.
The one described here is, of course, the method with the “crowbar” and only if you have really gone through all of the following NetApp documentary articles:
I do not accept any liability or responsibility for what you do with my provided and described here. The responsibility for carrying out the above orders is yours.
DerSchmitz (aka Andre Unterberg)