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

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. Prevention checklist

← All troubleshooting guides