Scalable Database Server, HiRDB Version 8 System Operation Guide

[Contents][Index][Back][Next]

25.8.5 Environment setup file creation

Create the environment setup file for VERITAS Cluster Server (/etc/VRTSvcs/conf/config/main.cf) and set up groups and resources.

Organization of this subsection
(1) Resource attribute setting value
(2) Environment setup file example (IP addresses inherited)
(3) Environment setup file example (IP addresses not inherited)

(1) Resource attribute setting value

Table 25-21 shows the values to be specified for resource attributes. For details on the individual items, see the VERITAS Cluster Server manual.

Table 25-21 Values to be specified for resource attributes

Resource Attribute Value to be specified
HiRDB_x type resource Critical Specify 0.
PdDir Specify the HiRDB directory name ($PDDIR).
PdConfPath Specify the name of the directory storing the HiRDB system definition file ($PDCONFPATH).
Ld_Library_Path Specify the name of the directory storing the HiRDB library ($LD_LIBRARY_PATH = $PDDIR/lib).
DummyFilePath Specify the dummy file name ($PDDIR/.pdveritas).
DiskGroup type resource DiskGroup Specify the name of the VERITAS Volume Manager's disk group to be used as a shared disk by HiRDB (monitor mode only).
IP type resource Device Specify the name of the NIC device related to the logical IP address to be used by HiRDB.
Address Specify the logical IP address to be used by HiRDB.
NIC type resource Device Specify the device name of the NIC connected to the network to be used by HiRDB.
NetworkHosts Specify the IP address of the host on the network, to be used by HiRDB. This attribute is not required.

(2) Environment setup file example (IP addresses inherited)

include "types.cf"
include "HiRDB_STypes.cf"
 
cluster vcs (
      UserNames = { vcsadm = cDi1yyJLOgPWY }
      CounterInterval = 5
      Factor = { runque = 5, memory = 1, disk = 10, cpu = 25, network = 5 }
      MaxFactor = { runque = 100, memory = 10, disk = 100, cpu = 100, network = 100 }
      )
 
system mainhost
 
system reservedhost
 
snmp vcs (
        TrapList = { 1 = "A new system has joined the VCS Cluster",
                 2 = "An existing system has changed its state",
                 3 = "A service group has changed its state",
                 4 = "One or more heartbeat links has gone down",
                 5 = "An HA service has done a manual restart",
                 6 = "An HA service has been manually idled",
                 7 = "An HA service has been successfully started" }
        )
 
group gr1 (
        SystemList = { mainhost, reservedhost }
        AutoStartList = { mainhost }
        )
 
        HiRDB_S gr1_HiRDB_S_UNT1 (
                Critical = 0
                PdDir = "/hirdb/pddir_s"
                PdConfPath = "/hirdb/pddir_s/conf"
                Ld_Library_Path = "/hirdb/pddir_s/lib"
                DummyFilePath = "/hirdb/pddir_s/.pdveritas"
                )
 
        DiskGroup gr1_DiskGroup_sharedg1 (
                DiskGroup = sharedg1
                )
 
        IP gr1_IP_logicalhost (
                Device = hme0
                Address = "172.16.161.177"
                )
 
        NIC gr1_NIC_hme0 (
                Device = hme0
                NetworkHosts = { "172.16.161.1" }
                )
 
        gr1_HiRDB_S_UNT1 requires gr1_DiskGroup_sharedg1
        gr1_DiskGroup_sharedg1 requires gr1_IP_logicalhost
        gr1_IP_logicalhost requires gr1_NIC_hme0

(3) Environment setup file example (IP addresses not inherited)

include "types.cf"
include "HiRDB_STypes.cf"
 
cluster vcs (
      UserNames = { vcsadm = cDi1yyJLOgPWY }
      CounterInterval = 5
      Factor = { runque = 5, memory = 1, disk = 10, cpu = 25, network = 5 }
      MaxFactor = { runque = 100, memory = 10, disk = 100, cpu = 100, network = 100 }
      )
 
system mainhost
 
system reservedhost
 
snmp vcs (
        TrapList = { 1 = "A new system has joined the VCS Cluster",
                 2 = "An existing system has changed its state",
                 3 = "A service group has changed its state",
                 4 = "One or more heartbeat links has gone down",
                 5 = "An HA service has done a manual restart",
                 6 = "An HA service has been manually idled",
                 7 = "An HA service has been successfully started" }
        )
 
group gr1 (
        SystemList = { mainhost, reservedhost }
        AutoStartList = { mainhost }
        )
 
        HiRDB_S gr1_HiRDB_S_UNT1 (
                Critical = 0
                PdDir = "/hirdb/pddir_s"
                PdConfPath = "/hirdb/pddir_s/conf"
                Ld_Library_Path = "/hirdb/pddir_s/lib"
                DummyFilePath = "/hirdb/pddir_s/.pdveritas"
                )
 
        DiskGroup gr1_DiskGroup_sharedg1 (
                DiskGroup = sharedg1
                )
 
        NIC gr1_NIC_hme0 (
                Device = hme0
                NetworkHosts = { "172.16.161.1" }
                )
 
        gr1_HiRDB_S_UNT1 requires gr1_DiskGroup_sharedg1
        gr1_DiskGroup_sharedg1 requires gr1_NIC_hme0