Repository navigation
Expand file tree
/
Copy pathnetapp-tutorial6.html
More file actions
1327 lines (1194 loc) · 91.6 KB
/
Copy pathnetapp-tutorial6.html
File metadata and controls
1327 lines (1194 loc) · 91.6 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>NetApp ONTAP: Aggregate Expansion, Mirror Aggregates & SVM Architecture</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;
--bg-card-hover: #21283a;
--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;
}
/* ── SIDEBAR ── */
.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-blue), var(--accent-purple));
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: 0.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 0.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-blue); }
.toc-link.active { background: rgba(88,166,255,0.1); color: var(--accent-blue); border-left-color: var(--accent-blue); 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; }
/* ── MAIN ── */
.main-content { margin-left: var(--sidebar-width); flex: 1; max-width: calc(100vw - var(--sidebar-width)); }
.top-header {
background: linear-gradient(135deg, #0d1117 0%, #1a2744 50%, #0d2035 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(88,166,255,0.08) 0%, transparent 60%),
radial-gradient(ellipse at 20% 80%, rgba(63,185,80,0.06) 0%, transparent 50%);
}
.header-badge {
display: inline-flex; align-items: center; gap: 6px;
background: rgba(88,166,255,0.12); border: 1px solid rgba(88,166,255,0.3);
border-radius: 20px; padding: 4px 14px;
font-size: 12px; color: var(--accent-blue); font-weight: 500;
margin-bottom: 18px; font-family: 'JetBrains Mono', monospace;
}
.main-title {
font-family: 'Sora', sans-serif; font-size: 38px; font-weight: 800;
line-height: 1.15; margin-bottom: 16px;
background: linear-gradient(135deg, #e6edf3 30%, #58a6ff 70%, #bc8cff 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: 680px; 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%; }
.content-area { padding: 40px 60px 80px; max-width: 1000px; }
.section { margin-bottom: 60px; 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-blue { background: rgba(88,166,255,0.15); border: 1px solid rgba(88,166,255,0.3); }
.icon-green { background: rgba(63,185,80,0.15); border: 1px solid rgba(63,185,80,0.3); }
.icon-orange { background: rgba(247,129,102,0.15); border: 1px solid rgba(247,129,102,0.3); }
.icon-purple { background: rgba(188,140,255,0.15); border: 1px solid rgba(188,140,255,0.3); }
.icon-teal { background: rgba(57,211,195,0.15); border: 1px solid rgba(57,211,195,0.3); }
.icon-yellow { background: rgba(227,179,65,0.15); border: 1px solid rgba(227,179,65,0.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 0.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: 0.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,0.08); border: 1px solid rgba(88,166,255,0.25); }
.callout.info .callout-title { color: var(--accent-blue); }
.callout.success { background: rgba(63,185,80,0.08); border: 1px solid rgba(63,185,80,0.25); }
.callout.success .callout-title { color: var(--accent-green); }
.callout.warning { background: rgba(227,179,65,0.08); border: 1px solid rgba(227,179,65,0.3); }
.callout.warning .callout-title { color: var(--accent-yellow); }
.callout.danger { background: rgba(247,129,102,0.08); border: 1px solid rgba(247,129,102,0.3); }
.callout.danger .callout-title { color: var(--accent-orange); }
.callout.tip { background: rgba(188,140,255,0.08); border: 1px solid rgba(188,140,255,0.25); }
.callout.tip .callout-title { color: var(--accent-purple); }
.code-block { background: #0a0e13; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 16px 0; font-family: 'JetBrains Mono', monospace; }
.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: 0.8px; }
.code-dots { display: flex; gap: 5px; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; } .dot-yellow-c { background: #ffbd2e; } .dot-green-c { background: #27c93f; }
.code-body { padding: 20px; font-size: 13px; line-height: 1.8; color: #79c0ff; overflow-x: auto; white-space: pre; }
.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; }
.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: 0.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,0.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,0.15); color: var(--accent-blue); border: 1px solid rgba(88,166,255,0.3); }
.badge-green { background: rgba(63,185,80,0.15); color: var(--accent-green); border: 1px solid rgba(63,185,80,0.3); }
.badge-orange { background: rgba(247,129,102,0.15); color: var(--accent-orange); border: 1px solid rgba(247,129,102,0.3); }
.badge-purple { background: rgba(188,140,255,0.15); color: var(--accent-purple); border: 1px solid rgba(188,140,255,0.3); }
.badge-yellow { background: rgba(227,179,65,0.15); color: var(--accent-yellow); border: 1px solid rgba(227,179,65,0.3); }
.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: 0.5px; }
.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-blue); 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-blue); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.mermaid-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px 20px 16px; margin: 20px 0; overflow-x: auto; }
.diagram-caption { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 10px; font-style: italic; }
.svg-diagram { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin: 20px 0; overflow-x: auto; }
.qa-block { background: var(--bg-card); border: 1px solid rgba(188,140,255,0.3); border-radius: 12px; padding: 20px 24px; margin: 16px 0; }
.qa-q { font-size: 14px; font-weight: 600; color: var(--accent-purple); margin-bottom: 10px; display: flex; gap: 10px; }
.qa-a { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; padding-left: 26px; }
.qa-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; }
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.hl { background: rgba(88,166,255,0.12); color: var(--accent-blue); padding: 1px 6px; border-radius: 4px; font-size: 13.5px; font-family: 'JetBrains Mono', monospace; }
/* Aggregate expansion visual */
.aggr-expand-vis { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; margin: 20px 0; }
.rg-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; min-width: 120px; flex: 1; text-align: center; }
.rg-block.highlight { border-color: rgba(88,166,255,0.5); background: rgba(88,166,255,0.06); }
.rg-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 10px; }
.disk-row { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-bottom: 6px; }
.disk-chip { width: 22px; height: 22px; border-radius: 4px; font-size: 9px; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.disk-data-c { background: rgba(88,166,255,0.2); border: 1px solid rgba(88,166,255,0.4); color: var(--accent-blue); }
.disk-parity { background: rgba(247,129,102,0.2); border: 1px solid rgba(247,129,102,0.4); color: var(--accent-orange); }
.disk-new { background: rgba(63,185,80,0.2); border: 1px solid rgba(63,185,80,0.4); color: var(--accent-green); }
.rg-label { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
/* Mirror plex visual */
.plex-container { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.plex-box { border-radius: 12px; padding: 20px; border: 2px solid; }
.plex-original { border-color: rgba(88,166,255,0.5); background: rgba(88,166,255,0.05); }
.plex-mirror { border-color: rgba(63,185,80,0.5); background: rgba(63,185,80,0.05); }
.plex-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.plex-original .plex-title { color: var(--accent-blue); }
.plex-mirror .plex-title { color: var(--accent-green); }
/* SVM type cards */
.svm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0; }
.svm-card { border-radius: 12px; padding: 20px; border: 1px solid; }
.svm-admin { border-color: rgba(88,166,255,0.4); background: rgba(88,166,255,0.05); }
.svm-node { border-color: rgba(63,185,80,0.4); background: rgba(63,185,80,0.05); }
.svm-data { border-color: rgba(188,140,255,0.4); background: rgba(188,140,255,0.05); }
.svm-system { border-color: rgba(227,179,65,0.4); background: rgba(227,179,65,0.05); }
.svm-icon { font-size: 24px; margin-bottom: 10px; }
.svm-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.svm-admin .svm-name { color: var(--accent-blue); }
.svm-node .svm-name { color: var(--accent-green); }
.svm-data .svm-name { color: var(--accent-purple); }
.svm-system .svm-name { color: var(--accent-yellow); }
.svm-desc { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }
.svm-count { font-size: 11px; font-family: 'JetBrains Mono', monospace; padding: 2px 8px; border-radius: 4px; display: inline-block; }
.svm-admin .svm-count { background: rgba(88,166,255,0.15); color: var(--accent-blue); }
.svm-node .svm-count { background: rgba(63,185,80,0.15); color: var(--accent-green); }
.svm-data .svm-count { background: rgba(188,140,255,0.15); color: var(--accent-purple); }
.svm-system .svm-count { background: rgba(227,179,65,0.15); color: var(--accent-yellow); }
/* scrub timeline */
.scrub-timeline { display: flex; align-items: center; gap: 0; margin: 20px 0; overflow-x: auto; padding-bottom: 8px; }
.scrub-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; min-width: 130px; text-align: center; flex-shrink: 0; }
.scrub-arrow { color: var(--text-muted); font-size: 18px; padding: 0 8px; flex-shrink: 0; }
.scrub-step-icon { font-size: 20px; margin-bottom: 6px; }
.scrub-step-label { font-size: 11.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.scrub-step-sub { font-size: 10.5px; color: var(--text-muted); line-height: 1.4; }
/* space breakdown */
.space-bar-container { margin: 20px 0; }
.space-bar { display: flex; height: 48px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-bright); }
.space-seg { display: flex; align-items: center; justify-content: center; font-size: 10px; font-family: 'JetBrains Mono', monospace; font-weight: 700; flex-direction: column; gap: 2px; }
.seg-meta { background: rgba(247,129,102,0.3); color: var(--accent-orange); width: 10%; }
.seg-parity { background: rgba(227,179,65,0.3); color: var(--accent-yellow); width: 15%; }
.seg-snap { background: rgba(188,140,255,0.3); color: var(--accent-purple); width: 10%; }
.seg-usable { background: rgba(88,166,255,0.3); color: var(--accent-blue); flex: 1; }
.space-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }
/* tech badges */
.tech-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
#reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple)); z-index: 9999; width: 0%; transition: width 0.1s; }
.author-section { background: linear-gradient(135deg, #161b22, #1c2333); border: 1px solid var(--border); border-radius: 16px; padding: 36px; margin-top: 60px; }
.author-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); display: flex; align-items: center; justify-content: center; font-size: 26px; border: 3px solid rgba(88,166,255,0.3); margin-bottom: 14px; }
.author-name { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.author-title { font-size: 13px; color: var(--accent-blue); margin-bottom: 12px; font-weight: 500; }
.author-bio { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; }
.contact-card { background: rgba(88,166,255,0.06); border: 1px solid rgba(88,166,255,0.25); border-radius: 10px; padding: 14px 20px; margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.contact-text { font-size: 13.5px; color: var(--text-secondary); }
.contact-text a { color: var(--accent-blue); text-decoration: none; font-weight: 500; }
@media (max-width: 900px) {
.sidebar { display: none; }
.main-content { margin-left: 0; max-width: 100vw; }
.top-header { padding: 30px 20px; }
.content-area { padding: 20px; }
.grid-3, .svm-grid, .plex-container { grid-template-columns: 1fr; }
.main-title { font-size: 26px; }
}
</style>
</head>
<body>
<div id="reading-progress"></div>
<!-- SIDEBAR -->
<aside class="sidebar">
<div class="sidebar-header">
<div class="sidebar-logo">
<div class="logo-icon">🗄️</div>
<span>NetApp ONTAP</span>
</div>
<div class="sidebar-subtitle">Tutorial 6 · Condensed</div>
</div>
<nav class="toc-nav">
<div class="toc-section-label">Overview</div>
<a href="#intro" class="toc-link active"><span class="toc-num">00</span> Introduction</a>
<div class="toc-section-label">Aggregate Management</div>
<a href="#disk-node-ownership" class="toc-link"><span class="toc-num">01</span> Disk Ownership & Spare Pools</a>
<a href="#aggr-expansion" class="toc-link"><span class="toc-num">02</span> Expanding Aggregates</a>
<a href="#aggr-ops" class="toc-link"><span class="toc-num">03</span> Aggregate Lifecycle Ops</a>
<a href="#scrub" class="toc-link"><span class="toc-num">04</span> RAID Scrub & Media Scrub</a>
<a href="#space-model" class="toc-link"><span class="toc-num">05</span> Aggregate Space Model</a>
<div class="toc-section-label">Mirror Aggregates</div>
<a href="#mirror-intro" class="toc-link"><span class="toc-num">06</span> Mirror Aggregate Concepts</a>
<a href="#mirror-ops" class="toc-link"><span class="toc-num">07</span> Mirror Aggregate Operations</a>
<div class="toc-section-label">SVM Architecture</div>
<a href="#svm-intro" class="toc-link"><span class="toc-num">08</span> SVM / vServer Overview</a>
<a href="#7mode-vs-cmode" class="toc-link"><span class="toc-num">09</span> 7-Mode vs Cluster-Mode</a>
<div class="toc-section-label">Reference</div>
<a href="#interview-qa" class="toc-link"><span class="toc-num">10</span> Interview Q&A</a>
<a href="#author" class="toc-link"><span class="toc-num">11</span> About the Author</a>
</nav>
</aside>
<!-- MAIN -->
<main class="main-content">
<header class="top-header">
<div class="header-badge">📚 ONTAP Storage · Tutorial 6</div>
<h1 class="main-title">Aggregate Expansion, Mirror Aggregates<br>& SVM Architecture</h1>
<p class="header-desc">
A focused deep-dive into NetApp ONTAP aggregate lifecycle management — RAID group expansion strategies, disk scrubbing, mirror aggregate architecture, and the foundational role of Storage Virtual Machines.
</p>
<div class="header-meta">
<div class="meta-chip"><span class="dot" style="background:var(--accent-blue)"></span> Intermediate–Advanced</div>
<div class="meta-chip"><span class="dot" style="background:var(--accent-green)"></span> ONTAP 9.x</div>
<div class="meta-chip"><span class="dot" style="background:var(--accent-purple)"></span> RAID-DP & RAID-TEC</div>
<div class="meta-chip"><span class="dot" style="background:var(--accent-yellow)"></span> SVM / vServer</div>
</div>
</header>
<div class="content-area">
<!-- ═══ SECTION 0: INTRO ═══ -->
<section class="section" id="intro">
<div class="section-header">
<div class="section-icon icon-blue">🎯</div>
<div class="section-title-wrap">
<div class="section-num">SECTION 00</div>
<h2>What You Will Learn</h2>
</div>
</div>
<p>This tutorial covers three core ONTAP operational pillars every storage engineer must master:</p>
<div class="grid-3">
<div class="stat-card">
<div class="stat-num" style="color:var(--accent-blue)">RAID</div>
<div class="stat-label">Group Expansion Strategies</div>
</div>
<div class="stat-card">
<div class="stat-num" style="color:var(--accent-green)">Mirror</div>
<div class="stat-label">Aggregate Architecture</div>
</div>
<div class="stat-card">
<div class="stat-num" style="color:var(--accent-purple)">SVM</div>
<div class="stat-label">Virtual Server Design</div>
</div>
</div>
</section>
<div class="divider"></div>
<!-- ═══ SECTION 1: DISK OWNERSHIP ═══ -->
<section class="section" id="disk-node-ownership">
<div class="section-header">
<div class="section-icon icon-orange">🔑</div>
<div class="section-title-wrap">
<div class="section-num">SECTION 01</div>
<h2>Disk Ownership & Node-Level Spare Pools</h2>
</div>
</div>
<p>Every physical disk in an ONTAP cluster is <strong style="color:var(--text-primary)">owned by exactly one node</strong>. Spare disks are node-specific — to expand an aggregate on <span class="hl">stor-node-01</span>, every disk added must belong to that node's spare pool. Cross-node disk assignment is not permitted without first transferring ownership.</p>
<div class="mermaid-wrap">
<div class="mermaid">
flowchart LR
subgraph Cluster["🏢 ONTAP Cluster"]
subgraph N1["stor-node-01"]
S1["Spare Pool\n(pool-0)\nDisks: 1.0–1.15"]
A1["aggr_data01\n(Active)"]
end
subgraph N2["stor-node-02"]
S2["Spare Pool\n(pool-0)\nDisks: 2.0–2.15"]
A2["aggr_data02\n(Active)"]
end
end
S1 -->|add-disks| A1
S2 -->|add-disks| A2
S2 -. "❌ Cross-node\nnot allowed" .-> A1
style Cluster fill:#1c2333,stroke:#30363d,color:#e6edf3
style N1 fill:#161b22,stroke:#58a6ff,color:#e6edf3
style N2 fill:#161b22,stroke:#3fb950,color:#e6edf3
</div>
<div class="diagram-caption">Figure 1 — Disk ownership is strictly per-node. Cross-node disk assignment to aggregates is not permitted.</div>
</div>
<div class="code-block">
<div class="code-header"><span class="code-lang">ONTAP CLI — Reassign Disk Ownership</span><div class="code-dots"><span class="dot-red"></span><span class="dot-yellow-c"></span><span class="dot-green-c"></span></div></div>
<div class="code-body"><span class="comment"># Step 1: Remove ownership from current node</span>
<span class="cmd">disk remove-ownership</span> <span class="param">-disk</span> <span class="value">2.0,2.1,2.2,2.3,2.4,2.5</span>
<span class="comment"># Step 2: Assign to target node</span>
<span class="cmd">disk assign</span> <span class="param">-disk-list</span> <span class="value">2.0,2.1,2.2,2.3,2.4,2.5</span> <span class="param">-owner</span> <span class="value">stor-node-01</span>
<span class="comment"># Verify spare pool update</span>
<span class="cmd">storage aggregate show-spare-disks</span> <span class="param">-original-owner</span> <span class="value">stor-node-01</span></div>
</div>
<div class="callout warning">
<div class="callout-icon">⚠️</div>
<div class="callout-content">
<div class="callout-title">Warning</div>
<div class="callout-text">Removing disk ownership temporarily reduces spare capacity. Always verify the remaining spare count meets your protection threshold before proceeding. Never leave a node with zero spares.</div>
</div>
</div>
</section>
<div class="divider"></div>
<!-- ═══ SECTION 2: AGGREGATE EXPANSION ═══ -->
<section class="section" id="aggr-expansion">
<div class="section-header">
<div class="section-icon icon-blue">📈</div>
<div class="section-title-wrap">
<div class="section-num">SECTION 02</div>
<h2>Expanding an Aggregate — Three Strategies</h2>
</div>
</div>
<p>When an aggregate approaches capacity, you have three expansion paths. Choosing the right one depends on your current RAID group layout and available spare inventory.</p>
<div class="mermaid-wrap">
<div class="mermaid">
flowchart TD
Start([🔍 Aggregate Near Capacity]) --> Check{Check Spare\nDisk Count}
Check -->|≥ RG-size spares| Strategy1["✅ Strategy 1\nCreate New RAID Group\n(raidgroup: new)"]
Check -->|Few spares only| Strategy2["⚠️ Strategy 2\nAdd to Existing RG\n(raidgroup: rg0 / rg1)"]
Check -->|Spares match rg-slots| Strategy3["🔄 Strategy 3\nDistribute Automatically\n(raidgroup: all)"]
Strategy1 --> Result1["New RGn created\nFull parity overhead applies"]
Strategy2 --> ModRG["Increase max-raidgroup-size\nvia aggr modify first"]
ModRG --> Result2["Disk added as data disk\nNo new parity overhead"]
Strategy3 --> Result3["ONTAP auto-fills slots\nExcess disks → spare pool"]
style Start fill:#1c2333,stroke:#58a6ff,color:#e6edf3
style Check fill:#1c2333,stroke:#e3b341,color:#e6edf3
style Strategy1 fill:#1c2333,stroke:#3fb950,color:#e6edf3
style Strategy2 fill:#1c2333,stroke:#f78166,color:#e6edf3
style Strategy3 fill:#1c2333,stroke:#bc8cff,color:#e6edf3
</div>
<div class="diagram-caption">Figure 2 — Decision tree for selecting the right aggregate expansion strategy based on spare availability.</div>
</div>
<h3>Strategy 1 — Create a New RAID Group</h3>
<p>When spare inventory is healthy, creating a new RAID group is the cleanest approach. Maintain the same disk count as existing groups to avoid performance imbalance.</p>
<div class="aggr-expand-vis">
<div class="rg-block">
<div class="rg-title">RG0 (existing)</div>
<div class="disk-row">
<div class="disk-chip disk-parity">P</div><div class="disk-chip disk-parity">DP</div>
<div class="disk-chip disk-data-c">D</div><div class="disk-chip disk-data-c">D</div>
<div class="disk-chip disk-data-c">D</div><div class="disk-chip disk-data-c">D</div>
</div>
<div class="rg-label">6 disks · RAID-DP</div>
</div>
<div class="rg-block">
<div class="rg-title">RG1 (existing)</div>
<div class="disk-row">
<div class="disk-chip disk-parity">P</div><div class="disk-chip disk-parity">DP</div>
<div class="disk-chip disk-data-c">D</div><div class="disk-chip disk-data-c">D</div>
<div class="disk-chip disk-data-c">D</div><div class="disk-chip disk-data-c">D</div>
</div>
<div class="rg-label">6 disks · RAID-DP</div>
</div>
<div class="rg-block highlight">
<div class="rg-title">RG2 (new ✨)</div>
<div class="disk-row">
<div class="disk-chip disk-parity">P</div><div class="disk-chip disk-parity">DP</div>
<div class="disk-chip disk-new">D</div><div class="disk-chip disk-new">D</div>
<div class="disk-chip disk-new">D</div><div class="disk-chip disk-new">D</div>
</div>
<div class="rg-label">6 disks (4 data + 2 parity)</div>
</div>
</div>
<div class="code-block">
<div class="code-header"><span class="code-lang">Strategy 1 — New RAID Group</span><div class="code-dots"><span class="dot-red"></span><span class="dot-yellow-c"></span><span class="dot-green-c"></span></div></div>
<div class="code-body"><span class="cmd">storage aggregate add-disks</span> \
<span class="param">-aggregate</span> <span class="value">aggr_data01</span> \
<span class="param">-diskcount</span> <span class="value">6</span> \
<span class="param">-disktype</span> <span class="value">SSD</span> \
<span class="param">-raidgroup</span> <span class="value">new</span>
<span class="cmd">storage aggregate show-status</span> <span class="param">-aggregate</span> <span class="value">aggr_data01</span></div>
</div>
<h3>Strategy 2 — Add to an Existing RAID Group</h3>
<p>When spare inventory is critically low, expand the <span class="hl">max-raidgroup-size</span> and insert disks into existing groups as data disks (no parity overhead). This is an emergency measure — the size increase is <strong>irreversible</strong>.</p>
<div class="callout danger">
<div class="callout-icon">🚨</div>
<div class="callout-content">
<div class="callout-title">Critical — Irreversible Action</div>
<div class="callout-text">Increasing the max-raidgroup-size cannot be undone. Disks also cannot be removed from an aggregate once added — the only path back is destroying the entire aggregate.</div>
</div>
</div>
<div class="code-block">
<div class="code-header"><span class="code-lang">Strategy 2 — Expand Existing RG</span><div class="code-dots"><span class="dot-red"></span><span class="dot-yellow-c"></span><span class="dot-green-c"></span></div></div>
<div class="code-body"><span class="comment"># Step 1: Increase RAID group size (irreversible)</span>
<span class="cmd">storage aggregate modify</span> <span class="param">-aggregate</span> <span class="value">aggr_data01</span> <span class="param">-maxraidsize</span> <span class="value">7</span>
<span class="comment"># Step 2: Add one disk to rg0 as a data disk</span>
<span class="cmd">storage aggregate add-disks</span> \
<span class="param">-aggregate</span> <span class="value">aggr_data01</span> \
<span class="param">-diskcount</span> <span class="value">1</span> \
<span class="param">-raidgroup</span> <span class="value">rg0</span></div>
</div>
<h3>Strategy 3 — Auto-Distribute (all)</h3>
<p>The <span class="hl">raidgroup: all</span> option lets ONTAP identify available slots across all RAID groups and fill them automatically. Any disks exceeding available slots are returned to the spare pool.</p>
<div class="code-block">
<div class="code-header"><span class="code-lang">Strategy 3 — Auto-Distribute</span><div class="code-dots"><span class="dot-red"></span><span class="dot-yellow-c"></span><span class="dot-green-c"></span></div></div>
<div class="code-body"><span class="cmd">storage aggregate add-disks</span> \
<span class="param">-aggregate</span> <span class="value">aggr_data01</span> \
<span class="param">-diskcount</span> <span class="value">4</span> \
<span class="param">-raidgroup</span> <span class="value">all</span>
<span class="output"># Warning: 4 disks specified, but only 2 slots available.
# 2 disks will be added; 2 disks returned to spare pool.</span></div>
</div>
<div class="card">
<div class="card-title">📊 Strategy Comparison</div>
<table class="spec-table">
<thead><tr><th>Strategy</th><th>When to Use</th><th>Parity Overhead?</th><th>Risk</th></tr></thead>
<tbody>
<tr><td><span class="badge badge-blue">new</span></td><td>Ample spares available</td><td>Yes — 2 disks (P + DP)</td><td><span class="badge badge-green">Low</span></td></tr>
<tr><td><span class="badge badge-orange">rg#</span></td><td>Emergency / low spare scenario</td><td>No — data disk only</td><td><span class="badge badge-orange">Medium</span></td></tr>
<tr><td><span class="badge badge-purple">all</span></td><td>Re-balancing after ad-hoc changes</td><td>Only if new RG needed</td><td><span class="badge badge-green">Low</span></td></tr>
</tbody>
</table>
</div>
<div class="callout tip">
<div class="callout-icon">💡</div>
<div class="callout-content">
<div class="callout-title">RAID Group Sizing Guidelines</div>
<div class="callout-text">For production aggregates, a RAID group size between <strong>17 and 23 disks</strong> gives the best balance of performance and protection. Under 17 wastes parity overhead; above 23 increases rebuild time risk.</div>
</div>
</div>
</section>
<div class="divider"></div>
<!-- ═══ SECTION 3: AGGREGATE LIFECYCLE ═══ -->
<section class="section" id="aggr-ops">
<div class="section-header">
<div class="section-icon icon-yellow">⚙️</div>
<div class="section-title-wrap">
<div class="section-num">SECTION 03</div>
<h2>Aggregate Lifecycle Operations</h2>
</div>
</div>
<div class="card">
<div class="card-title">📋 Key Aggregate Operations</div>
<table class="spec-table">
<thead><tr><th>Operation</th><th>Command</th><th>Downtime?</th><th>Notes</th></tr></thead>
<tbody>
<tr><td>Rename</td><td><span class="hl">aggr rename</span></td><td>None</td><td>Purely metadata — non-disruptive</td></tr>
<tr><td>Bring Online</td><td><span class="hl">aggr online</span></td><td>None</td><td>Re-mounts offline aggregate</td></tr>
<tr><td>Take Offline</td><td><span class="hl">aggr offline</span></td><td>Yes</td><td>Required before deletion; I/O stops</td></tr>
<tr><td>Delete</td><td><span class="hl">aggr delete</span></td><td>Permanent</td><td>Irreversible; must be offline first</td></tr>
<tr><td>Modify Settings</td><td><span class="hl">aggr modify</span></td><td>None</td><td>Change RAID type, RAID group size (increase only)</td></tr>
</tbody>
</table>
</div>
<h3>Reallocation — Block-Level Defragmentation</h3>
<p>Over time, block allocation within an aggregate becomes fragmented. <strong>Reallocation</strong> reorganizes blocks so used blocks are contiguous, improving sequential I/O performance.</p>
<div class="svg-diagram">
<svg viewBox="0 0 760 220" xmlns="http://www.w3.org/2000/svg" width="100%">
<defs>
<marker id="arrowR" markerWidth="8" markerHeight="7" refX="7" refY="3.5" orient="auto">
<polygon points="0 0, 8 3.5, 0 7" fill="#8b949e"/>
</marker>
<marker id="arrowRG" markerWidth="8" markerHeight="7" refX="7" refY="3.5" orient="auto">
<polygon points="0 0, 8 3.5, 0 7" fill="#3fb950"/>
</marker>
</defs>
<!-- BEFORE box -->
<rect x="10" y="10" width="330" height="130" rx="10" fill="#1c2333" stroke="#f78166" stroke-width="1.5"/>
<text x="175" y="32" fill="#f78166" font-size="12" font-weight="700" text-anchor="middle" font-family="'Inter',sans-serif" letter-spacing="0.5">BEFORE REALLOCATION</text>
<line x1="10" y1="40" x2="340" y2="40" stroke="#f78166" stroke-width="1" stroke-dasharray="4,3"/>
<!-- Before: row 1 blocks (Used=blue, Free=dark) -->
<!-- Block widths: Used=40, Free=36, alternating, 7 blocks, gap=4, start x=18 -->
<!-- B1 Used -->
<rect x="18" y="55" width="40" height="34" rx="5" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1.2"/>
<text x="38" y="77" fill="#e6edf3" font-size="11" font-weight="600" text-anchor="middle" font-family="'Inter',sans-serif">Used</text>
<line x1="58" y1="72" x2="64" y2="72" stroke="#8b949e" stroke-width="1.5" marker-end="url(#arrowR)"/>
<!-- B2 Free -->
<rect x="64" y="55" width="40" height="34" rx="5" fill="rgba(110,118,129,0.18)" stroke="#484f58" stroke-width="1.2"/>
<text x="84" y="77" fill="#e6edf3" font-size="11" font-weight="600" text-anchor="middle" font-family="'Inter',sans-serif">Free</text>
<line x1="104" y1="72" x2="110" y2="72" stroke="#8b949e" stroke-width="1.5" marker-end="url(#arrowR)"/>
<!-- B3 Used -->
<rect x="110" y="55" width="40" height="34" rx="5" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1.2"/>
<text x="130" y="77" fill="#e6edf3" font-size="11" font-weight="600" text-anchor="middle" font-family="'Inter',sans-serif">Used</text>
<line x1="150" y1="72" x2="156" y2="72" stroke="#8b949e" stroke-width="1.5" marker-end="url(#arrowR)"/>
<!-- B4 Free -->
<rect x="156" y="55" width="40" height="34" rx="5" fill="rgba(110,118,129,0.18)" stroke="#484f58" stroke-width="1.2"/>
<text x="176" y="77" fill="#e6edf3" font-size="11" font-weight="600" text-anchor="middle" font-family="'Inter',sans-serif">Free</text>
<line x1="196" y1="72" x2="202" y2="72" stroke="#8b949e" stroke-width="1.5" marker-end="url(#arrowR)"/>
<!-- B5 Used -->
<rect x="202" y="55" width="40" height="34" rx="5" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1.2"/>
<text x="222" y="77" fill="#e6edf3" font-size="11" font-weight="600" text-anchor="middle" font-family="'Inter',sans-serif">Used</text>
<line x1="242" y1="72" x2="248" y2="72" stroke="#8b949e" stroke-width="1.5" marker-end="url(#arrowR)"/>
<!-- B6 Free -->
<rect x="248" y="55" width="40" height="34" rx="5" fill="rgba(110,118,129,0.18)" stroke="#484f58" stroke-width="1.2"/>
<text x="268" y="77" fill="#e6edf3" font-size="11" font-weight="600" text-anchor="middle" font-family="'Inter',sans-serif">Free</text>
<line x1="288" y1="72" x2="294" y2="72" stroke="#8b949e" stroke-width="1.5" marker-end="url(#arrowR)"/>
<!-- B7 Used -->
<rect x="294" y="55" width="40" height="34" rx="5" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1.2"/>
<text x="314" y="77" fill="#e6edf3" font-size="11" font-weight="600" text-anchor="middle" font-family="'Inter',sans-serif">Used</text>
<!-- Before legend -->
<rect x="60" y="105" width="12" height="12" rx="3" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1"/>
<text x="76" y="116" fill="#8b949e" font-size="10" font-family="'Inter',sans-serif">Used blocks</text>
<rect x="155" y="105" width="12" height="12" rx="3" fill="rgba(110,118,129,0.18)" stroke="#484f58" stroke-width="1"/>
<text x="171" y="116" fill="#8b949e" font-size="10" font-family="'Inter',sans-serif">Free gaps (fragmented)</text>
<!-- Centre arrow with label -->
<line x1="345" y1="75" x2="400" y2="75" stroke="#e3b341" stroke-width="2" marker-end="url(#arrowRG)"/>
<text x="372" y="63" fill="#e3b341" font-size="10" font-weight="700" text-anchor="middle" font-family="'Inter',sans-serif">aggr reallocation</text>
<text x="372" y="74" fill="#8b949e" font-size="9" text-anchor="middle" font-family="'Inter',sans-serif">(background scan)</text>
<!-- AFTER box -->
<rect x="405" y="10" width="345" height="130" rx="10" fill="#1c2333" stroke="#3fb950" stroke-width="1.5"/>
<text x="577" y="32" fill="#3fb950" font-size="12" font-weight="700" text-anchor="middle" font-family="'Inter',sans-serif" letter-spacing="0.5">AFTER REALLOCATION</text>
<line x1="405" y1="40" x2="750" y2="40" stroke="#3fb950" stroke-width="1" stroke-dasharray="4,3"/>
<!-- After: 4 Used, 3 Free, contiguous -->
<!-- A1 Used -->
<rect x="413" y="55" width="40" height="34" rx="5" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1.2"/>
<text x="433" y="77" fill="#e6edf3" font-size="11" font-weight="600" text-anchor="middle" font-family="'Inter',sans-serif">Used</text>
<line x1="453" y1="72" x2="459" y2="72" stroke="#8b949e" stroke-width="1.5" marker-end="url(#arrowR)"/>
<!-- A2 Used -->
<rect x="459" y="55" width="40" height="34" rx="5" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1.2"/>
<text x="479" y="77" fill="#e6edf3" font-size="11" font-weight="600" text-anchor="middle" font-family="'Inter',sans-serif">Used</text>
<line x1="499" y1="72" x2="505" y2="72" stroke="#8b949e" stroke-width="1.5" marker-end="url(#arrowR)"/>
<!-- A3 Used -->
<rect x="505" y="55" width="40" height="34" rx="5" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1.2"/>
<text x="525" y="77" fill="#e6edf3" font-size="11" font-weight="600" text-anchor="middle" font-family="'Inter',sans-serif">Used</text>
<line x1="545" y1="72" x2="551" y2="72" stroke="#8b949e" stroke-width="1.5" marker-end="url(#arrowR)"/>
<!-- A4 Used -->
<rect x="551" y="55" width="40" height="34" rx="5" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1.2"/>
<text x="571" y="77" fill="#e6edf3" font-size="11" font-weight="600" text-anchor="middle" font-family="'Inter',sans-serif">Used</text>
<line x1="591" y1="72" x2="597" y2="72" stroke="#8b949e" stroke-width="1.5" marker-end="url(#arrowR)"/>
<!-- A5 Free -->
<rect x="597" y="55" width="40" height="34" rx="5" fill="rgba(63,185,80,0.15)" stroke="#3fb950" stroke-width="1.2"/>
<text x="617" y="77" fill="#e6edf3" font-size="11" font-weight="600" text-anchor="middle" font-family="'Inter',sans-serif">Free</text>
<line x1="637" y1="72" x2="643" y2="72" stroke="#8b949e" stroke-width="1.5" marker-end="url(#arrowR)"/>
<!-- A6 Free -->
<rect x="643" y="55" width="40" height="34" rx="5" fill="rgba(63,185,80,0.15)" stroke="#3fb950" stroke-width="1.2"/>
<text x="663" y="77" fill="#e6edf3" font-size="11" font-weight="600" text-anchor="middle" font-family="'Inter',sans-serif">Free</text>
<line x1="683" y1="72" x2="689" y2="72" stroke="#8b949e" stroke-width="1.5" marker-end="url(#arrowR)"/>
<!-- A7 Free -->
<rect x="689" y="55" width="40" height="34" rx="5" fill="rgba(63,185,80,0.15)" stroke="#3fb950" stroke-width="1.2"/>
<text x="709" y="77" fill="#e6edf3" font-size="11" font-weight="600" text-anchor="middle" font-family="'Inter',sans-serif">Free</text>
<!-- After legend -->
<rect x="450" y="105" width="12" height="12" rx="3" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1"/>
<text x="466" y="116" fill="#8b949e" font-size="10" font-family="'Inter',sans-serif">Contiguous used</text>
<rect x="580" y="105" width="12" height="12" rx="3" fill="rgba(63,185,80,0.15)" stroke="#3fb950" stroke-width="1"/>
<text x="596" y="116" fill="#8b949e" font-size="10" font-family="'Inter',sans-serif">Consolidated free space</text>
<!-- Bottom note -->
<rect x="200" y="153" width="360" height="26" rx="6" fill="rgba(57,211,195,0.08)" stroke="rgba(57,211,195,0.3)" stroke-width="1"/>
<text x="380" y="171" fill="#39d3c3" font-size="11" text-anchor="middle" font-family="'Inter',sans-serif">✓ Sequential I/O performance improves after consolidation</text>
</svg>
<div class="diagram-caption">Figure 3 — Reallocation consolidates fragmented blocks, improving sequential I/O performance similar to disk defragmentation.</div>
</div>
<h3>Relocation — Moving an Aggregate Between Nodes</h3>
<p>Within an HA pair, you can non-disruptively move an aggregate from one node to its partner using <span class="hl">aggr relocation</span>. Disk ownership transfers automatically. Clients experience zero disruption.</p>
<div class="svg-diagram">
<svg viewBox="0 0 720 200" xmlns="http://www.w3.org/2000/svg" width="100%">
<rect x="20" y="30" width="200" height="140" rx="10" fill="#161b22" stroke="#58a6ff" stroke-width="2"/>
<rect x="20" y="30" width="200" height="34" rx="10" fill="rgba(88,166,255,0.15)"/>
<rect x="20" y="54" width="200" height="10" rx="0" fill="rgba(88,166,255,0.15)"/>
<text x="120" y="53" fill="#58a6ff" font-size="13" font-weight="700" text-anchor="middle" font-family="'Inter',sans-serif">stor-node-01</text>
<rect x="36" y="76" width="168" height="24" rx="6" fill="rgba(88,166,255,0.12)" stroke="rgba(88,166,255,0.3)" stroke-width="1"/>
<text x="120" y="93" fill="#58a6ff" font-size="12" text-anchor="middle" font-family="monospace">aggr_data01 ✓ active</text>
<rect x="36" y="108" width="168" height="24" rx="6" fill="rgba(88,166,255,0.12)" stroke="rgba(88,166,255,0.3)" stroke-width="1"/>
<text x="120" y="125" fill="#58a6ff" font-size="12" text-anchor="middle" font-family="monospace">aggr_data02 ✓ active</text>
<text x="120" y="158" fill="#6e7681" font-size="10" text-anchor="middle" font-family="sans-serif">⚙️ Scheduled Maintenance</text>
<line x1="225" y1="100" x2="330" y2="100" stroke="#e3b341" stroke-width="2" marker-end="url(#arrowY)"/>
<text x="277" y="90" fill="#e3b341" font-size="10" text-anchor="middle" font-family="sans-serif" font-weight="600">aggr relocation</text>
<text x="277" y="102" fill="#e3b341" font-size="10" text-anchor="middle" font-family="sans-serif">start →</text>
<rect x="335" y="30" width="200" height="140" rx="10" fill="#161b22" stroke="#3fb950" stroke-width="2"/>
<rect x="335" y="30" width="200" height="34" rx="10" fill="rgba(63,185,80,0.15)"/>
<rect x="335" y="54" width="200" height="10" rx="0" fill="rgba(63,185,80,0.15)"/>
<text x="435" y="53" fill="#3fb950" font-size="13" font-weight="700" text-anchor="middle" font-family="'Inter',sans-serif">stor-node-02</text>
<rect x="351" y="76" width="168" height="24" rx="6" fill="rgba(63,185,80,0.12)" stroke="rgba(63,185,80,0.3)" stroke-width="1"/>
<text x="435" y="93" fill="#3fb950" font-size="12" text-anchor="middle" font-family="monospace">aggr_data01 ↗ relocated</text>
<rect x="351" y="108" width="168" height="24" rx="6" fill="rgba(63,185,80,0.12)" stroke="rgba(63,185,80,0.3)" stroke-width="1"/>
<text x="435" y="125" fill="#3fb950" font-size="12" text-anchor="middle" font-family="monospace">aggr_data02 ↗ relocated</text>
<text x="435" y="158" fill="#3fb950" font-size="10" text-anchor="middle" font-family="sans-serif">✓ Clients continue I/O</text>
<line x1="540" y1="100" x2="610" y2="100" stroke="#bc8cff" stroke-width="2" marker-end="url(#arrowP)"/>
<text x="650" y="82" fill="#bc8cff" font-size="10" text-anchor="middle" font-family="sans-serif" font-weight="600">Maintenance</text>
<text x="650" y="94" fill="#bc8cff" font-size="10" text-anchor="middle" font-family="sans-serif">complete</text>
<text x="650" y="106" fill="#bc8cff" font-size="10" text-anchor="middle" font-family="sans-serif">↩ relocate back</text>
<rect x="240" y="148" width="230" height="28" rx="6" fill="rgba(57,211,195,0.08)" stroke="rgba(57,211,195,0.3)" stroke-width="1"/>
<text x="355" y="167" fill="#39d3c3" font-size="11" text-anchor="middle" font-family="sans-serif">🔒 Zero client disruption throughout</text>
<defs>
<marker id="arrowY" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto"><path d="M0,0 L0,6 L8,3 z" fill="#e3b341"/></marker>
<marker id="arrowP" 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">Figure 4 — Aggregate relocation is non-disruptive. Clients experience no interruption while aggregates move between HA pair nodes. Disk ownership transfers automatically.</div>
</div>
<div class="callout info">
<div class="callout-icon">ℹ️</div>
<div class="callout-content">
<div class="callout-title">Relocation Boundaries</div>
<div class="callout-text">Aggregate relocation only works between nodes in the <strong>same HA pair</strong>. You cannot relocate an aggregate to a node in a different HA pair. The SFO (Storage Failover) mechanism handles this during planned and unplanned failover scenarios.</div>
</div>
</div>
<div class="code-block">
<div class="code-header"><span class="code-lang">ONTAP CLI · Relocation</span><div class="code-dots"><span class="dot-red"></span><span class="dot-yellow-c"></span><span class="dot-green-c"></span></div></div>
<div class="code-body"><span class="cmd">storage aggregate relocation start</span> \
<span class="param">-node</span> <span class="value">stor-node-01</span> \
<span class="param">-destination</span> <span class="value">stor-node-02</span> \
<span class="param">-aggregate-list</span> <span class="value">aggr_data01</span>
<span class="cmd">storage aggregate relocation show</span></div>
</div>
</section>
<div class="divider"></div>
<!-- ═══ SECTION 4: SCRUB ═══ -->
<section class="section" id="scrub">
<div class="section-header">
<div class="section-icon icon-purple">🔬</div>
<div class="section-title-wrap">
<div class="section-num">SECTION 04</div>
<h2>RAID Scrub & Media Scrub</h2>
</div>
</div>
<p>Disk drives accumulate <strong style="color:var(--text-primary)">bad sectors</strong> over time. ONTAP addresses this through two complementary background scanning processes.</p>
<div class="svg-diagram">
<svg viewBox="0 0 760 260" xmlns="http://www.w3.org/2000/svg" width="100%">
<defs>
<marker id="arrowBlue" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto"><polygon points="0 0, 10 3.5, 0 7" fill="#58a6ff"/></marker>
<marker id="arrowGreen" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto"><polygon points="0 0, 10 3.5, 0 7" fill="#3fb950"/></marker>
</defs>
<!-- Disk Before -->
<rect x="30" y="10" width="180" height="200" rx="10" fill="#161b22" stroke="#30363d" stroke-width="1.5"/>
<text x="120" y="32" fill="#e6edf3" font-size="13" font-weight="700" text-anchor="middle" font-family="'Inter',sans-serif">Disk (Before Scrub)</text>
<line x1="40" y1="55" x2="200" y2="55" stroke="#30363d" stroke-width="1" stroke-dasharray="4,3"/>
<line x1="40" y1="100" x2="200" y2="100" stroke="#30363d" stroke-width="1" stroke-dasharray="4,3"/>
<line x1="40" y1="145" x2="200" y2="145" stroke="#30363d" stroke-width="1" stroke-dasharray="4,3"/>
<!-- Row 1 -->
<text x="42" y="78" fill="#6e7681" font-size="9" font-family="monospace">Track 0</text>
<rect x="80" y="62" width="22" height="16" rx="3" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1"/><text x="91" y="74" fill="#58a6ff" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<rect x="108" y="62" width="22" height="16" rx="3" fill="rgba(247,129,102,0.35)" stroke="#f78166" stroke-width="1.5"/><text x="119" y="74" fill="#f78166" font-size="11" text-anchor="middle" font-family="monospace">✗</text>
<rect x="136" y="62" width="22" height="16" rx="3" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1"/><text x="147" y="74" fill="#58a6ff" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<rect x="164" y="62" width="22" height="16" rx="3" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1"/><text x="175" y="74" fill="#58a6ff" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<!-- Row 2 -->
<text x="42" y="124" fill="#6e7681" font-size="9" font-family="monospace">Track 1</text>
<rect x="80" y="108" width="22" height="16" rx="3" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1"/><text x="91" y="120" fill="#58a6ff" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<rect x="108" y="108" width="22" height="16" rx="3" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1"/><text x="119" y="120" fill="#58a6ff" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<rect x="136" y="108" width="22" height="16" rx="3" fill="rgba(247,129,102,0.35)" stroke="#f78166" stroke-width="1.5"/><text x="147" y="120" fill="#f78166" font-size="11" text-anchor="middle" font-family="monospace">✗</text>
<rect x="164" y="108" width="22" height="16" rx="3" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1"/><text x="175" y="120" fill="#58a6ff" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<!-- Row 3 -->
<text x="42" y="168" fill="#6e7681" font-size="9" font-family="monospace">Track 2</text>
<rect x="80" y="152" width="22" height="16" rx="3" fill="rgba(247,129,102,0.35)" stroke="#f78166" stroke-width="1.5"/><text x="91" y="164" fill="#f78166" font-size="11" text-anchor="middle" font-family="monospace">✗</text>
<rect x="108" y="152" width="22" height="16" rx="3" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1"/><text x="119" y="164" fill="#58a6ff" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<rect x="136" y="152" width="22" height="16" rx="3" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1"/><text x="147" y="164" fill="#58a6ff" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<rect x="164" y="152" width="22" height="16" rx="3" fill="rgba(88,166,255,0.25)" stroke="#58a6ff" stroke-width="1"/><text x="175" y="164" fill="#58a6ff" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<rect x="52" y="188" width="136" height="18" rx="4" fill="rgba(247,129,102,0.15)" stroke="rgba(247,129,102,0.4)" stroke-width="1"/>
<text x="120" y="201" fill="#f78166" font-size="10" font-weight="600" text-anchor="middle" font-family="sans-serif">3 Bad Sectors Detected</text>
<!-- Scrub Process -->
<line x1="215" y1="110" x2="290" y2="110" stroke="#58a6ff" stroke-width="2" marker-end="url(#arrowBlue)"/>
<rect x="295" y="65" width="130" height="90" rx="10" fill="#161b22" stroke="rgba(88,166,255,0.4)" stroke-width="1.5"/>
<text x="360" y="90" fill="#e3b341" font-size="13" text-anchor="middle" font-family="monospace">⚙️</text>
<text x="360" y="108" fill="#e6edf3" font-size="11" font-weight="700" text-anchor="middle" font-family="sans-serif">RAID Scrub</text>
<text x="360" y="122" fill="#8b949e" font-size="9.5" text-anchor="middle" font-family="sans-serif">Reads parity stripe</text>
<text x="360" y="134" fill="#8b949e" font-size="9.5" text-anchor="middle" font-family="sans-serif">Reconstructs data</text>
<text x="360" y="146" fill="#8b949e" font-size="9.5" text-anchor="middle" font-family="sans-serif">Writes to healthy block</text>
<line x1="430" y1="110" x2="500" y2="110" stroke="#3fb950" stroke-width="2" marker-end="url(#arrowGreen)"/>
<!-- Disk After -->
<rect x="505" y="10" width="180" height="200" rx="10" fill="#161b22" stroke="#3fb950" stroke-width="2"/>
<text x="595" y="32" fill="#3fb950" font-size="13" font-weight="700" text-anchor="middle" font-family="'Inter',sans-serif">Disk (After Scrub)</text>
<line x1="515" y1="55" x2="675" y2="55" stroke="#30363d" stroke-width="1" stroke-dasharray="4,3"/>
<line x1="515" y1="100" x2="675" y2="100" stroke="#30363d" stroke-width="1" stroke-dasharray="4,3"/>
<line x1="515" y1="145" x2="675" y2="145" stroke="#30363d" stroke-width="1" stroke-dasharray="4,3"/>
<text x="517" y="78" fill="#6e7681" font-size="9" font-family="monospace">Track 0</text>
<rect x="555" y="62" width="22" height="16" rx="3" fill="rgba(63,185,80,0.25)" stroke="#3fb950" stroke-width="1"/><text x="566" y="74" fill="#3fb950" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<rect x="583" y="62" width="22" height="16" rx="3" fill="rgba(63,185,80,0.35)" stroke="#3fb950" stroke-width="1.5"/><text x="594" y="74" fill="#3fb950" font-size="9" text-anchor="middle" font-family="monospace">✓</text>
<rect x="611" y="62" width="22" height="16" rx="3" fill="rgba(63,185,80,0.25)" stroke="#3fb950" stroke-width="1"/><text x="622" y="74" fill="#3fb950" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<rect x="639" y="62" width="22" height="16" rx="3" fill="rgba(63,185,80,0.25)" stroke="#3fb950" stroke-width="1"/><text x="650" y="74" fill="#3fb950" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<text x="517" y="124" fill="#6e7681" font-size="9" font-family="monospace">Track 1</text>
<rect x="555" y="108" width="22" height="16" rx="3" fill="rgba(63,185,80,0.25)" stroke="#3fb950" stroke-width="1"/><text x="566" y="120" fill="#3fb950" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<rect x="583" y="108" width="22" height="16" rx="3" fill="rgba(63,185,80,0.25)" stroke="#3fb950" stroke-width="1"/><text x="594" y="120" fill="#3fb950" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<rect x="611" y="108" width="22" height="16" rx="3" fill="rgba(63,185,80,0.35)" stroke="#3fb950" stroke-width="1.5"/><text x="622" y="120" fill="#3fb950" font-size="9" text-anchor="middle" font-family="monospace">✓</text>
<rect x="639" y="108" width="22" height="16" rx="3" fill="rgba(63,185,80,0.25)" stroke="#3fb950" stroke-width="1"/><text x="650" y="120" fill="#3fb950" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<text x="517" y="168" fill="#6e7681" font-size="9" font-family="monospace">Track 2</text>
<rect x="555" y="152" width="22" height="16" rx="3" fill="rgba(63,185,80,0.35)" stroke="#3fb950" stroke-width="1.5"/><text x="566" y="164" fill="#3fb950" font-size="9" text-anchor="middle" font-family="monospace">✓</text>
<rect x="583" y="152" width="22" height="16" rx="3" fill="rgba(63,185,80,0.25)" stroke="#3fb950" stroke-width="1"/><text x="594" y="164" fill="#3fb950" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<rect x="611" y="152" width="22" height="16" rx="3" fill="rgba(63,185,80,0.25)" stroke="#3fb950" stroke-width="1"/><text x="622" y="164" fill="#3fb950" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<rect x="639" y="152" width="22" height="16" rx="3" fill="rgba(63,185,80,0.25)" stroke="#3fb950" stroke-width="1"/><text x="650" y="164" fill="#3fb950" font-size="9" text-anchor="middle" font-family="monospace">OK</text>
<rect x="527" y="188" width="136" height="18" rx="4" fill="rgba(63,185,80,0.15)" stroke="rgba(63,185,80,0.4)" stroke-width="1"/>
<text x="595" y="201" fill="#3fb950" font-size="10" font-weight="600" text-anchor="middle" font-family="sans-serif">Data Recovered ✓</text>
<!-- Legend -->
<g transform="translate(230, 225)">
<rect x="0" y="0" width="12" height="12" rx="2" fill="rgba(247,129,102,0.4)" stroke="#f78166"/><text x="17" y="10" fill="#8b949e" font-size="10" font-family="sans-serif">Bad / Unreadable Sector</text>
<rect x="160" y="0" width="12" height="12" rx="2" fill="rgba(88,166,255,0.3)" stroke="#58a6ff"/><text x="177" y="10" fill="#8b949e" font-size="10" font-family="sans-serif">Healthy Sector</text>
<rect x="300" y="0" width="12" height="12" rx="2" fill="rgba(63,185,80,0.35)" stroke="#3fb950" stroke-width="1.5"/><text x="317" y="10" fill="#8b949e" font-size="10" font-family="sans-serif">Recovered (✓)</text>
</g>
</svg>
<div class="diagram-caption">Figure 5 — RAID Scrub scans each disk track, identifies unreadable sectors (✗), reconstructs data from parity stripes, and writes recovered data back to healthy sectors (✓).</div>
</div>
<div class="card">
<div class="card-title">📋 RAID Scrub vs Media Scrub</div>
<table class="spec-table">
<thead><tr><th>Attribute</th><th>RAID Scrub</th><th>Media Scrub</th></tr></thead>
<tbody>
<tr><td>Scope</td><td>Aggregates, plexes, RAID groups</td><td>Aggregates + spare drives</td></tr>
<tr><td>Error Type</td><td>Hardware + media errors</td><td>Media errors only</td></tr>
<tr><td>Scheduling</td><td>Manual or admin-scheduled</td><td>Always-on background</td></tr>
<tr><td>Includes Spares?</td><td>No</td><td>Yes</td></tr>
<tr><td>Enabled by Default?</td><td>Admin-scheduled</td><td>Yes — factory default</td></tr>
</tbody>
</table>
</div>
<div class="code-block">
<div class="code-header"><span class="code-lang">ONTAP CLI · Scrub Management</span><div class="code-dots"><span class="dot-red"></span><span class="dot-yellow-c"></span><span class="dot-green-c"></span></div></div>
<div class="code-body"><span class="cmd">storage aggregate scrub</span> <span class="param">-aggregate</span> <span class="value">aggr_data01</span> <span class="param">-action</span> <span class="value">start</span>
<span class="cmd">storage aggregate scrub</span> <span class="param">-aggregate</span> <span class="value">aggr_data01</span> <span class="param">-action</span> <span class="value">status</span>
<span class="cmd">storage aggregate scrub</span> <span class="param">-aggregate</span> <span class="value">aggr_data01</span> <span class="param">-action</span> <span class="value">suspend</span>
<span class="comment"># Schedule scrub every Friday at 23:00; set low performance impact</span>
<span class="cmd">storage raid-options modify</span> <span class="param">-node</span> <span class="value">*</span> <span class="param">-name</span> <span class="value">raid.scrub.schedule</span> <span class="param">-value</span> <span class="value">"Fri@23"</span>
<span class="cmd">storage raid-options modify</span> <span class="param">-node</span> <span class="value">*</span> <span class="param">-name</span> <span class="value">raid.scrub.perf_impact</span> <span class="param">-value</span> <span class="value">low</span></div>
</div>
<h3>Pre-Fail: Proactive Disk Replacement</h3>
<p>When ONTAP detects a rising bad-sector count, it triggers <strong>pre-fail</strong> — copying data from the degrading disk to a spare before marking it failed. This avoids a full RAID reconstruction.</p>
<div class="scrub-timeline">
<div class="scrub-step"><div class="scrub-step-icon">📊</div><div class="scrub-step-label">Rising Bad Sectors</div><div class="scrub-step-sub">Threshold exceeded</div></div>
<div class="scrub-arrow">→</div>
<div class="scrub-step"><div class="scrub-step-icon">🔄</div><div class="scrub-step-label">Pre-Fail Triggered</div><div class="scrub-step-sub">Data copies to spare</div></div>
<div class="scrub-arrow">→</div>
<div class="scrub-step"><div class="scrub-step-icon">✅</div><div class="scrub-step-label">Copy Complete</div><div class="scrub-step-sub">Spare now active in RG</div></div>
<div class="scrub-arrow">→</div>
<div class="scrub-step"><div class="scrub-step-icon">🗑️</div><div class="scrub-step-label">Drive Marked Failed</div><div class="scrub-step-sub">No parity reconstruction</div></div>
</div>
<div class="diagram-caption">Figure 6 — Pre-fail sequence: graceful, zero-disruption disk retirement compared to sudden failure.</div>
</section>
<div class="divider"></div>
<!-- ═══ SECTION 5: SPACE MODEL ═══ -->
<section class="section" id="space-model">
<div class="section-header">
<div class="section-icon icon-teal">📐</div>
<div class="section-title-wrap">
<div class="section-num">SECTION 05</div>
<h2>Aggregate Space Consumption Model</h2>
</div>
</div>
<p>Raw disk capacity passes through several overhead layers before becoming usable storage for volumes. Understanding this prevents capacity planning surprises.</p>
<div class="space-bar-container">
<p style="font-size:12px; color:var(--text-muted); margin-bottom:8px; font-family:monospace;">Capacity breakdown — 20 × 2 TB SAS drives</p>
<div class="space-bar">
<div class="space-seg seg-meta"><span>Disk</span><span>Meta</span></div>
<div class="space-seg seg-parity"><span>Parity</span><span>+ DP</span></div>
<div class="space-seg seg-snap"><span>Aggr</span><span>Reserve</span></div>
<div class="space-seg seg-usable"><span>Usable Aggregate Capacity</span></div>
</div>
<div class="space-legend">
<div class="legend-item"><div class="legend-dot" style="background:rgba(247,129,102,0.6)"></div>Disk firmware & metadata (~10%/disk)</div>
<div class="legend-item"><div class="legend-dot" style="background:rgba(227,179,65,0.6)"></div>RAID parity + double-parity (2 disks/RG)</div>
<div class="legend-item"><div class="legend-dot" style="background:rgba(188,140,255,0.6)"></div>Aggregate internal reserve (default 10%)</div>
<div class="legend-item"><div class="legend-dot" style="background:rgba(88,166,255,0.6)"></div>Available for volume provisioning</div>
</div>
</div>
<div class="code-block">
<div class="code-header"><span class="code-lang">ONTAP CLI · Space Analysis</span><div class="code-dots"><span class="dot-red"></span><span class="dot-yellow-c"></span><span class="dot-green-c"></span></div></div>
<div class="code-body"><span class="cmd">storage aggregate show-space</span> <span class="param">-aggregate</span> <span class="value">aggr_data01</span>
<span class="output"># Aggregate : aggr_data01
# Volumes : 1.80 TB
# Snapshot Reserve: 200 GB
# Aggregate Meta : 45 GB
# Total Used : 2.05 TB
# Total Available : 3.12 TB</span></div>
</div>
</section>
<div class="divider"></div>
<!-- ═══ SECTION 6: MIRROR AGGREGATE ═══ -->
<section class="section" id="mirror-intro">
<div class="section-header">
<div class="section-icon icon-green">🔀</div>
<div class="section-title-wrap">
<div class="section-num">SECTION 06</div>
<h2>Mirror Aggregates — Concept & Architecture</h2>
</div>
</div>
<p>A <strong style="color:var(--text-primary)">mirror aggregate</strong> synchronously duplicates all data across two independent sets of disks called <em>plexes</em>. If one disk shelf becomes unavailable, the aggregate continues from its surviving plex — zero data loss, zero downtime. Mirror aggregates are primarily used in <strong>MetroCluster</strong> configurations where HA pair nodes sit in separate data centers.</p>
<div class="mermaid-wrap">
<div class="mermaid">
flowchart TB
subgraph DC1["🏢 Data Center A (Primary Site)"]
N1["stor-node-01"]
Shelf1["Disk Shelf A\n(Pool 0 · 24 drives)"]
N1 --- Shelf1
end
subgraph DC2["🏢 Data Center B (Secondary Site)"]
N2["stor-node-02"]
Shelf2["Disk Shelf B\n(Pool 1 · 24 drives)"]
N2 --- Shelf2
end
N1 <-->|"HA Interconnect"| N2
Shelf1 -->|"Original Plex\n(Plex 0)"| MA["🔀 Mirror Aggregate\naggr_mirror01"]
Shelf2 -->|"Mirror Plex\n(Plex 1)"| MA
MA -->|"Active I/O"| Clients["👥 Clients / Servers"]
style DC1 fill:#1c2333,stroke:#58a6ff,color:#e6edf3
style DC2 fill:#1c2333,stroke:#3fb950,color:#e6edf3
style MA fill:#161b22,stroke:#bc8cff,color:#e6edf3
</div>
<div class="diagram-caption">Figure 7 — MetroCluster architecture: mirror aggregate spans two independent disk shelves across geographically separated data centers.</div>
</div>
<h3>Plexes and Spare Pools</h3>
<p>Normal aggregates have only <strong>Plex 0</strong>. Mirror aggregates add <strong>Plex 1</strong> — an exact live duplicate. Disks for Pool 0 come from Shelf A; Pool 1 from Shelf B, ensuring a single shelf failure only takes down one plex.</p>
<div class="plex-container">
<div class="plex-box plex-original">
<div class="plex-title">🔵 Plex 0 — Original (Active)</div>
<div class="aggr-expand-vis" style="margin-top:10px;">
<div class="rg-block" style="border-color:rgba(88,166,255,0.3)">
<div class="rg-title">RG0</div>
<div class="disk-row"><div class="disk-chip disk-parity">P</div><div class="disk-chip disk-parity">DP</div><div class="disk-chip disk-data-c">D</div><div class="disk-chip disk-data-c">D</div><div class="disk-chip disk-data-c">D</div></div>
</div>
<div class="rg-block" style="border-color:rgba(88,166,255,0.3)">
<div class="rg-title">RG1</div>
<div class="disk-row"><div class="disk-chip disk-parity">P</div><div class="disk-chip disk-parity">DP</div><div class="disk-chip disk-data-c">D</div><div class="disk-chip disk-data-c">D</div><div class="disk-chip disk-data-c">D</div></div>
</div>
</div>
<p style="font-size:12px; margin-top:8px; margin-bottom:0; color:var(--accent-blue);">Disks from Pool 0 (Shelf A)</p>
</div>
<div class="plex-box plex-mirror">
<div class="plex-title">🟢 Plex 1 — Mirror (Standby)</div>
<div class="aggr-expand-vis" style="margin-top:10px;">
<div class="rg-block" style="border-color:rgba(63,185,80,0.3)">
<div class="rg-title">RG0</div>
<div class="disk-row"><div class="disk-chip disk-parity">P</div><div class="disk-chip disk-parity">DP</div><div class="disk-chip disk-new">D</div><div class="disk-chip disk-new">D</div><div class="disk-chip disk-new">D</div></div>
</div>
<div class="rg-block" style="border-color:rgba(63,185,80,0.3)">
<div class="rg-title">RG1</div>
<div class="disk-row"><div class="disk-chip disk-parity">P</div><div class="disk-chip disk-parity">DP</div><div class="disk-chip disk-new">D</div><div class="disk-chip disk-new">D</div><div class="disk-chip disk-new">D</div></div>
</div>
</div>
<p style="font-size:12px; margin-top:8px; margin-bottom:0; color:var(--accent-green);">Disks from Pool 1 (Shelf B)</p>
</div>
</div>
<div class="code-block">
<div class="code-header"><span class="code-lang">ONTAP CLI · Mirror Aggregate Creation</span><div class="code-dots"><span class="dot-red"></span><span class="dot-yellow-c"></span><span class="dot-green-c"></span></div></div>
<div class="code-body"><span class="comment"># Assign Shelf A → Pool 0, Shelf B → Pool 1</span>
<span class="cmd">disk assign</span> <span class="param">-disk-list</span> <span class="value">1.0,1.1,...,1.11</span> <span class="param">-owner</span> <span class="value">stor-node-01</span> <span class="param">-pool</span> <span class="value">0</span>
<span class="cmd">disk assign</span> <span class="param">-disk-list</span> <span class="value">2.0,2.1,...,2.11</span> <span class="param">-owner</span> <span class="value">stor-node-01</span> <span class="param">-pool</span> <span class="value">1</span>
<span class="comment"># Create mirror aggregate</span>
<span class="cmd">storage aggregate create</span> \