To create objects for replication on the secondary site, use the vradmin
command with the addsec
option. To set up replication on the secondary site:
Creating a disk group on the storage with the same name as the equivalent disk group on the primary site if you have not already done so.
See Installing Oracle on the secondary site
Creating volumes for the database and SRL on the secondary site.
See Creating the data and SRL volumes on the secondary site
Editing the /etc/vx/vras/.rdg
file on the secondary site.
See Editing the /etc/vx/vras/.rdg files
Resolvable virtual IP addresses that set network RLINK connections as host names of the primary and secondary sites.
See Setting up IP addresses for RLINKs on each cluster
Creating the replication objects on the secondary site.
See Setting up disk group on secondary site for replication
When creating volumes for the data and SRL:
vxdisk -g
diskgroup
list
command to list the disks in the disk group.
To create the data and SRL volumes on the secondary site
rac_vol1
volume on the primary site is 6.6 GB:
# vxassist -g oradatadg make rac_vol1 6600M nmirror=2 disk1 disk2
# vxassist -g oradatadg make rac1_srl 1500M nmirror=2 disk4 disk6
Editing the /etc/vx/vras/.rdg
file on the secondary site enables VVR to replicate the disk group from the primary site to the secondary site. On each node, VVR uses the /etc/vx/vras/.rdg
file to check the authorization to replicate the RVG on the primary site to the secondary site. The file on each node in the secondary site must contain the primary disk group ID, and likewise, the file on each primary system must contain the secondary disk group ID.
/etc/vx/vras/.rdg
file and enter the primary disk group ID on a single line.
Creating objects with the vradmin
command requires resolvable virtual IP addresses that set network RLINK connections as host names of the primary and secondary sites.
To set up IP addresses for RLINKS on each cluster
hme0:1
, the virtual IP address is 10.10.9.101
, and the net mask is 255.255.240.0
for the cluster on the primary site:
qfe0:1
, virtual IP address is 10.11.9.102
, and the net mask is 255.255.240.0
on the secondary site.
/etc/hosts
file on all nodes in each cluster. The examples assume rac_clus101_priv
has IP address 10.10.9.101
and rac_clus102_priv
has IP address 10.11.9.102
.
ping
command to verify the links are functional.
Create the replication objects on the secondary site from the master node on the primary site, using the vradmin
command.
To set up the disk group on the secondary site for replication
vradmin -g dg_pri
addsec rvg_pri
pri_host
sec_host
dg_pri
is the disk group on the primary site that VVR will replicate. For example: oradatadg
rvg_pri
is the RVG on the primary site. For example: rac1_rvg
pri_host
is the virtual IP address or resolvable virtual host name of the cluster on the primary site. For example: 10.10.9.101
or rac_clus101_priv
sec_host
is the virtual IP address or resolvable virtual host name of the cluster on the secondary site. For example: 10.11.9.102
or rac_clus102_priv
For example, the command to add the cluster on the primary site to the RDS is:
# vradmin -g oradatadg addsec rac1_rvg rac_clus101_priv rac_clus102_priv
rlk_rac_clus102_priv_rac1_rvg
and the "secondary" RLINK created is rlk_rac_clus101_priv_rac1_rvg
.
# # vradmin -g oradg -l printrvg
Reeplicated Data Set: rac1_rvg
HostName: 10.180.88.187 <localhost>
name=rlk_10.11.9.102_ rac1_rvg, detached=on,
name=rlk_10.10.9.101_ rac1_rvg, detached=on,
Note Once the replication is started the value off detached flag will change the status from off to on.