Home / Troubleshooting / SnapMirror Problems

SnapMirror Problems

Symptoms: lag keeps growing, transfers fail, the relationship is stuck in an odd state, or failover to the destination doesn't work the way you expected.

SnapMirror triage: show, update, resync

1. Understand the states first

StateMeaning
SnapmirroredHealthy — replicating on schedule
UninitializedRelationship created but never initialized — run snapmirror initialize
Broken-offDestination was breakn — it is now read-write and no longer receiving updates
ResyncingRecovering after resync — the destination is being brought back in sync (may take a while)
Failed / transfer errorsLast transfer failed — investigate (below)
# The two commands that tell you 90% of the story
snapmirror show
snapmirror show -destination-path vsB:volB -detail
# Lag and last transfer
snapmirror show -fields destination-path,state,status,lag-time,last-transfer-end,last-transfer-size

2. Lag growing / never catching up

Lag = how stale the destination is. If it grows continuously:

# Force an update and watch it
snapmirror update -destination-path vsB:volB
snapmirror show -destination-path vsB:volB -detail   # watch last-transfer-size and time

3. Transfer failures

snapmirror show -detail prints the last transfer error. Common ones:

ErrorTypical cause / fix
Peer unreachable / connection failedCluster or SVM peering broken; intercluster LIFs down; firewall blocking port 10000. Verify: cluster peer show, vserver peer show, network ping-lif
Destination volume fullThe destination volume (or its aggregate) lacks space for the next snapshot. Grow it or free space; thin provisioning recommended on destinations
Snapshot not found on sourceA snapshot the relationship needed was deleted before transfer (e.g., autodelete ate it). Re-run snapmirror update to resync from the latest common snapshot, or snapmirror resync
Authentication/peering failurePeering passphrase mismatch or SVM peer deleted. Re-establish cluster peer/vserver peer
Destination read-only mismatchThe destination volume was modified (e.g., someone wrote to it after break). Re-create the relationship if the destination data is disposable
Failed to find a sync marker: entry doesn't existSnapMirror couldn't find the common snapshot/transfer marker it expects on the destination. Typically: the baseline snapshot was deleted (autodelete), the destination volume was restored/reverted out from under the relationship, or the relationship was created against a different baseline than the one that exists. Recovery: snapmirror resync to re-establish from the latest common snapshot — or if the baseline is truly gone, delete and re-create the relationship (full re-seed). See section 7 below

4. Breaking and restoring

To fail over to the destination (DR), you break the relationship — the destination becomes writable:

# Fail over: make the destination writable
snapmirror break -destination-path vsB:volB
# (applications now use the former destination)

To return after the source is healthy, re-establish and resync — this brings the old source back in sync from the destination without a full reseed (it only ships changes since the common snapshot):

# From the (former) destination cluster: re-establish toward the original source
snapmirror resync -destination-path vs1:vol1
# Wait for state to become Snapmirrored, then optionally switch direction back
snapmirror show -fields state,status,lag-time
Watch the direction In snapmirror resync -destination-path vs1:vol1, the destination is the volume being resynced to — i.e., the original source volume. Get the direction wrong and you can overwrite the wrong side. When in doubt, snapmirror show the relationship and follow its arrow.

5. Restoring data from the destination

# Restore the destination snapshot back onto the source volume (in-place restore)
snapmirror restore -source-path vsB:volB -destination-path vs1:vol1
# Or browse the destination via NFS/SMB after break, and copy files back

Restore overwrites the source volume with the destination's data — confirm the snapshot you're restoring is the right one, and snapshot the current source first if there's any doubt.

6. SnapVault / vault relationships

7. SnapMirror S3 and the "sync marker" error

Two cases that trip up admins who move replication across SVMs, subnets, or to object storage:

SnapMirror S3 (volume to S3 bucket)

# Check what the object-store server exposes and where its LIFs live
vserver object-store-server show
network interface show -vserver svm_obj -fields address,home-port,role
# Confirm the source SVM can reach it (test from the cluster)
network ping -lif svm_src_lif -destination <object-store-server-ip>

"Failed to find a sync marker: entry doesn't exist"

This error appears when the destination (volume or bucket) doesn't have the sync marker — the baseline snapshot/transfer record — that the relationship expects. It's almost always one of:

# Diagnose: what snapshots actually exist on both sides?
snapshot show -vserver vsA -volume volA
snapshot show -vserver vsB -volume volB
# Try to re-establish from the latest common snapshot
snapmirror resync -destination-path vsB:volB
# If resync can't find a common baseline, re-seed from scratch
snapmirror release -destination-path vsB:volB
snapmirror delete -destination-path vsB:volB
snapmirror create -source-path vsA:volA -destination-path vsB:volB -type XDP
snapmirror initialize -destination-path vsB:volB
Re-seed means a full baseline transfer If you delete and re-create, ONTAP ships the entire volume again — for large volumes that's hours of bandwidth. Always try resync first (it reuses the newest common snapshot), and protect the baseline snapshot from deletion going forward (configure autodelete to exclude snapshots SnapMirror needs).

8. Prevention checklist

← All troubleshooting guides