ONTAP9.1からONTAP9.7に転送するための手順例
(1) ONTAP9.1で送り元SVM作成
まず、ONTAP9.1側で送り元となるSVMとボリュームを作成する。
今回はガワだけ作成しており、NFSやCIFS設定などは省略している
ontap91::> vserver create -vserver share206 -aggregate aggr1 -language ja_v1.UTF-8 -subtype default -rootvolume share206_root -rootvolume-security-style mixed
[Job 21] Job succeeded:
Vserver creation completed
ontap91::> vserver show
Admin Operational Root
Vserver Type Subtype State State Volume Aggregate
----------- ------- ---------- ---------- ----------- ---------- ----------
ontap91 admin - - - - -
ontap91-01 node - - - - -
share206 data default running running share206_ aggr1
root
3 entries were displayed.
ontap91::>
続いてボリューム割り当て
ontap91::> volume create -volume sharevol -aggregate aggr1 -size 10G -vserver share206
Warning: The export-policy "default" has no rules in it. The volume will
therefore be inaccessible.
Do you want to continue? {y|n}: y
[Job 24] Job succeeded: Successful
ontap91::> volume show
Vserver Volume Aggregate State Type Size Available Used%
--------- ------------ ------------ ---------- ---- ---------- ---------- -----
ontap91-01 vol0 aggr0 online RW 3.16GB 2.27GB 28%
share206 share206_root aggr1 online RW 20MB 18.75MB 6%
share206 sharevol aggr1 online RW 10GB 10.00GB 0%
3 entries were displayed.
ontap91::>
(2) ONTAP9.7で受け側SVM作成
受け側となるSVMとボリュームを作成する。
受け側のボリュームは「type:DP」で作成する必要がある。
ontap97::> vserver create -vserver share207 -language ja_v1.UTF-8 -aggregate aggr1 -rootvolume share207_root -rootvolume-security-style mixed
[Job 20] Job succeeded:
Vserver creation completed.
ontap97::> vserver show
Admin Operational Root
Vserver Type Subtype State State Volume Aggregate
----------- ------- ---------- ---------- ----------- ---------- ----------
ontap97 admin - - - - -
ontap97-01 node - - - - -
share207 data default running running share207_ aggr1
root
3 entries were displayed.
ontap97::>
type:DPでボリュームを作成する
ontap97::> volume create -volume sharevol_repl -aggregate aggr1 -size 10g -type DP -state online
[Job 23] Job succeeded: Successful
ontap97::> volume show
Vserver Volume Aggregate State Type Size Available Used%
--------- ------------ ------------ ---------- ---- ---------- ---------- -----
ontap97-01 vol0 aggr0_ontap97_01 online RW 807.3MB 430.5MB 43%
share207 share207_root aggr1 online RW 20MB 18.70MB 1%
share207 sharevol_repl aggr1 online DP 10GB 10.00GB 0%
3 entries were displayed.
ontap97::>
(3) snapmirror用にrole:interclusterのIPアドレスを割り当て
snapmirrorのrole:interclusterのLIF/IPアドレスを使用するため、送り側/受け側の双方で作成する必要がある。
まず、「network interface show -role intercluster」を実行してすでに設定されているかを各人する。
ontap91::> network interface show -role intercluster
There are no entries matching your query.
ontap91::>
ontap97::> network interface show -role intercluster
There are no entries matching your query.
ontap97::>
ないので作成する。
ontap91::> network interface create -vserver ontap91 -role intercluster -lif snapmirror_lif -home-node ontap91-01 -home-port e0a -address 172.17.44.222 -netmask 255.255.0.0 -status-admin up
ontap91::> network interface show -role intercluster
Logical Status Network Current Current Is
Vserver Interface Admin/Oper Address/Mask Node Port Home
----------- ---------- ---------- ------------------ ------------- ------- ----
ontap91
snapmirror_lif up/up 172.17.44.222/16 ontap91-01 e0a true
ontap91::>
ONTAP9.5ぐらいから「-service-policy default-intercluster」というオプションが増えている。
ontap97::> network interface create -vserver ontap97 -role intercluster -lif snapmirror_lif -service-policy default-intercluster -address 172.17.44.223 -netmask 255.255.0.0 -home-node ontap97-01 -home-port e0c
ontap97::> network interface show -role intercluster
Logical Status Network Current Current Is
Vserver Interface Admin/Oper Address/Mask Node Port Home
----------- ---------- ---------- ------------------ ------------- ------- ----
ontap97
snapmirror_lif up/up 172.17.44.223/16 ontap97-01 e0c true
ontap97::>
(4) cluster peerの作成
snapmirrorの前段階としてONTAP cluster同士を連携させるためのcluster peer(クラスタピア)を設定する。
どちらからやっても良いが「cluster peer create -peer-addrs 相手のinterclusterアドレス」を実行する。
ontap91::> cluster peer create -peer-addrs 172.17.44.223
Notice: Choose a passphrase of 8 or more characters. To ensure the authenticity
of the peering relationship, use a phrase or sequence of characters
that would be hard to guess.
Enter the passphrase:
Confirm the passphrase:
Notice: Now use the same passphrase in the "cluster peer create" command in the
other cluster.
ontap91::>
ONTAP9.5以降では暗号化が標準設定されているため、ONTAP 9.1相手だと暗号化接続を試みるようで、下記の様にエラーとなる。
ontap97::> cluster peer create -peer-addrs 172.17.44.222
Notice: Use a generated passphrase or choose a passphrase of 8 or more
characters. To ensure the authenticity of the peering relationship, use
a phrase or sequence of characters that would be hard to guess.
Enter the passphrase:
Confirm the passphrase:
Error: command failed: Remote cluster would not use encryption for this
relationship.
ontap97::>
これは、暗号化接続に関する設定オプションを明示的に指定することで回避できる。
ontap97::> cluster peer create -peer-addrs 172.17.44.222 -encryption-protocol-proposed none
Notice: Use a generated passphrase or choose a passphrase of 8 or more
characters. To ensure the authenticity of the peering relationship, use
a phrase or sequence of characters that would be hard to guess.
Enter the passphrase:
Confirm the passphrase:
ontap97::>
設定完了後「cluster peer show」コマンドで「Availability:Available」となっていることを確認する。
ontap91::> cluster peer show
Peer Cluster Name Cluster Serial Number Availability Authentication
------------------------- --------------------- -------------- --------------
ontap97 1-80-000008 Available ok
1 entries were displayed.
ontap91::>
ontap97::> cluster peer show
Peer Cluster Name Cluster Serial Number Availability Authentication
------------------------- --------------------- -------------- --------------
ontap91 1-80-000008 Available ok
ontap97::>
なお、設定完了後すぐはCluster Serial Numberが空欄になっているが、しばらく経つと表示されるはず。
(5) SVM peerの作成
volumeはSVMの配下にあるため、volume snapmirrorを行う場合は、SVMについてもpeer(SVM ピア)を設定する必要がある。
片側から「vserver peer create 」コマンドを実行する。
ontap91::> vserver peer create -vserver share206 -peer-vserver share207 -applications snapmirror -peer-cluster ontap97
Info: [Job 27] 'vserver peer create' job queued
ontap91::> vserver peer show
Peer Peer Peering Remote
Vserver Vserver State Peer Cluster Applications Vserver
----------- ----------- ------------ ----------------- -------------- ---------
share206 share207 initializing ontap97 snapmirror share207
1 entries were displayed.
ontap91::> vserver peer show
Peer Peer Peering Remote
Vserver Vserver State Peer Cluster Applications Vserver
----------- ----------- ------------ ----------------- -------------- ---------
share206 share207 initiated ontap97 snapmirror share207
1 entries were displayed.
ontap91::>
上記でvserver peer createを実行したあと、もう片側では、まず「vserver peer show」で「State:pending」というステータスになっていることを確認する。
ontap97::> vserver peer show
Peer Peer Peering Remote
Vserver Vserver State Peer Cluster Applications Vserver
----------- ----------- ------------ ----------------- -------------- ---------
share207 share206 pending ontap91 snapmirror share206
ontap97::>
これをaccpetすることで、SVM peerが成立する。
ontap97::> vserver peer accept -vserver share207 -peer-vserver share206
Info: [Job 24] 'vserver peer accept' job queued
ontap97::> vserver peer show
Peer Peer Peering Remote
Vserver Vserver State Peer Cluster Applications Vserver
----------- ----------- ------------ ----------------- -------------- ---------
share207 share206 pending ontap91 snapmirror share206
ontap97::> vserver peer show
Peer Peer Peering Remote
Vserver Vserver State Peer Cluster Applications Vserver
----------- ----------- ------------ ----------------- -------------- ---------
share207 share206 peered ontap91 snapmirror share206
ontap97::>
成立後、ONTAP 9.1側でも確認すると「peer State:peered」に変化しているはず
ontap91::> vserver peer show
Peer Peer Peering Remote
Vserver Vserver State Peer Cluster Applications Vserver
----------- ----------- ------------ ----------------- -------------- ---------
share206 share207 peered ontap97 snapmirror share207
1 entries were displayed.
ontap91::>
(6) snapmirrorの作成
snapmirrorを作成する。
ontap97::> snapmirror create -source-path share206:sharevol -destination-path share207:sharevol_repl -vserver share207 -throttle unlimited -identity-preserve false -type DP -schedule daily
Operation succeeded: snapmirror create for the relationship with destination "share207:sharevol_repl".
ontap97::> snapmirror show
Progress
Source Destination Mirror Relationship Total Last
Path Type Path State Status Progress Healthy Updated
----------- ---- ------------ ------- -------------- --------- ------- --------
share206:sharevol XDP share207:sharevol_repl Uninitialized Idle - true -
ontap97::>
ONTAP 9.7ではType:DPを指定してもType:XDPに変換されるようだ。
(7) snapmirrorの初期化/転送開始
snapmirrorは作成したあと、初期化操作を別途行う必要がある。
ontap97::> snapmirror initialize -destination-path share207:sharevol_repl
Operation is queued: snapmirror initialize of destination "share207:sharevol_repl".
ontap97::> snapmirror show
Progress
Source Destination Mirror Relationship Total Last
Path Type Path State Status Progress Healthy Updated
----------- ---- ------------ ------- -------------- --------- ------- --------
share206:sharevol XDP share207:sharevol_repl Uninitialized Transferring 0B false 03/04 05:57:49
ontap97::>
初期化が終わると、「Mirror State:Snapmirrored」となり、データの転送が開始される「Relationship Status:Transferring」
ontap97::> snapmirror show
Progress
Source Destination Mirror Relationship Total Last
Path Type Path State Status Progress Healthy Updated
----------- ---- ------------ ------- -------------- --------- ------- --------
share206:sharevol XDP share207:sharevol_repl Snapmirrored Transferring 0B true 03/04 05:58:57
ontap97::>
転送が終わると「Relationship Status:Idle」となる。
ontap97::> snapmirror show
Progress
Source Destination Mirror Relationship Total Last
Path Type Path State Status Progress Healthy Updated
----------- ---- ------------ ------- -------------- --------- ------- --------
share206:sharevol XDP share207:sharevol_repl Snapmirrored Idle - true -
ontap97::>