I configure a single vcs cluster with vvr. I save the configuration on the following pictures
As you see on these pictures, I configure a service named apache2 using the RVGPrimary of vvrgroup, and set the relation between two service groups with command:
All the service group and resource take online successfully. But on the secondary node of VVR, the disk group is exported and the replication does not occur.
include "OracleASMTypes.cf"
include "types.cf"
include "Db2udbTypes.cf"
include "OracleTypes.cf"
include "SybaseTypes.cf"
cluster vcs (
UserNames = { admin = aHGcEBdBGeFBgJHbHFgGIg }
ClusterAddress = "192.168.4.100"
Administrators = { admin }
)
system vcs1 (
)
system vcs2 (
)
group ClusterService (
SystemList = { vcs1 = 0, vcs2 = 1 }
AutoStartList = { vcs1, vcs2 }
OnlineRetryLimit = 3
OnlineRetryInterval = 120
)
IP webip (
Device = eth0
Address = "192.168.4.100"
NetMask = "255.255.255.0"
)
NIC csgnic (
Device = eth0
)
webip requires csgnic
// resource dependency tree
//
// group ClusterService
// {
// IP webip
// {
// NIC csgnic
// }
// }
group apache2 (
SystemList = { vcs1 = 0, vcs2 = 1 }
)
Application httpd2 (
StartProgram = "/etc/init.d/apache2 start"
StopProgram = "/etc/init.d/apache2 stop"
PidFiles = { "/var/run/httpd2.pid" }
)
IP ip_res (
Device = eth0
Address = "192.168.4.200"
NetMask = "255.255.255.0"
)
Mount appmount (
MountPoint = "/srv/www/htdocs"
BlockDevice = "/dev/vx/dsk/data_dg/data_volume"
FSType = vxfs
FsckOpt = "-n"
)
RVGPrimary DataRVG_pri (
RvgResourceName = DataRVG
)
requires group vvrgrp online local hard
appmount requires DataRVG_pri
httpd2 requires appmount
httpd2 requires ip_res
// resource dependency tree
//
// group apache2
// {
// Application httpd2
// {
// IP ip_res
// Mount appmount
// {
// RVGPrimary DataRVG_pri
// }
// }
// }
group vvrgrp (
SystemList = { vcs1 = 0, vcs2 = 1 }
AutoStartList = { vcs1, vcs2 }
)
DiskGroup DataDG (
DiskGroup = data_dg
)
NIC vvrnic (
Device = eth1
)
RVG DataRVG (
RVG = rvg_b
DiskGroup = data_dg
)
DataRVG requires DataDG
DataRVG requires vvrnic
// resource dependency tree
//
// group vvrgrp
// {
// RVG DataRVG
// {
// DiskGroup DataDG
// NIC vvrnic
// }
// }