Data Domain: MREPL ASSOC failed, Dest Mtree must not exist for initialization
Summary: MREPL ASSOC failed, Dest Mtree must not exist for initialization
Symptoms
Unable to initialize mtree replication context
Cause
When creating mtree replication pair, the destination mtree must not exist for initialization.
Errors seen will be
replication watch rctx://x
Use Control-C to stop monitoring.
(00:00) Replication initialize started...
(00:44) 0%: MREPL ASSOC failed: No such file or directory (2)
If mtree exists and is marked as deleted.
(00:00) Replication initialize started...
(00:02) 0%: MREPL ASSOC failed: repl ctx x: Dest Mtree must not exist for ini(00:04)
0%: MREPL ASSOC failed: repl ctx x: Dest Mtree must not exist for ini(00:06)
0%: MREPL ASSOC failed: repl ctx x: Dest Mtree must not exist for ini(00:08)
0%: MREPL ASSOC failed: repl ctx x: Dest Mtree must not exist for ini(00:10)
Resolution
Break replication context on both source and destination
Command :
replication break rctx://x
Delete mtree on destination
Command :
mtree delete /data/col1/<mtree>
Run filesystem cleaning on destination
Command :
filesys clean start
Note: Run "filesys clean watch" and once cleaning starts at phase 1, you can stop cleaning "filesys clean stop" and make sure mtree is removed by running "Mtree list"
Reconfigure mtree on both source and destination
Command :
replication add source mtree://<source hostname>/data/col1/<mtree> destination mtree://<destination hostname>/data/col1/<mtree>
Initialize replication context from source
Command :
replication initalize rctx://x
Make sure replicaiton is initializing successfully
Command :
replicaton watch rctx://x