Repository navigation
Expand file tree
/
Copy pathnetapp-tutorial17.html
More file actions
1176 lines (1080 loc) · 76 KB
/
Copy pathnetapp-tutorial17.html
File metadata and controls
1176 lines (1080 loc) · 76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ONTAP Data Replication & SnapMirror — Complete Technical Guide</title>
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Sora:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');
:root {
--bg-primary:#0d1117;--bg-secondary:#161b22;--bg-card:#1c2333;
--accent-blue:#58a6ff;--accent-green:#3fb950;--accent-orange:#f78166;
--accent-purple:#bc8cff;--accent-yellow:#e3b341;--accent-teal:#39d3c3;
--text-primary:#e6edf3;--text-secondary:#8b949e;--text-muted:#6e7681;
--border:#30363d;--border-bright:#484f58;--sidebar-width:290px;
}
*{margin:0;padding:0;box-sizing:border-box}html{scroll-behavior:smooth}
body{font-family:'Inter',sans-serif;background:var(--bg-primary);color:var(--text-primary);display:flex;min-height:100vh}
#reading-progress{position:fixed;top:0;left:var(--sidebar-width);right:0;height:3px;background:linear-gradient(90deg,var(--accent-teal),var(--accent-blue),var(--accent-purple));transform-origin:left;transform:scaleX(0);z-index:999;transition:transform .1s linear}
.sidebar{width:var(--sidebar-width);background:var(--bg-secondary);border-right:1px solid var(--border);position:fixed;top:0;left:0;height:100vh;overflow-y:auto;z-index:100;display:flex;flex-direction:column}
.sidebar-header{padding:20px 16px;border-bottom:1px solid var(--border);background:var(--bg-secondary);position:sticky;top:0;z-index:10}
.sidebar-logo{display:flex;align-items:center;gap:10px;margin-bottom:4px}
.sidebar-logo .logo-icon{width:32px;height:32px;background:linear-gradient(135deg,var(--accent-teal),var(--accent-blue));border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:16px}
.sidebar-logo span{font-family:'Sora',sans-serif;font-weight:700;font-size:14px;color:var(--text-primary);letter-spacing:.5px}
.sidebar-subtitle{font-size:11px;color:var(--text-muted);padding-left:42px}
.toc-nav{padding:12px 0;flex:1}
.toc-section-label{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:1.2px;color:var(--text-muted);padding:12px 16px 6px}
.toc-link{display:flex;align-items:center;gap:8px;padding:7px 16px;font-size:12.5px;color:var(--text-secondary);text-decoration:none;transition:all .2s ease;border-left:2px solid transparent;line-height:1.4}
.toc-link:hover{background:var(--bg-card);color:var(--text-primary);border-left-color:var(--accent-teal)}
.toc-link.active{background:rgba(57,211,195,.1);color:var(--accent-teal);border-left-color:var(--accent-teal);font-weight:500}
.toc-link .toc-num{font-size:10px;font-weight:700;color:var(--text-muted);min-width:18px;font-family:'JetBrains Mono',monospace}
.toc-link.sub{padding-left:32px;font-size:12px}
.series-nav{padding:12px 16px;border-top:1px solid var(--border)}
.series-nav-title{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:1px;color:var(--text-muted);margin-bottom:8px}
.series-link{display:block;padding:5px 8px;font-size:11.5px;color:var(--text-secondary);text-decoration:none;border-radius:5px;transition:all .2s;margin-bottom:2px}
.series-link:hover{background:var(--bg-card);color:var(--accent-teal)}
.series-link.current{color:var(--accent-teal);font-weight:600}
.main-content{margin-left:var(--sidebar-width);flex:1;max-width:calc(100vw - var(--sidebar-width))}
.top-header{background:linear-gradient(135deg,#0d1117 0%,#0d1a1f 50%,#0d1117 100%);border-bottom:1px solid var(--border);padding:60px 60px 50px;position:relative;overflow:hidden}
.top-header::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 70% 50%,rgba(57,211,195,.07) 0%,transparent 60%),radial-gradient(ellipse at 20% 80%,rgba(88,166,255,.06) 0%,transparent 50%)}
.header-badge{display:inline-flex;align-items:center;gap:6px;background:rgba(57,211,195,.12);border:1px solid rgba(57,211,195,.3);border-radius:20px;padding:4px 14px;font-size:12px;color:var(--accent-teal);font-weight:500;margin-bottom:18px;font-family:'JetBrains Mono',monospace}
.main-title{font-family:'Sora',sans-serif;font-size:36px;font-weight:800;line-height:1.15;margin-bottom:16px;background:linear-gradient(135deg,#e6edf3 20%,#39d3c3 55%,#58a6ff 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;position:relative}
.header-desc{font-size:15px;color:var(--text-secondary);line-height:1.7;max-width:700px;position:relative}
.header-meta{display:flex;gap:24px;flex-wrap:wrap;margin-top:20px;position:relative}
.meta-chip{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--text-secondary)}
.meta-chip .dot{width:8px;height:8px;border-radius:50%}
.prog-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px;position:relative}
.prog-chip{background:rgba(255,255,255,.04);border:1px solid var(--border);border-radius:6px;padding:3px 10px;font-size:11px;color:var(--text-muted);font-family:'JetBrains Mono',monospace}
.content-area{padding:40px 60px 80px;max-width:1020px}
.section{margin-bottom:64px;scroll-margin-top:30px}
.section-header{display:flex;align-items:flex-start;gap:16px;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid var(--border)}
.section-icon{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;margin-top:2px}
.icon-teal{background:rgba(57,211,195,.15);border:1px solid rgba(57,211,195,.3)}
.icon-blue{background:rgba(88,166,255,.15);border:1px solid rgba(88,166,255,.3)}
.icon-green{background:rgba(63,185,80,.15);border:1px solid rgba(63,185,80,.3)}
.icon-orange{background:rgba(247,129,102,.15);border:1px solid rgba(247,129,102,.3)}
.icon-purple{background:rgba(188,140,255,.15);border:1px solid rgba(188,140,255,.3)}
.icon-yellow{background:rgba(227,179,65,.15);border:1px solid rgba(227,179,65,.3)}
.section-title-wrap h2{font-family:'Sora',sans-serif;font-size:24px;font-weight:700;color:var(--text-primary);line-height:1.2}
.section-title-wrap .section-num{font-size:11px;font-family:'JetBrains Mono',monospace;color:var(--text-muted);font-weight:400;margin-bottom:4px}
.card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;padding:24px;margin-bottom:20px;transition:border-color .2s}
.card:hover{border-color:var(--border-bright)}
.card-title{font-family:'Sora',sans-serif;font-weight:600;font-size:15px;color:var(--text-primary);margin-bottom:12px;display:flex;align-items:center;gap:8px}
p{font-size:14.5px;line-height:1.8;color:var(--text-secondary);margin-bottom:14px}
.callout{border-radius:10px;padding:16px 20px;margin:20px 0;display:flex;gap:14px;align-items:flex-start}
.callout-icon{font-size:18px;margin-top:1px;flex-shrink:0}
.callout-content{flex:1}
.callout-title{font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
.callout-text{font-size:13.5px;line-height:1.7;color:var(--text-secondary)}
.callout.info{background:rgba(88,166,255,.08);border:1px solid rgba(88,166,255,.25)}.callout.info .callout-title{color:var(--accent-blue)}
.callout.success{background:rgba(63,185,80,.08);border:1px solid rgba(63,185,80,.25)}.callout.success .callout-title{color:var(--accent-green)}
.callout.warning{background:rgba(227,179,65,.08);border:1px solid rgba(227,179,65,.3)}.callout.warning .callout-title{color:var(--accent-yellow)}
.callout.danger{background:rgba(247,129,102,.08);border:1px solid rgba(247,129,102,.3)}.callout.danger .callout-title{color:var(--accent-orange)}
.callout.tip{background:rgba(188,140,255,.08);border:1px solid rgba(188,140,255,.25)}.callout.tip .callout-title{color:var(--accent-purple)}
.callout.teal{background:rgba(57,211,195,.08);border:1px solid rgba(57,211,195,.25)}.callout.teal .callout-title{color:var(--accent-teal)}
.code-block{background:#080c10;border:1px solid var(--border);border-radius:10px;overflow:hidden;margin:16px 0}
.code-header{background:var(--bg-secondary);border-bottom:1px solid var(--border);padding:8px 16px;display:flex;align-items:center;justify-content:space-between}
.code-lang{font-size:11px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.8px;font-family:'JetBrains Mono',monospace}
.code-dots{display:flex;gap:5px}.code-dots span{width:10px;height:10px;border-radius:50%}
.dot-red{background:#ff5f56}.dot-ylw{background:#ffbd2e}.dot-grn{background:#27c93f}
.code-body{padding:20px;font-size:12.5px;line-height:1.85;color:#79c0ff;overflow-x:auto;white-space:pre;font-family:'JetBrains Mono',monospace}
.code-body .cmd{color:#3fb950}.code-body .comment{color:#6e7681;font-style:italic}
.code-body .param{color:#ffa657}.code-body .value{color:#a5d6ff}
.code-body .output{color:#8b949e}.code-body .prompt{color:#e3b341}.code-body .hl{color:#39d3c3}
.spec-table{width:100%;border-collapse:collapse;margin:16px 0;font-size:13.5px}
.spec-table th{background:var(--bg-secondary);color:var(--text-secondary);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.5px;padding:10px 16px;text-align:left;border-bottom:2px solid var(--border)}
.spec-table td{padding:11px 16px;border-bottom:1px solid var(--border);color:var(--text-secondary);vertical-align:middle}
.spec-table tr:hover td{background:rgba(255,255,255,.02)}
.badge{display:inline-block;padding:2px 10px;border-radius:20px;font-size:11.5px;font-weight:600;font-family:'JetBrains Mono',monospace}
.badge-blue{background:rgba(88,166,255,.15);color:var(--accent-blue);border:1px solid rgba(88,166,255,.3)}
.badge-green{background:rgba(63,185,80,.15);color:var(--accent-green);border:1px solid rgba(63,185,80,.3)}
.badge-orange{background:rgba(247,129,102,.15);color:var(--accent-orange);border:1px solid rgba(247,129,102,.3)}
.badge-yellow{background:rgba(227,179,65,.15);color:var(--accent-yellow);border:1px solid rgba(227,179,65,.3)}
.badge-teal{background:rgba(57,211,195,.15);color:var(--accent-teal);border:1px solid rgba(57,211,195,.3)}
.badge-purple{background:rgba(188,140,255,.15);color:var(--accent-purple);border:1px solid rgba(188,140,255,.3)}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:16px 0}
.stat-card{background:var(--bg-card);border:1px solid var(--border);border-radius:10px;padding:20px;text-align:center}
.stat-num{font-family:'Sora',sans-serif;font-size:28px;font-weight:800;margin-bottom:4px}
.stat-label{font-size:12px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px}
.step-list{list-style:none;margin:12px 0}
.step-list li{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid rgba(48,54,61,.5);font-size:13.5px;color:var(--text-secondary);line-height:1.6;align-items:flex-start}
.step-list li:last-child{border-bottom:none}
.step-num{width:22px;height:22px;border-radius:6px;background:rgba(57,211,195,.15);border:1px solid rgba(57,211,195,.3);color:var(--accent-teal);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px;font-family:'JetBrains Mono',monospace}
.bullet-list{list-style:none;margin:10px 0}
.bullet-list li{padding:6px 0 6px 20px;position:relative;font-size:13.5px;color:var(--text-secondary);line-height:1.6}
.bullet-list li::before{content:'▸';position:absolute;left:0;color:var(--accent-teal);font-size:11px;top:8px}
h3{font-family:'Sora',sans-serif;font-size:17px;font-weight:600;color:var(--text-primary);margin:24px 0 12px}
h4{font-family:'Sora',sans-serif;font-size:14px;font-weight:600;color:var(--accent-teal);margin:18px 0 8px;text-transform:uppercase;letter-spacing:.5px}
.diagram-wrap{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;padding:24px;margin:20px 0;overflow-x:auto}
.diagram-caption{text-align:center;font-size:12px;color:var(--text-muted);margin-top:12px;font-style:italic}
.mermaid{display:flex;justify-content:center}
.svg-wrap{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;padding:24px;margin:20px 0;overflow-x:auto}
.quiz-card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;padding:22px;margin-bottom:16px}
.quiz-q{font-size:14px;font-weight:600;color:var(--text-primary);margin-bottom:12px}
.quiz-a{display:none;background:rgba(57,211,195,.06);border:1px solid rgba(57,211,195,.2);border-radius:8px;padding:14px 16px;margin-top:10px;font-size:13.5px;color:var(--text-secondary);line-height:1.7}
.quiz-btn{background:rgba(57,211,195,.1);border:1px solid rgba(57,211,195,.3);color:var(--accent-teal);border-radius:6px;padding:6px 14px;font-size:12px;cursor:pointer;font-family:'JetBrains Mono',monospace;transition:all .2s}
.quiz-btn:hover{background:rgba(57,211,195,.2)}
.author-card{background:linear-gradient(135deg,#161b22,#1c2333);border:1px solid var(--border);border-radius:16px;padding:32px;margin-top:40px;position:relative;overflow:hidden}
.author-card::before{content:'';position:absolute;top:-40px;right:-40px;width:180px;height:180px;background:radial-gradient(circle,rgba(57,211,195,.08),transparent 70%);border-radius:50%}
.author-avatar{font-size:48px;margin-bottom:12px}
.author-name{font-family:'Sora',sans-serif;font-size:22px;font-weight:700;color:var(--text-primary);margin-bottom:4px}
.author-title{font-size:13px;color:var(--accent-teal);margin-bottom:16px;font-family:'JetBrains Mono',monospace}
.author-bio{font-size:14px;color:var(--text-secondary);line-height:1.7;margin-bottom:20px}
.tech-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.tech-badge{background:rgba(57,211,195,.1);border:1px solid rgba(57,211,195,.25);color:var(--accent-teal);border-radius:20px;padding:3px 12px;font-size:12px;font-family:'JetBrains Mono',monospace}
.contact-link{display:inline-flex;align-items:center;gap:8px;background:rgba(57,211,195,.1);border:1px solid rgba(57,211,195,.3);color:var(--accent-teal);border-radius:8px;padding:8px 16px;font-size:13px;text-decoration:none;transition:all .2s;margin-bottom:20px}
.contact-link:hover{background:rgba(57,211,195,.2)}
@media(max-width:900px){.sidebar{transform:translateX(-100%)}.main-content{margin-left:0;max-width:100vw}.top-header{padding:30px 20px}.content-area{padding:20px}.grid-2,.grid-3{grid-template-columns:1fr}#reading-progress{left:0}}
</style>
</head>
<body>
<div id="reading-progress"></div>
<!-- SIDEBAR -->
<nav class="sidebar">
<div class="sidebar-header">
<div class="sidebar-logo">
<div class="logo-icon">🔄</div>
<span>ONTAP Replication</span>
</div>
<div class="sidebar-subtitle">SnapMirror · SnapVault · DR</div>
</div>
<div class="toc-nav">
<div class="toc-section-label">Replication Fundamentals</div>
<a class="toc-link" href="#s1"><span class="toc-num">01</span>Replication vs Migration</a>
<a class="toc-link" href="#s2"><span class="toc-num">02</span>Why We Need Replication</a>
<a class="toc-link" href="#s3"><span class="toc-num">03</span>3 Core Replication Modes</a>
<a class="toc-link sub" href="#s3a"><span class="toc-num">↳</span>Synchronous</a>
<a class="toc-link sub" href="#s3b"><span class="toc-num">↳</span>Asynchronous</a>
<a class="toc-link sub" href="#s3c"><span class="toc-num">↳</span>Semi-Synchronous</a>
<a class="toc-link sub" href="#s3d"><span class="toc-num">↳</span>Comparison Table</a>
<div class="toc-section-label">ONTAP SnapMirror</div>
<a class="toc-link" href="#s4"><span class="toc-num">04</span>SnapMirror vs SnapVault</a>
<a class="toc-link" href="#s5"><span class="toc-num">05</span>Replication Types: DP/XDP/TDP/LS</a>
<a class="toc-link sub" href="#s5a"><span class="toc-num">↳</span>Type + Policy Matrix</a>
<a class="toc-link sub" href="#s5b"><span class="toc-num">↳</span>DP vs XDP: Key Differences</a>
<a class="toc-link" href="#s6"><span class="toc-num">06</span>SnapMirror Configuration Steps</a>
<a class="toc-link sub" href="#s6a"><span class="toc-num">↳</span>License Validation</a>
<a class="toc-link sub" href="#s6b"><span class="toc-num">↳</span>Intercluster LIFs</a>
<a class="toc-link sub" href="#s6c"><span class="toc-num">↳</span>Cluster Peering</a>
<a class="toc-link sub" href="#s6d"><span class="toc-num">↳</span>SVM Peering</a>
<a class="toc-link" href="#s7"><span class="toc-num">07</span>Create & Initialize SnapMirror</a>
<a class="toc-link sub" href="#s7a"><span class="toc-num">↳</span>Volume Preparation</a>
<a class="toc-link sub" href="#s7b"><span class="toc-num">↳</span>CLI Walkthrough</a>
<a class="toc-link sub" href="#s7c"><span class="toc-num">↳</span>Throttle & Options</a>
<div class="toc-section-label">Reference</div>
<a class="toc-link" href="#s8"><span class="toc-num">08</span>Command Quick Reference</a>
<a class="toc-link" href="#s9"><span class="toc-num">09</span>Interview Q&A</a>
</div>
<div class="series-nav">
<div class="series-nav-title">ONTAP Tutorial Series</div>
<a class="series-link" href="#" target="_blank">📋 Series Index</a>
<a class="series-link current" href="#">Tutorial — ONTAP Replication</a>
</div>
</nav>
<!-- MAIN -->
<div class="main-content">
<header class="top-header">
<div class="header-badge">🔄 ONTAP Tutorial · Data Replication & SnapMirror</div>
<h1 class="main-title">ONTAP Data Replication & SnapMirror —<br>Sync, Async, SnapVault & DR Configuration</h1>
<p class="header-desc">A comprehensive hands-on guide covering the three core replication modes (synchronous, asynchronous, semi-synchronous), ONTAP-specific SnapMirror types, replication policies, cluster/SVM peering, and end-to-end SnapMirror setup with CLI examples.</p>
<div class="header-meta">
<div class="meta-chip"><span class="dot" style="background:var(--accent-teal)"></span>Replication Modes</div>
<div class="meta-chip"><span class="dot" style="background:var(--accent-blue)"></span>SnapMirror / SnapVault</div>
<div class="meta-chip"><span class="dot" style="background:var(--accent-purple)"></span>Cluster & SVM Peering</div>
<div class="meta-chip"><span class="dot" style="background:var(--accent-orange)"></span>Disaster Recovery</div>
</div>
<div class="prog-chips">
<span class="prog-chip">ONTAP 9.x</span>
<span class="prog-chip">SnapMirror XDP</span>
<span class="prog-chip">SnapVault</span>
<span class="prog-chip">Cluster Peering</span>
<span class="prog-chip">DR / Archiving</span>
</div>
</header>
<div class="content-area">
<!-- SECTION 1 -->
<section class="section" id="s1">
<div class="section-header">
<div class="section-icon icon-teal">📦</div>
<div class="section-title-wrap">
<div class="section-num">SECTION 01</div>
<h2>Replication vs Migration — Know the Difference</h2>
</div>
</div>
<p>Two fundamental data movement operations underpin most storage administration tasks: <strong style="color:var(--accent-teal)">replication</strong> and <strong style="color:var(--accent-blue)">migration</strong>. They are often confused, but serve distinct purposes.</p>
<div class="grid-2">
<div class="card">
<div class="card-title">🔄 Replication</div>
<p>Replication means <em>copying</em> data from a source location to a destination while keeping the original intact. Both source and destination hold the same data simultaneously. Replication can happen within the same cluster (between volumes), between clusters in the same data center, or between geographically separated sites over a WAN link.</p>
<p><strong style="color:var(--accent-teal)">Goal:</strong> Maintain a live secondary copy — for DR, backup archiving, or performance offload.</p>
</div>
<div class="card">
<div class="card-title">🚚 Migration</div>
<p>Migration means <em>moving</em> data from one location to another. Once migration is complete, the destination becomes the new production system and the source is decommissioned or repurposed. A typical use case is hardware refresh — moving data from an older controller to a newer all-flash system as part of a platform upgrade.</p>
<p><strong style="color:var(--accent-blue)">Goal:</strong> Transition workloads to new infrastructure with minimal disruption.</p>
</div>
</div>
<div class="diagram-wrap">
<div class="mermaid">
graph LR
subgraph REP["🔄 REPLICATION"]
direction LR
A1["Source Storage\nVol-A"] -->|"Copy (WAN/LAN)"| B1["Destination Storage\nVol-A (mirror)"]
A1 -.->|"Source still active"| A1
end
subgraph MIG["🚚 MIGRATION"]
direction LR
C1["Old Platform\nVol-B"] -->|"Move data"| D1["New Platform\nVol-B (new production)"]
C1 -.->|"Decommissioned"| C1
end
style REP fill:#0d1117,stroke:#39d3c3,color:#39d3c3
style MIG fill:#0d1117,stroke:#58a6ff,color:#58a6ff
</div>
<div class="diagram-caption">Fig 1 — Replication keeps both copies active; Migration moves the workload permanently.</div>
</div>
</section>
<!-- SECTION 2 -->
<section class="section" id="s2">
<div class="section-header">
<div class="section-icon icon-orange">🏦</div>
<div class="section-title-wrap">
<div class="section-num">SECTION 02</div>
<h2>Why Replication Matters — Business Continuity & DR</h2>
</div>
</div>
<p>Even with fully redundant components — dual controllers, dual fabrics, redundant power supplies — a complete site outage can still take down every system at that location. Natural disasters, prolonged power failures, or large-scale network incidents are real risks that single-site redundancy cannot protect against.</p>
<div class="diagram-wrap">
<svg viewBox="0 0 760 260" xmlns="http://www.w3.org/2000/svg" style="width:100%;font-family:'Inter',sans-serif">
<!-- Production Site -->
<rect x="20" y="20" width="320" height="220" rx="12" fill="#1c2333" stroke="#39d3c3" stroke-width="1.5"/>
<text x="180" y="46" text-anchor="middle" fill="#39d3c3" font-size="12" font-weight="700">🏭 PRODUCTION SITE — Mumbai</text>
<rect x="40" y="60" width="120" height="50" rx="8" fill="#161b22" stroke="#30363d" stroke-width="1"/>
<text x="100" y="80" text-anchor="middle" fill="#e6edf3" font-size="11">App Server</text>
<text x="100" y="96" text-anchor="middle" fill="#8b949e" font-size="10">10.20.1.10</text>
<rect x="180" y="60" width="120" height="50" rx="8" fill="#161b22" stroke="#30363d" stroke-width="1"/>
<text x="240" y="80" text-anchor="middle" fill="#e6edf3" font-size="11">Storage Cluster-A</text>
<text x="240" y="96" text-anchor="middle" fill="#8b949e" font-size="10">10.20.1.20</text>
<!-- Arrow server to storage -->
<line x1="160" y1="85" x2="180" y2="85" stroke="#58a6ff" stroke-width="1.5" marker-end="url(#arr)"/>
<!-- Volume label -->
<rect x="60" y="130" width="240" height="40" rx="6" fill="rgba(57,211,195,0.08)" stroke="rgba(57,211,195,0.3)" stroke-width="1"/>
<text x="180" y="153" text-anchor="middle" fill="#39d3c3" font-size="11">Production Volume: prod-vol1 (10 GB)</text>
<!-- Disaster -->
<text x="180" y="220" text-anchor="middle" fill="#f78166" font-size="11">⚠ Site failure → DR kicks in</text>
<!-- WAN Arrow -->
<line x1="340" y1="130" x2="420" y2="130" stroke="#e3b341" stroke-width="2" stroke-dasharray="6,3" marker-end="url(#arry)"/>
<text x="380" y="122" text-anchor="middle" fill="#e3b341" font-size="10">WAN / ISP</text>
<!-- DR Site -->
<rect x="420" y="20" width="320" height="220" rx="12" fill="#1c2333" stroke="#58a6ff" stroke-width="1.5"/>
<text x="580" y="46" text-anchor="middle" fill="#58a6ff" font-size="12" font-weight="700">🛡 DR SITE — Pune</text>
<rect x="440" y="60" width="120" height="50" rx="8" fill="#161b22" stroke="#30363d" stroke-width="1"/>
<text x="500" y="80" text-anchor="middle" fill="#e6edf3" font-size="11">Storage Cluster-B</text>
<text x="500" y="96" text-anchor="middle" fill="#8b949e" font-size="10">10.30.1.20</text>
<rect x="60+420" y="130" width="240" height="40" rx="6" fill="rgba(88,166,255,0.08)" stroke="rgba(88,166,255,0.3)" stroke-width="1"/>
<rect x="480" y="130" width="240" height="40" rx="6" fill="rgba(88,166,195,0.08)" stroke="rgba(88,166,255,0.3)" stroke-width="1"/>
<text x="600" y="153" text-anchor="middle" fill="#58a6ff" font-size="11">DR Volume: dr-vol1 (SnapMirror copy)</text>
<text x="580" y="220" text-anchor="middle" fill="#3fb950" font-size="11">✓ Failover — business continuity</text>
<defs>
<marker id="arr" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto"><path d="M0,0 L0,6 L8,3 z" fill="#58a6ff"/></marker>
<marker id="arry" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto"><path d="M0,0 L0,6 L8,3 z" fill="#e3b341"/></marker>
</defs>
</svg>
<div class="diagram-caption">Fig 2 — Production and DR sites connected over WAN; SnapMirror keeps the DR volume in sync.</div>
</div>
<div class="callout info">
<div class="callout-icon">💡</div>
<div class="callout-content">
<div class="callout-title">Key Insight</div>
<div class="callout-text">A site-level failure can render all local redundancy useless. Replication to a geographically separate site is the only way to guarantee business continuity when an entire data center goes offline.</div>
</div>
</div>
</section>
<!-- SECTION 3 -->
<section class="section" id="s3">
<div class="section-header">
<div class="section-icon icon-blue">⚡</div>
<div class="section-title-wrap">
<div class="section-num">SECTION 03</div>
<h2>The 3 Core Replication Modes</h2>
</div>
</div>
<p>Regardless of the storage vendor, all remote replication technologies are built on three fundamental modes. Any vendor-specific or proprietary replication feature is essentially a combination or customization of these three.</p>
<div class="grid-3">
<div class="stat-card">
<div class="stat-num" style="color:var(--accent-teal)">Sync</div>
<div class="stat-label">Synchronous</div>
</div>
<div class="stat-card">
<div class="stat-num" style="color:var(--accent-blue)">Async</div>
<div class="stat-label">Asynchronous</div>
</div>
<div class="stat-card">
<div class="stat-num" style="color:var(--accent-purple)">Semi</div>
<div class="stat-label">Semi-Synchronous</div>
</div>
</div>
<!-- 3a Synchronous -->
<h3 id="s3a">⚡ Synchronous Replication</h3>
<p>In synchronous mode, every single write I/O from the host application is replicated to the destination storage <em>before</em> the source acknowledges the write back to the host. The host waits until data exists on both the source and destination volumes.</p>
<div class="diagram-wrap">
<div class="mermaid">
sequenceDiagram
participant H as 🖥 Host / App
participant S as 📦 Source Storage
participant D as 🛡 DR Storage
H->>S: Write I/O: Block A
S->>D: Replicate Block A (WAN)
D-->>S: ACK: Block A stored
S-->>H: ACK: Write complete
H->>S: Write I/O: Block B
S->>D: Replicate Block B (WAN)
D-->>S: ACK: Block B stored
S-->>H: ACK: Write complete
</div>
<div class="diagram-caption">Fig 3 — Synchronous replication: host waits for DR acknowledgement on every write.</div>
</div>
<div class="grid-2">
<div class="callout success">
<div class="callout-icon">✅</div>
<div class="callout-content">
<div class="callout-title">Advantages</div>
<div class="callout-text">Zero RPO (Recovery Point Objective) — source and destination are always identical. Ideal for mission-critical applications such as financial transaction systems, healthcare records, and banking cores.</div>
</div>
</div>
<div class="callout warning">
<div class="callout-icon">⚠️</div>
<div class="callout-content">
<div class="callout-title">Limitations</div>
<div class="callout-text">Distance-sensitive: WAN latency directly impacts host write performance since every I/O waits for a round-trip acknowledgement. Generally suitable for sites within ~100–300 km where latency is low.</div>
</div>
</div>
</div>
<!-- 3b Asynchronous -->
<h3 id="s3b">🕐 Asynchronous Replication</h3>
<p>Asynchronous replication is schedule-driven. The source storage acknowledges writes from the host immediately without waiting for DR. A configured schedule — for example every 5 minutes or every hour — triggers a batch transfer of changed data from source to destination. Only <em>differential</em> (changed) data is transferred at each interval.</p>
<div class="diagram-wrap">
<div class="mermaid">
sequenceDiagram
participant H as 🖥 Host / App
participant S as 📦 Source Storage
participant D as 🛡 DR Storage
H->>S: Write I/O: Block A
S-->>H: ACK immediately
H->>S: Write I/O: Block B
S-->>H: ACK immediately
H->>S: Write I/O: Block C
S-->>H: ACK immediately
Note over S,D: Schedule fires (e.g., every 5 min)
S->>D: Replicate delta: A, B, C
D-->>S: ACK: Transfer complete
</div>
<div class="diagram-caption">Fig 4 — Asynchronous replication: host I/O is never blocked; delta transfers happen on a schedule.</div>
</div>
<div class="callout danger">
<div class="callout-icon">🔴</div>
<div class="callout-content">
<div class="callout-title">RPO Gap Risk</div>
<div class="callout-text">If the source fails between two scheduled transfers, any writes since the last successful replication cycle will be lost. The shorter your schedule interval, the smaller your potential data loss window.</div>
</div>
</div>
<div class="grid-2">
<div class="callout success">
<div class="callout-icon">✅</div>
<div class="callout-content">
<div class="callout-title">Key Advantages</div>
<div class="callout-text">No distance limit — the DR site can be thousands of kilometers away. Replication runs in the background without impacting host I/O performance. Suitable for non-critical workloads or when budget limits WAN bandwidth.</div>
</div>
</div>
<div class="callout warning">
<div class="callout-icon">⚠️</div>
<div class="callout-content">
<div class="callout-title">Limitations</div>
<div class="callout-text">Source and DR are not always identical. There is always a potential data gap equal to the replication schedule interval. Not recommended for zero-RPO requirements.</div>
</div>
</div>
</div>
<!-- 3c Semi-Synchronous -->
<h3 id="s3c">🔀 Semi-Synchronous Replication</h3>
<p>Semi-synchronous is a hybrid mode combining characteristics of both sync and async. The source accepts host writes for a defined time window (e.g., 10 seconds), then pauses, replicates the batch to DR, waits for DR acknowledgement, and only then resumes accepting new writes from the host.</p>
<div class="diagram-wrap">
<div class="mermaid">
sequenceDiagram
participant H as 🖥 Host / App
participant S as 📦 Source Storage
participant D as 🛡 DR Storage
Note over H,S: Window opens (10 sec)
H->>S: Write Block A
S-->>H: ACK
H->>S: Write Block B
S-->>H: ACK
H->>S: Write Block C
S-->>H: ACK
Note over S: Window closes — pause host I/O
S->>D: Replicate batch: A, B, C
D-->>S: ACK: Batch received
S-->>H: Resume — send next batch
Note over H,S: New window opens
</div>
<div class="diagram-caption">Fig 5 — Semi-synchronous: batch window alternates between accepting writes and replicating.</div>
</div>
<div class="callout tip">
<div class="callout-icon">💜</div>
<div class="callout-content">
<div class="callout-title">Note on ONTAP Support</div>
<div class="callout-text">Semi-synchronous was available in ONTAP 7-Mode but is not natively supported in Cluster-Mode (cDOT). Understanding it remains important for conceptual knowledge and interview scenarios, as it forms the basis of other hybrid replication mechanisms.</div>
</div>
</div>
<!-- 3d Comparison Table -->
<h3 id="s3d">📊 Side-by-Side Comparison</h3>
<table class="spec-table">
<thead>
<tr>
<th>Attribute</th>
<th>Synchronous</th>
<th>Asynchronous</th>
<th>Semi-Synchronous</th>
</tr>
</thead>
<tbody>
<tr><td>ACK Mechanism</td><td><span class="badge badge-teal">Per write, waits for DR</span></td><td><span class="badge badge-blue">Immediate, no DR wait</span></td><td><span class="badge badge-purple">Per batch after DR ACK</span></td></tr>
<tr><td>RPO (Data Loss)</td><td>Zero</td><td>Up to schedule interval</td><td>Up to window duration</td></tr>
<tr><td>Host I/O Impact</td><td>High (latency-sensitive)</td><td>None</td><td>Periodic pauses</td></tr>
<tr><td>Distance Limit</td><td>~100–300 km (latency-bound)</td><td>No limit</td><td>Moderate</td></tr>
<tr><td>Use Case</td><td>Critical apps (banking, ERP)</td><td>Non-critical / archival</td><td>Moderate criticality</td></tr>
<tr><td>ONTAP cDOT Support</td><td><span class="badge badge-green">Yes (SnapMirror Sync)</span></td><td><span class="badge badge-green">Yes (SnapMirror Async)</span></td><td><span class="badge badge-orange">7-Mode only</span></td></tr>
</tbody>
</table>
</section>
<!-- SECTION 4 -->
<section class="section" id="s4">
<div class="section-header">
<div class="section-icon icon-green">🗄️</div>
<div class="section-title-wrap">
<div class="section-num">SECTION 04</div>
<h2>SnapMirror vs SnapVault — ONTAP Replication Engines</h2>
</div>
</div>
<p>ONTAP provides two distinct data protection solutions: <strong style="color:var(--accent-teal)">SnapMirror</strong> for replication and disaster recovery, and <strong style="color:var(--accent-blue)">SnapVault</strong> for remote archiving and backup. In ONTAP Cluster-Mode, both are configured through a unified command interface — the differentiation comes from the <em>type</em> and <em>policy</em> combination you choose.</p>
<div class="grid-2">
<div class="card">
<div class="card-title">🔄 SnapMirror</div>
<ul class="bullet-list">
<li>Used for <strong>Disaster Recovery (DR)</strong> — maintains a live replica that can be activated in a failover</li>
<li>Used for <strong>data migration</strong> between ONTAP clusters during hardware refresh or consolidation</li>
<li>Supports synchronous and asynchronous modes</li>
<li>Destination volume mirrors source in near real-time</li>
</ul>
</div>
<div class="card">
<div class="card-title">🗃️ SnapVault</div>
<ul class="bullet-list">
<li>Used for <strong>remote archiving and backup</strong> — not for DR failover</li>
<li>Retains multiple snapshot versions on the destination for point-in-time restore</li>
<li>Allows restoring individual files or volumes from a secondary cluster</li>
<li>Cannot be used as a live DR solution</li>
</ul>
</div>
</div>
<div class="diagram-wrap">
<svg viewBox="0 0 760 200" xmlns="http://www.w3.org/2000/svg" style="width:100%;font-family:'Inter',sans-serif">
<!-- Source -->
<rect x="20" y="40" width="160" height="120" rx="10" fill="#1c2333" stroke="#39d3c3" stroke-width="1.5"/>
<text x="100" y="70" text-anchor="middle" fill="#39d3c3" font-size="12" font-weight="700">Source Cluster</text>
<rect x="40" y="85" width="120" height="32" rx="6" fill="#161b22" stroke="#30363d"/>
<text x="100" y="105" text-anchor="middle" fill="#e6edf3" font-size="11">prod-vol1</text>
<text x="100" y="148" text-anchor="middle" fill="#8b949e" font-size="10">cluster-alpha</text>
<!-- SnapMirror arrow -->
<line x1="180" y1="90" x2="300" y2="90" stroke="#39d3c3" stroke-width="2" marker-end="url(#a1)"/>
<text x="240" y="82" text-anchor="middle" fill="#39d3c3" font-size="10" font-weight="600">SnapMirror (DR)</text>
<!-- DR Cluster -->
<rect x="300" y="40" width="160" height="120" rx="10" fill="#1c2333" stroke="#58a6ff" stroke-width="1.5"/>
<text x="380" y="70" text-anchor="middle" fill="#58a6ff" font-size="12" font-weight="700">DR Cluster</text>
<rect x="320" y="85" width="120" height="32" rx="6" fill="#161b22" stroke="#30363d"/>
<text x="380" y="105" text-anchor="middle" fill="#e6edf3" font-size="11">dr-vol1 (DP)</text>
<text x="380" y="148" text-anchor="middle" fill="#8b949e" font-size="10">cluster-beta</text>
<!-- SnapVault arrow -->
<line x1="180" y1="130" x2="580" y2="130" stroke="#bc8cff" stroke-width="2" stroke-dasharray="5,3" marker-end="url(#a2)"/>
<text x="430" y="120" text-anchor="middle" fill="#bc8cff" font-size="10" font-weight="600">SnapVault (Archival)</text>
<!-- Archive Cluster -->
<rect x="580" y="40" width="160" height="120" rx="10" fill="#1c2333" stroke="#bc8cff" stroke-width="1.5"/>
<text x="660" y="70" text-anchor="middle" fill="#bc8cff" font-size="12" font-weight="700">Archive Cluster</text>
<rect x="600" y="85" width="120" height="32" rx="6" fill="#161b22" stroke="#30363d"/>
<text x="660" y="105" text-anchor="middle" fill="#e6edf3" font-size="11">vault-vol1</text>
<text x="660" y="148" text-anchor="middle" fill="#8b949e" font-size="10">cluster-gamma</text>
<defs>
<marker id="a1" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto"><path d="M0,0 L0,6 L8,3 z" fill="#39d3c3"/></marker>
<marker id="a2" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto"><path d="M0,0 L0,6 L8,3 z" fill="#bc8cff"/></marker>
</defs>
</svg>
<div class="diagram-caption">Fig 6 — SnapMirror for DR replication; SnapVault for remote archiving from the same source.</div>
</div>
</section>
<!-- SECTION 5 -->
<section class="section" id="s5">
<div class="section-header">
<div class="section-icon icon-purple">🧩</div>
<div class="section-title-wrap">
<div class="section-num">SECTION 05</div>
<h2>SnapMirror Relationship Types: DP, XDP, TDP, LS</h2>
</div>
</div>
<p>When creating a SnapMirror relationship in ONTAP, you must specify two parameters: a <strong style="color:var(--accent-teal)">type</strong> and a <strong style="color:var(--accent-blue)">policy</strong>. The combination of type and policy determines whether the outcome is a SnapMirror DR relationship, a SnapVault backup, or a unified replication. Think of it as a matrix.</p>
<div class="grid-2" style="margin-bottom:0">
<div class="card">
<div class="card-title">📋 Four Relationship Types</div>
<ul class="bullet-list">
<li><strong style="color:var(--accent-teal)">DP</strong> — Data Protection (standard, deprecated since ONTAP 9.3)</li>
<li><strong style="color:var(--accent-blue)">XDP</strong> — Extended Data Protection (current recommended type)</li>
<li><strong style="color:var(--accent-purple)">TDP</strong> — Transition Data Protection (7-Mode to cDOT migrations only)</li>
<li><strong style="color:var(--accent-yellow)">LS</strong> — Load Sharing (high-read-workload volume performance)</li>
</ul>
</div>
<div class="card">
<div class="card-title">📜 Available Policies</div>
<ul class="bullet-list">
<li><code style="color:var(--accent-teal)">DPDefault</code> — Standard async SnapMirror</li>
<li><code style="color:var(--accent-teal)">MirrorAllSnapshots</code> — Replicate all local snapshots</li>
<li><code style="color:var(--accent-teal)">MirrorLatest</code> — Replicate only the latest snapshot</li>
<li><code style="color:var(--accent-blue)">XDPDefault</code> — Standard SnapVault backup</li>
<li><code style="color:var(--accent-blue)">MirrorAndVault</code> — Unified replication (DR + backup)</li>
<li><code style="color:var(--accent-purple)">Sync</code> / <code style="color:var(--accent-purple)">StrictSync</code> — Synchronous SnapMirror</li>
</ul>
</div>
</div>
<h3 id="s5a">🧮 Type + Policy Outcome Matrix</h3>
<table class="spec-table">
<thead>
<tr>
<th>Type</th>
<th>Policy</th>
<th>Outcome</th>
<th>Use Case</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="badge badge-orange">DP</span></td>
<td>DPDefault / MirrorAllSnapshots / MirrorLatest</td>
<td><strong>Standard Async SnapMirror</strong></td>
<td>DR (legacy — deprecated in 9.3+)</td>
</tr>
<tr>
<td><span class="badge badge-teal">XDP</span></td>
<td>DPDefault / MirrorAllSnapshots / MirrorLatest</td>
<td><strong>Version-Flexible Async SnapMirror</strong></td>
<td>DR across clusters on different ONTAP versions</td>
</tr>
<tr>
<td><span class="badge badge-teal">XDP</span></td>
<td>XDPDefault</td>
<td><strong>Standard SnapVault</strong></td>
<td>Remote backup / archiving</td>
</tr>
<tr>
<td><span class="badge badge-teal">XDP</span></td>
<td>MirrorAndVault</td>
<td><strong>Unified Replication</strong></td>
<td>DR + backup in one relationship</td>
</tr>
<tr>
<td><span class="badge badge-teal">XDP</span></td>
<td>Sync / StrictSync</td>
<td><strong>Version-Flexible Synchronous SnapMirror</strong></td>
<td>Zero-RPO critical workloads</td>
</tr>
<tr>
<td><span class="badge badge-purple">TDP</span></td>
<td>—</td>
<td><strong>7-Mode to cDOT Migration</strong></td>
<td>Platform transition only</td>
</tr>
<tr>
<td><span class="badge badge-yellow">LS</span></td>
<td>—</td>
<td><strong>Load Sharing Mirror</strong></td>
<td>Root volume / high-read performance</td>
</tr>
</tbody>
</table>
<div class="diagram-wrap">
<div class="mermaid">
flowchart TD
START["Select SnapMirror Type"] --> DP["Type: DP\n(Deprecated ≥ 9.3)"]
START --> XDP["Type: XDP\n(Recommended)"]
START --> TDP["Type: TDP\n(7→C Migration)"]
START --> LS["Type: LS\n(Load Sharing)"]
DP -->|"DPDefault / Mirror*"| DP_OUT["Standard Async\nSnapMirror"]
XDP -->|"DPDefault / Mirror*"| XDP_SM["Version-Flexible\nAsync SnapMirror"]
XDP -->|"XDPDefault"| XDP_SV["Standard\nSnapVault"]
XDP -->|"MirrorAndVault"| XDP_UN["Unified\nReplication"]
XDP -->|"Sync / StrictSync"| XDP_SY["Synchronous\nSnapMirror"]
TDP --> TDP_OUT["7-Mode → cDOT\nData Migration"]
LS --> LS_OUT["Load Sharing\nMirror"]
style DP fill:#2a1a1a,stroke:#f78166,color:#f78166
style XDP fill:#0d1a1a,stroke:#39d3c3,color:#39d3c3
style TDP fill:#1a1a2a,stroke:#bc8cff,color:#bc8cff
style LS fill:#1a1a0d,stroke:#e3b341,color:#e3b341
style DP_OUT fill:#1c2333,stroke:#30363d,color:#8b949e
style XDP_SM fill:#1c2333,stroke:#30363d,color:#8b949e
style XDP_SV fill:#1c2333,stroke:#30363d,color:#8b949e
style XDP_UN fill:#1c2333,stroke:#30363d,color:#8b949e
style XDP_SY fill:#1c2333,stroke:#30363d,color:#8b949e
style TDP_OUT fill:#1c2333,stroke:#30363d,color:#8b949e
style LS_OUT fill:#1c2333,stroke:#30363d,color:#8b949e
</div>
<div class="diagram-caption">Fig 7 — Decision tree: selecting a SnapMirror type and policy determines the replication outcome.</div>
</div>
<h3 id="s5b">⚖️ DP vs XDP — What Changed and Why It Matters</h3>
<div class="grid-2">
<div class="card">
<div class="card-title">🔴 DP (Standard) — Deprecated</div>
<ul class="bullet-list">
<li>Destination ONTAP version must be <strong>equal to or greater than</strong> the source version</li>
<li>Replicating from a newer source to an older destination is not supported</li>
<li>NetApp strongly recommends against using DP for new relationships since ONTAP 9.3</li>
<li>Existing DP relationships continue to work but should be converted to XDP</li>
</ul>
</div>
<div class="card">
<div class="card-title">🟢 XDP (Extended) — Recommended</div>
<ul class="bullet-list">
<li><strong>No version constraint</strong> — source and destination clusters can run different ONTAP versions</li>
<li>Supports all policy combinations including SnapVault and unified replication</li>
<li>Internally uses an enhanced transfer mechanism (block-level differential)</li>
<li>Required from ONTAP 9.3+ for all new replication relationships</li>
</ul>
</div>
</div>
<div class="callout warning">
<div class="callout-icon">⚠️</div>
<div class="callout-content">
<div class="callout-title">Best Practice — Convert Before Upgrading</div>
<div class="callout-text">If you have existing DP-type SnapMirror relationships and plan to upgrade ONTAP beyond 9.3, convert them to XDP first. A future ONTAP release may remove DP support entirely. The conversion procedure does not interrupt or affect data on either the source or destination volume.</div>
</div>
</div>
</section>
<!-- SECTION 6 -->
<section class="section" id="s6">
<div class="section-header">
<div class="section-icon icon-yellow">🔧</div>
<div class="section-title-wrap">
<div class="section-num">SECTION 06</div>
<h2>Pre-Configuration Steps — Setting Up for SnapMirror</h2>
</div>
</div>
<p>Before creating a SnapMirror relationship, four prerequisite steps must be completed on both clusters. Skipping any of these will result in a non-functional or unhealthy replication.</p>
<div class="diagram-wrap">
<div class="mermaid">
flowchart LR
S1["① Validate\nLicenses"]-->S2["② Create\nIntercluster LIFs"]-->S3["③ Establish\nCluster Peering"]-->S4["④ Configure\nSVM Peering"]-->S5["✅ Create\nSnapMirror"]
style S1 fill:#0d1a14,stroke:#3fb950,color:#3fb950
style S2 fill:#0d1117,stroke:#39d3c3,color:#39d3c3
style S3 fill:#0d1117,stroke:#58a6ff,color:#58a6ff
style S4 fill:#0d1117,stroke:#bc8cff,color:#bc8cff
style S5 fill:#0d1a14,stroke:#3fb950,color:#3fb950
</div>
<div class="diagram-caption">Fig 8 — Four mandatory pre-configuration steps before SnapMirror can be created.</div>
</div>
<!-- Step 1 -->
<h3 id="s6a">Step 1 — License Validation</h3>
<p>Both SnapMirror and SnapVault licenses must be active on source and destination clusters. In modern ONTAP bundles, these are typically included by default, but always verify before proceeding.</p>
<div class="code-block">
<div class="code-header"><span class="code-lang">ONTAP CLI — Both Clusters</span><div class="code-dots"><span class="dot-red"></span><span class="dot-ylw"></span><span class="dot-grn"></span></div></div>
<div class="code-body"><span class="comment"># Verify licenses on each cluster</span>
<span class="prompt">cluster-alpha::></span> <span class="cmd">license show</span>
<span class="output"> Package Type Description</span>
<span class="output"> SnapMirror license Data replication</span>
<span class="output"> SnapVault license Backup and archival</span></div>
</div>
<!-- Step 2 -->
<h3 id="s6b">Step 2 — Create Intercluster LIFs</h3>
<p>Intercluster LIFs (Logical Interfaces) are dedicated network endpoints used exclusively for cluster-to-cluster communication. They are owned by the cluster admin SVM, not a data SVM. Best practice is to create at least one intercluster LIF per node.</p>
<div class="callout info">
<div class="callout-icon">ℹ️</div>
<div class="callout-content">
<div class="callout-title">Service Policy</div>
<div class="callout-text">When creating an intercluster LIF, select the <code>default-intercluster</code> service policy — not the default management policy. Using the wrong service policy will prevent cluster peering from functioning.</div>
</div>
</div>
<div class="code-block">
<div class="code-header"><span class="code-lang">ONTAP CLI — cluster-alpha (Source)</span><div class="code-dots"><span class="dot-red"></span><span class="dot-ylw"></span><span class="dot-grn"></span></div></div>
<div class="code-body"><span class="comment"># Check existing intercluster LIFs</span>
<span class="prompt">cluster-alpha::></span> <span class="cmd">network interface show</span> <span class="param">-role</span> <span class="value">intercluster</span>
<span class="comment"># Create intercluster LIF on Node 1</span>
<span class="prompt">cluster-alpha::></span> <span class="cmd">network interface create</span>
<span class="param">-vserver</span> <span class="value">cluster-alpha</span>
<span class="param">-lif</span> <span class="value">ic-lif-n1</span>
<span class="param">-service-policy</span> <span class="value">default-intercluster</span>
<span class="param">-role</span> <span class="value">intercluster</span>
<span class="param">-home-node</span> <span class="value">alpha-node1</span>
<span class="param">-home-port</span> <span class="value">e0e</span>
<span class="param">-address</span> <span class="value">172.16.50.101</span>
<span class="param">-netmask</span> <span class="value">255.255.255.0</span>
<span class="param">-status-admin</span> <span class="value">up</span>
<span class="comment"># Create intercluster LIF on Node 2</span>
<span class="prompt">cluster-alpha::></span> <span class="cmd">network interface create</span>
<span class="param">-vserver</span> <span class="value">cluster-alpha</span>
<span class="param">-lif</span> <span class="value">ic-lif-n2</span>
<span class="param">-service-policy</span> <span class="value">default-intercluster</span>
<span class="param">-role</span> <span class="value">intercluster</span>
<span class="param">-home-node</span> <span class="value">alpha-node2</span>
<span class="param">-home-port</span> <span class="value">e0e</span>
<span class="param">-address</span> <span class="value">172.16.50.102</span>
<span class="param">-netmask</span> <span class="value">255.255.255.0</span>
<span class="param">-status-admin</span> <span class="value">up</span></div>
</div>
<!-- Step 3 -->
<h3 id="s6c">Step 3 — Cluster Peering</h3>
<p>Cluster peering establishes an authenticated, encrypted communication channel between two clusters using their intercluster LIFs. One cluster initiates the peer request with a passphrase; the other accepts it using the same passphrase.</p>
<div class="diagram-wrap">
<div class="mermaid">
sequenceDiagram
participant A as cluster-alpha
participant B as cluster-beta
A->>B: cluster peer create (ic-LIF IPs of alpha, generate-passphrase)
Note over B: Passphrase generated
B->>A: cluster peer create (ic-LIF IPs of beta, enter passphrase)
A-->>B: Authentication successful
B-->>A: Peering status: Available
</div>
<div class="diagram-caption">Fig 9 — Cluster peering handshake: one side generates passphrase, the other accepts it.</div>
</div>
<div class="code-block">
<div class="code-header"><span class="code-lang">ONTAP CLI — Cluster Peering</span><div class="code-dots"><span class="dot-red"></span><span class="dot-ylw"></span><span class="dot-grn"></span></div></div>
<div class="code-body"><span class="comment"># On cluster-beta: initiate peering request</span>
<span class="prompt">cluster-beta::></span> <span class="cmd">cluster peer create</span>
<span class="param">-peer-addrs</span> <span class="value">172.16.50.101,172.16.50.102</span>
<span class="param">-address-family</span> <span class="value">ipv4</span>
<span class="param">-generate-passphrase</span> <span class="value">true</span>
<span class="param">-applications</span> <span class="value">snapmirror</span>
<span class="output"> Passphrase: Bm9N7xq... (note this down)</span>
<span class="comment"># On cluster-alpha: accept the peering request</span>
<span class="prompt">cluster-alpha::></span> <span class="cmd">cluster peer create</span>
<span class="param">-peer-addrs</span> <span class="value">172.16.51.10</span>
<span class="param">-address-family</span> <span class="value">ipv4</span>
<span class="param">-applications</span> <span class="value">snapmirror</span>
<span class="output"> Enter passphrase: ****</span>
<span class="comment"># Verify peering on both clusters</span>
<span class="prompt">cluster-alpha::></span> <span class="cmd">cluster peer show</span>
<span class="output"> Peer Cluster Availability Auth Status</span>
<span class="output"> cluster-beta Available ok</span></div>
</div>
<!-- Step 4 -->
<h3 id="s6d">Step 4 — SVM (vserver) Peering</h3>
<p>Volumes reside inside SVMs (Storage Virtual Machines / vservers). Even after clusters are peered, you must establish a peering relationship between the specific SVMs that will participate in the SnapMirror relationship.</p>
<div class="code-block">
<div class="code-header"><span class="code-lang">ONTAP CLI — SVM Peering</span><div class="code-dots"><span class="dot-red"></span><span class="dot-ylw"></span><span class="dot-grn"></span></div></div>
<div class="code-body"><span class="comment"># On cluster-alpha: initiate SVM peer request</span>
<span class="prompt">cluster-alpha::></span> <span class="cmd">vserver peer create</span>
<span class="param">-vserver</span> <span class="value">svm-prod</span>
<span class="param">-peer-vserver</span> <span class="value">svm-dr</span>
<span class="param">-peer-cluster</span> <span class="value">cluster-beta</span>
<span class="param">-applications</span> <span class="value">snapmirror</span>
<span class="comment"># On cluster-beta: accept the SVM peer request</span>
<span class="prompt">cluster-beta::></span> <span class="cmd">vserver peer accept</span>
<span class="param">-vserver</span> <span class="value">svm-dr</span>
<span class="param">-peer-vserver</span> <span class="value">svm-prod</span>
<span class="comment"># Verify SVM peering</span>
<span class="prompt">cluster-alpha::></span> <span class="cmd">vserver peer show</span>
<span class="output"> Vserver Peer Vserver Peer Cluster Status</span>
<span class="output"> svm-prod svm-dr cluster-beta Peered</span></div>
</div>
</section>
<!-- SECTION 7 -->
<section class="section" id="s7">
<div class="section-header">
<div class="section-icon icon-teal">▶️</div>
<div class="section-title-wrap">
<div class="section-num">SECTION 07</div>
<h2>Creating & Initializing a SnapMirror Relationship</h2>
</div>
</div>
<h3 id="s7a">Volume Preparation</h3>
<p>Before creating the SnapMirror relationship, you need a source volume and a destination (DP-type) volume. A DP volume is write-disabled — it can only receive data through SnapMirror replication. It cannot be directly written to by a host, and cannot be mounted to a junction path until after the baseline transfer completes.</p>
<div class="grid-2">
<div class="card">
<div class="card-title">📁 Source Volume (RW)</div>
<ul class="bullet-list">
<li>Type: <span class="badge badge-green">RW (Read-Write)</span></li>
<li>Hosts the live application data</li>
<li>Mounted at a junction path (e.g., <code>/data/appdata</code>)</li>
<li>Can be any size — destination must be equal or larger</li>
</ul>
</div>
<div class="card">
<div class="card-title">🔒 Destination Volume (DP)</div>
<ul class="bullet-list">
<li>Type: <span class="badge badge-orange">DP (Data Protection)</span></li>
<li>Write-disabled — read-only until failover or clone</li>
<li>Cannot be mounted before baseline transfer completes</li>
<li>Snapshot policy: <code>none</code> (managed by SnapMirror)</li>
</ul>
</div>
</div>
<div class="code-block">
<div class="code-header"><span class="code-lang">ONTAP CLI — Create Source & Destination Volumes</span><div class="code-dots"><span class="dot-red"></span><span class="dot-ylw"></span><span class="dot-grn"></span></div></div>
<div class="code-body"><span class="comment"># On cluster-alpha: create source RW volume</span>
<span class="prompt">cluster-alpha::></span> <span class="cmd">volume create</span>
<span class="param">-vserver</span> <span class="value">svm-prod</span>
<span class="param">-volume</span> <span class="value">app-vol1</span>
<span class="param">-aggregate</span> <span class="value">aggr_node1</span>
<span class="param">-size</span> <span class="value">20g</span>
<span class="param">-security-style</span> <span class="value">ntfs</span>
<span class="param">-snapshot-policy</span> <span class="value">default</span>
<span class="param">-junction-path</span> <span class="value">/appdata</span>
<span class="comment"># On cluster-beta: create destination DP volume</span>
<span class="prompt">cluster-beta::></span> <span class="cmd">volume create</span>
<span class="param">-vserver</span> <span class="value">svm-dr</span>
<span class="param">-volume</span> <span class="value">sm-app-vol1</span>
<span class="param">-aggregate</span> <span class="value">aggr_dr_node1</span>
<span class="param">-size</span> <span class="value">20g</span>
<span class="param">-security-style</span> <span class="value">ntfs</span>
<span class="param">-type</span> <span class="value">DP</span>
<span class="param">-snapshot-policy</span> <span class="value">none</span>
<span class="comment"> # Note: junction-path NOT specified for DP volumes</span></div>
</div>
<div class="callout danger">
<div class="callout-icon">🚨</div>
<div class="callout-content">
<div class="callout-title">Critical — DP Volume Rules</div>
<div class="callout-text">A DP-type volume cannot be mounted to a junction path during creation. Attempting to do so will generate an error: <em>"Only volumes of type read-write can be mounted during creation."</em> Mount the destination volume only after the initial baseline transfer has completed.</div>
</div>
</div>
<h3 id="s7b">Creating the SnapMirror Relationship</h3>
<p>All SnapMirror management commands are run from the <strong>destination cluster</strong>. This is an important operational principle — you pull data to the DR site, not push from production.</p>
<div class="code-block">
<div class="code-header"><span class="code-lang">ONTAP CLI — SnapMirror Create (on cluster-beta / destination)</span><div class="code-dots"><span class="dot-red"></span><span class="dot-ylw"></span><span class="dot-grn"></span></div></div>
<div class="code-body"><span class="comment"># Check existing SnapMirror relationships</span>
<span class="prompt">cluster-beta::></span> <span class="cmd">snapmirror show</span>
<span class="output"> (no entries)</span>
<span class="comment"># Create the SnapMirror relationship</span>
<span class="prompt">cluster-beta::></span> <span class="cmd">snapmirror create</span>
<span class="param">-source-cluster</span> <span class="value">cluster-alpha</span>
<span class="param">-source-vserver</span> <span class="value">svm-prod</span>
<span class="param">-source-volume</span> <span class="value">app-vol1</span>
<span class="param">-destination-cluster</span> <span class="value">cluster-beta</span>
<span class="param">-destination-vserver</span> <span class="value">svm-dr</span>
<span class="param">-destination-volume</span> <span class="value">sm-app-vol1</span>
<span class="param">-type</span> <span class="value">XDP</span>
<span class="param">-policy</span> <span class="value">DPDefault</span>
<span class="param">-schedule</span> <span class="value">5min</span>
<span class="comment"># Verify creation</span>
<span class="prompt">cluster-beta::></span> <span class="cmd">snapmirror show</span>
<span class="output"> Source Destination Type Status Healthy</span>
<span class="output"> cluster-alpha: cluster-beta: XDP Idle true</span>
<span class="output"> svm-prod:app-vol1 svm-dr:sm-app-vol1 Uninitialized</span></div>
</div>
<div class="callout success">
<div class="callout-icon">✅</div>
<div class="callout-content">
<div class="callout-title">Status Check</div>
<div class="callout-text"><strong>Healthy: true</strong> confirms the relationship is correctly configured. Status will show <em>Uninitialized</em> until the baseline transfer is triggered. <strong>Healthy: false</strong> indicates a configuration error that must be resolved before initialization.</div>
</div>
</div>
<h3>Initializing the Relationship (Baseline Transfer)</h3>
<p>The initialize command triggers the first full data copy from source to destination. This is called the <strong>baseline transfer</strong>. All data on the source volume is copied to the destination. Subsequent transfers will only copy changed (differential) blocks.</p>
<div class="code-block">
<div class="code-header"><span class="code-lang">ONTAP CLI — Initialize SnapMirror (Baseline Transfer)</span><div class="code-dots"><span class="dot-red"></span><span class="dot-ylw"></span><span class="dot-grn"></span></div></div>
<div class="code-body"><span class="comment"># Initialize (triggers full baseline copy)</span>
<span class="prompt">cluster-beta::></span> <span class="cmd">snapmirror initialize</span>
<span class="param">-source-cluster</span> <span class="value">cluster-alpha</span>
<span class="param">-source-vserver</span> <span class="value">svm-prod</span>
<span class="param">-source-volume</span> <span class="value">app-vol1</span>
<span class="param">-destination-cluster</span> <span class="value">cluster-beta</span>
<span class="param">-destination-vserver</span> <span class="value">svm-dr</span>
<span class="param">-destination-volume</span> <span class="value">sm-app-vol1</span>
<span class="param">-type</span> <span class="value">XDP</span>
<span class="param">-policy</span> <span class="value">DPDefault</span>
<span class="comment"># Monitor transfer progress</span>
<span class="prompt">cluster-beta::></span> <span class="cmd">snapmirror show</span>
<span class="output"> Status: Transferring (baseline copy in progress)</span>
<span class="output"> Progress: 3.4 GB transferred...</span>
<span class="comment"># After baseline completes</span>
<span class="output"> Status: Idle</span>
<span class="output"> Relationship Type: SnapMirrored</span>
<span class="output"> Healthy: true</span>
<span class="comment"># Mount destination volume after baseline transfer</span>
<span class="prompt">cluster-beta::></span> <span class="cmd">volume mount</span>
<span class="param">-vserver</span> <span class="value">svm-dr</span>
<span class="param">-volume</span> <span class="value">sm-app-vol1</span>
<span class="param">-junction-path</span> <span class="value">/dr-appdata</span></div>
</div>
<h3 id="s7c">Throttle and Transfer Options</h3>
<p>WAN bandwidth is a shared and often expensive resource. SnapMirror's throttle parameter lets you cap the replication bandwidth per relationship so that other traffic (DNS sync, application data, monitoring) is not starved.</p>
<div class="code-block">
<div class="code-header"><span class="code-lang">ONTAP CLI — Throttle Configuration</span><div class="code-dots"><span class="dot-red"></span><span class="dot-ylw"></span><span class="dot-grn"></span></div></div>
<div class="code-body"><span class="comment"># Set throttle (value in KB/s) — e.g., 100 MB/s = 102400 KB/s</span>
<span class="prompt">cluster-beta::></span> <span class="cmd">snapmirror modify</span>
<span class="param">-destination-path</span> <span class="value">svm-dr:sm-app-vol1</span>
<span class="param">-throttle</span> <span class="value">102400</span>
<span class="comment"># To remove throttle limit (use unlimited)</span>
<span class="prompt">cluster-beta::></span> <span class="cmd">snapmirror modify</span>
<span class="param">-destination-path</span> <span class="value">svm-dr:sm-app-vol1</span>
<span class="param">-throttle</span> <span class="value">unlimited</span>
<span class="comment"># Set transfer priority (normal = default, low = less bandwidth)</span>
<span class="prompt">cluster-beta::></span> <span class="cmd">snapmirror modify</span>
<span class="param">-destination-path</span> <span class="value">svm-dr:sm-app-vol1</span>
<span class="param">-transfer-priority</span> <span class="value">low</span></div>
</div>