Data Protection
Data Protection
> version NetApp Release 9.15.1P5
1. I have a snapmirror relationship and I manually mirrored a snapshot "test5" from source to destination using the below command.
Dest > snapmirror -update -destination-path <> -snapshot test5
2. I created a flexclone at the destination using the snapshot test5
> vol clone show
Parent Parent Parent Vserver FlexClone Vserver Volume Snapshot State Type
------- ------------- ------- ------------- -------------------- --------- ----
dest vol_dest_clone dest vol_dest test5 online RW
3. Now, I deleted(accidentally) the test5 snapshot at the source forcefully
*> snap delete -vserver source -volume vola -snapshot test5 -ignore-owners true
4. The snapmirror relationship is not affected by this even after an update:
>snapmirror update -destination-path dest:vol_dest
> snapmirror show
Progress Source Destination Mirror Relationship Total Last Path Type Path State Status Progress Healthy Updated -
---------- ---- ------------ ------- -------------- --------- ------- --------
SourceLocal:vola XDP dest:vol_dest Snapmirrored Idle - true -
Question:
- From the past experience I have noted that this type of action affects the snapmirror relationship. As mentioned in a 3rd party article:
~~~
If a FlexClone volume is created from a Snapshot copy that is not the most recent Snapshot copy, and that Snapshot copy no longer exists on the source volume, then every update will need to delete the Snapshot copy on the destination. In this case, all SnapMirror updates to the destination volume fail until the clone is destroyed or split.
~~
What has changed on a newer version of Netapp that deleting the source snapshot does not affect snapmirror?
Or it only affects if snapshot deleted is a baseline snapshot?
Please let me know if you want any further information on the topic.
What is the policy used for the snapmirror?
can you check the snapshots on the destination, do you still see test5?
Snapmirror Policy is MirrorAllSnapshots
> SnapMirror Policy: MirrorAllSnapshots
Yes, the snapshot test5 exists in destination.
Vserver Volume Snapshot Size Total% Used%
-------- -------- ------------------------------------- ------
dest vol_dest
test6 224KB 0% 0%
test5 228KB 0% 0%
in your case, the "test5" was manually mirror SS, not the baseline. So its deletion won't disrupt the relationship.
>>
> snapmirror show
Progress Source Destination Mirror Relationship Total Last Path Type Path State Status Progress Healthy Updated -
---------- ---- ------------ ------- -------------- --------- ------- --------
SourceLocal:vola XDP dest:vol_dest Snapmirrored Idle - true -
This also means an existing baseline predating test5, this allows updates to continue. Because it relies on other snapshot and respect the flexclone' local on destination