Community Related Discussions

Delete a snapshot on a destination Vserver DR

Xarli64
696 Views

Hello,

 

I have a snapmirror relationship using a MirrorAndVault policy, without snapshot on sending side, and snapshots only on destination side (created via snapmirror policy rules, on a cron schedule).

 

I had issues at creation, and I used a test rule (snapmirror policy add-rule) to create test snapshots. After fixing those issues, I deleted the test rule (snapmirror policy remove-rule), but now I have a test snapshot that I cannot delete since the vserver is a destination Verser DR :

 

filer-dest::*> volume snapshot delete -vserver my-vserver-dr -volume my_vol -snapshot test.2026-03-06_0957

Error: command failed: This operation is not permitted on a Vserver that is configured as the destination for Vserver DR.

filer-dest::*>

 

Set adv didn't help me (options -force or -ignore-owners).

 

From my understanding, I need to break the snapmirror relationship, delete the snapshot, and resync afterwards.

 

Is that my only solution, or am I missing a solution not requiring me to break the snapmirror relationship (which seems a bit overkill just to remove a snapshot)? And how can I be sure that the vserverdr snapshots used for the snapmirror will be usable to avoid a re-initialization from 0.

 

Thank you in advance.

1 REPLY 1

FelixZhou
227 Views

you can use snapshot policy and snapvault rules and labels to configure how many sanpshots you want to keep on source and destination automatically. you can use this to keep less snapshots on source and keep more/longer on destination. yes, if you want to delete any snapshots on destination, you will have to use snapmirror quiece/abort/break to pause the feature, delete the snapshots, then snapmirror resync to resume the replications. 

Public