Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Does deleting a source snapshot that is mirrored and used at destination for flexclone impact snapm?
2025-02-12
09:38 PM
980 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
> 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?
Solved! See The Solution
1 ACCEPTED SOLUTION
limitless has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please let me know if you want any further information on the topic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the policy used for the snapmirror?
can you check the snapshots on the destination, do you still see test5?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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%
limitless has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
