Skip to content

Instantly share code, notes, and snippets.

@tin6150
Last active April 19, 2019 04:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tin6150/a9041b900d3803d6d5f012af93704dbf to your computer and use it in GitHub Desktop.
Save tin6150/a9041b900d3803d6d5f012af93704dbf to your computer and use it in GitHub Desktop.
NetApp 9.2 :: creating data protection volume for root vol of SVM
NetApp 9.2 :: creating data protection volume for root vol of SVM
2 netapp heads: axiom-01, axiom-02. Each has its own aggregate.
2 SVM: axiomAA, axiomBB
Create snapshot for data protection for each SVM's root volume on each physical filer node.
axiom::> aggr show
Aggregate Size Available Used% State #Vols Nodes RAID Status
--------- -------- --------- ----- ------- ------ ---------------- ------------
axiom_01_SATA_01_4TB 58.83TB 58.82TB 0% online 7 axiom-01 raid_dp, normal
axiom_01_mroot_ONLY 3.27TB 321.5GB 90% online 1 axiom-01 raid_dp, normal
axiom_02_SATA_01_4TB 58.83TB 58.82TB 0% online 4 axiom-02 raid_dp, normal
axiom_02_mroot_ONLY 3.27TB 321.5GB 90% online 1 axiom-02 raid_dp, normal
4 entries were displayed.
axiom::> volume create -vserver axiomAA -volume axiomAA_root_DP01 -size 1g -state online -type DP -aggregate axiom_01_SATA_01_4TB
axiom::> volume create -vserver axiomAA -volume axiomAA_root_DP02 -size 1g -state online -type DP -aggregate axiom_02_SATA_01_4TB
axiom::> volume create -vserver axiomBB -volume axiomBB_root_DP01 -size 1g -state online -type DP -aggregate axiom_01_SATA_01_4TB
axiom::> volume create -vserver axiomBB -volume axiomBB_root_DP02 -size 1g -state online -type DP -aggregate axiom_02_SATA_01_4TB
axiom::> volume show -vserver axiomBB -volume *_root*
axiom::> volume show -volume *_root*
Vserver Volume Aggregate State Type Size Available Used%
--------- ------------ ------------ ---------- ---- ---------- ---------- -----
axiomBB axiomBB_root axiom_02_SATA_01_4TB online RW 1GB 971.6MB 0%
axiomBB axiomBB_root_DP01 axiom_01_SATA_01_4TB online DP 1GB 1021MB 0%
axiomBB axiomBB_root_DP02 axiom_02_SATA_01_4TB online DP 1GB 1021MB 0%
axiomAA axiomAA_root axiom_01_SATA_01_4TB online RW 1GB 971.8MB 0%
axiomAA axiomAA_root_DP01 axiom_01_SATA_01_4TB online DP 1GB 1021MB 0%
axiomAA axiomAA_root_DP02 axiom_02_SATA_01_4TB online DP 1GB 1021MB 0%
6 entries were displayed.
axiom::> snapmirror create -source-path axiomAA:axiomAA_root -destination-path axiomAA:axiomAA_root_DP01 -type DP -schedule hourly
axiom::> snapmirror create -source-path axiomAA:axiomAA_root -destination-path axiomAA:axiomAA_root_DP02 -type DP -schedule hourly
axiom::> snapmirror create -source-path axiomBB:axiomBB_root -destination-path axiomBB:axiomBB_root_DP01 -type DP -schedule hourly
axiom::> snapmirror create -source-path axiomBB:axiomBB_root -destination-path axiomBB:axiomBB_root_DP02 -type DP -schedule hourly
snapmirror initialize -destination-path axiomAA:axiomAA_root_DP*
snapmirror initialize -destination-path axiomBB:axiomBB_root_DP*
axiom::> snapmirror show
Progress
Source Destination Mirror Relationship Total Last
Path Type Path State Status Progress Healthy Updated
----------- ---- ------------ ------- -------------- --------- ------- --------
axiomBB:axiomBB_root XDP axiomBB:axiomBB_root_DP01 Snapmirrored Idle - true -
axiomBB:axiomBB_root_DP02 Snapmirrored Idle - true -
axiomAA:axiomAA_root XDP axiomAA:axiomAA_root_DP01 Snapmirrored Idle - true -
axiomAA:axiomAA_root_DP02 Snapmirrored Idle - true -
4 entries were displayed.
~~~~
Additiona Reference: https://tin6150.github.io/psg/netapp.html#svm_dr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment