Friday, May 9, 2014

Veritas Global Cluster Sample Configuration with VVR and CFS resource

// This is sample coniguration - main.cf
// A typical Veritas Global Cluster configuration
// With cvm, CFS, VVR global resource
// vsftpd and an IP as local parallel resource

include "types.cf"
include "CFSTypes.cf"
include "CVMTypes.cf"


cluster dr_cluster_name (
UserNames = { admin = 0 }
// Below is DR ClusterIP
ClusterAddress = "10.10.10.50"
Administrators = { admin }
UseFence = SCSI3
)

remotecluster prod_cluster_name (
// Below is production ClusterIP
ClusterAddress = "20.20.20.200"
)

heartbeat Icmp (
ClusterList = { prod_cluster_name }
// Below is production clusterIP
Arguments @prod_cluster_name = { "20.20.20.200" }
)

system prod_node_a (
)

system prod_node_b (
)


group ClusterService (
SystemList = { prod_node_a = 0, prod_node_b = 1 }
AutoStartList = { prod_node_a, prod_node_b }
OnlineRetryLimit = 3
OnlineRetryInterval = 120
)

Application wac (
StartProgram = "/opt/VRTSvcs/bin/wacstart"
StopProgram = "/opt/VRTSvcs/bin/wacstop"
MonitorProcesses = { "/opt/VRTSvcs/bin/wac" }
RestartLimit = 3
)

IP gcoip (
Device = bond0
       // Below is DR ClusterIP
Address = "10.10.10.50"
NetMask = "255.255.255.0"
)

NIC gconic (
Device = bond0
)

gcoip requires gconic
wac requires gcoip


group RVGLogownerGrp (
SystemList = { prod_node_a = 0, prod_node_b = 1 }
AutoStartList = { prod_node_a, prod_node_b }
OnlineRetryLimit = 2
)

IP vvr_ip (
Device = bond0
// Below is IP used for VVR replication
Address = "10.10.10.100"
NetMask = "255.255.255.0"
)

NIC vvr_nic (
Device = bond0
// Defailt gateway of production nodes
NetworkHosts = { "10.10.10.1" }
)

RVGLogowner vvr_logowner (
RVG = application_data_rvg
DiskGroup = application_dg
)

requires group RVGSharedGrp online local firm
vvr_ip requires vvr_nic
vvr_logowner requires vvr_ip


group RVGSharedGrp (
SystemList = { prod_node_a = 0, prod_node_b = 1 }
Parallel = 1
AutoStartList = { prod_node_a, prod_node_b }
)

CVMVolDg cfsdg (
CVMDiskGroup = application_dg
CVMActivation = sw
)

RVGShared application_cfs_rvg (
RVG = application_data_rvg
DiskGroup = application_dg
)

requires group cvm online local firm
application_cfs_rvg requires cfsdg


group cfs_global_group (
SystemList = { prod_node_a = 0, prod_node_b = 1 }
Parallel = 1
ClusterList = { dr_cluster_name = 1, prod_cluster_name = 2 }
AutoStartList = { prod_node_a, prod_node_b }
OnlineRetryLimit = 3
// Authority = 1 should be set on on only production site on which VVR is desired to be primary
Authority = 1
)

CFSMount cfs_fs (
Critical = 0
MountPoint = "/export"
BlockDevice = "/dev/vx/dsk/application_dg/application_vol"
NodeList = { prod_node_a, prod_node_b }
)

RVGSharedPri application_vvr_sharedpri (
RvgResourceName = application_cfs_rvg
OnlineRetryLimit = 0
)

requires group RVGSharedGrp online local firm
cfs_fs requires application_vvr_sharedpri


group cvm (
SystemList = { prod_node_a = 0, prod_node_b = 1 }
AutoFailOver = 0
Parallel = 1
AutoStartList = { prod_node_a, prod_node_b }
)

CFSfsckd vxfsckd (
)

CVMCluster cvm_clus (
CVMClustName = dr_cluster_name
CVMNodeId = { prod_node_a = 0, prod_node_b = 1 }
CVMTransport = gab
CVMTimeout = 300
)

CVMVxconfigd cvm_vxconfigd (
Critical = 0
CVMVxconfigdArgs = { syslog }
)


group vsftpd_ip_grp (
SystemList = { prod_node_a = 0, prod_node_b = 1 }
Parallel = 1
AutoStartList = { prod_node_a, prod_node_b }
)

Application vsftpdd_service (
StartProgram = "/etc/init.d/vsftpdd start"
StopProgram = "/etc/init.d/vsftpdd stop"
PidFiles = { "/var/run/vsftpdd/vsftpdd.pid" }
)

        IP vsftpd_ip(
                Device @system1 = "bond0"
                Device @system2 = "bond0"
                Address @system1 = "10.10.10.150"
                Address @system2 = "10.10.10.250"
                NetMask = "255.255.255.0"
                )

vsftpdd_service requires vsftpd_ip
// END

Reference : Veritas Storage Foundation and High Availability Solutions Replication Administrator's Guide

No comments:

Post a Comment