- 论坛徽章:
- 7
|
Example
Setting Up Replication When Data Volumes are Empty
Since the Primary data volumes are empty, there is no need to initialize the data on the
Secondary node.
On the Secondary: v240
1. Make the data volumes. Use different disks for the data volumes and SRL.
# vxassist -g hrdg make hr_dv01 100M \
layout=mirror logtype=dcm mirror=2
# vxassist -g hrdg make hr_dv02 100M \
layout=mirror logtype=dcm mirror=2
2. Make the SRL on disks other than the ones used for the data volumes.
# vxassist -g hrdg make hr_srl 50M mirror=2
3. Make the RLINK.
# vxmake -g hrdg rlink hr_v241_rlk remote_host=v241 \
remote_dg=hrdg comment=”secondary for HR at v241” \
remote_rlink=hr_v240_rlk local_host=v240 \
synchronous=off srlprot=dcm
4. Make an RVG, and associate the RLINK, data volumes, and SRL with the RVG.
# vxmake -g hrdg rvg hr_rvg rlink=hr_v241_rlk \
datavol=hr_dv01,hr_dv02 srl=hr_srl primary=false \
comment=”secondary for HR at v241”
5. Attach the RLINK to the RVG.
# vxrlink -g hrdg att hr_v241_rlk
6. Start the RVG to enable reads on the underlying data volumes (Secondary data
volumes are read-only).
# vxrvg -g hrdg start hr_rvg
On the Primary: v241
1. Make the data volumes. Use different disks for the data volumes and SRL.
# vxassist -g hrdg make hr_dv01 100M \
layout=mirror logtype=dcm mirror=2
# vxassist -g hrdg make hr_dv02 100M \
layout=mirror logtype=dcm mirror=2
2. Make the SRL on disks other than the ones used for the data volumes.
# vxassist -g hrdg make hr_srl 50m mirror=2
3. Make the RLINK.
# vxmake -g hrdg rlink hr_v240_rlk \
comment=”primary for HR at v240” remote_host=v240 \
remote_dg=hrdg remote_rlink=hr_v241_rlk \
local_host=v241 synchronous=off srlprot=dcm
4. Make the RVG, and associate the RLINK, data volumes, and SRL with it.
# vxmake -g hrdg rvg hr_rvg rlink=hr_v240_rlk \
datavol=hr_dv01,hr_dv02 srl=hr_srl primary=true
5. Attach the RLINK to the RVG.
# vxrlink -g hrdg att hr_v240_rlk
6. Start the RVG to enable I/O on the underlying data volumes.
# vxrvg -g hrdg start hr_rvg
Feb 25 13:21:10 v241 vxio: [ID 259459 kern.notice] NOTICE: Connected from node
10.110.157.182 to node 10.110.157.181
Feb 25 13:21:12 v241 vxio: [ID 170546 kern.notice] NOTICE: vxvm:vxio: Rlink
hr_v240_rlk connected to remote
Feb 24 21:21:11 v240 vxio: [ID 259459 kern.notice] NOTICE: Connected from node
10.110.157.181 to node 10.110.157.182
Feb 24 21:21:11 v240 vxio: [ID 170546 kern.notice] NOTICE: vxvm:vxio: Rlink
hr_v241_rlk connected to remote
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/43/showart_96833.html |
|