*Recently I was charged with creating a two node Veritas Cluster *server. Everything in VCS resolves around this config file. *Since all of the binaries in VCS are written in Perl and with *the increasing popularity of this product I thought some monks *might find this useful. This configuration fails over four *resources, Apache, Sendmail, SMMS and the RAID. When any *of the apps fail Veritas umounts /var/md and mounts it on *the other system and then starts up the apps. you must write *a small monitoring script for each app and place it in */opt/VRTSvcs/bin. The monitoring script simply needs to *return "online" or "offline" (pgrep works well) *Anyways I hope someone finds this useful *the config file is pretty easy to read. Cheers!!! include "types.cf" cluster Mail ( UserNames = { admin = "cDRpdxPmHpzS." } 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 wgmail1a system wgmail1b 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 mailgroup ( SystemList = { wgmail1a, wgmail1b } AutoStartList = { wgmail1a } ) Application Apache ( User = root StartProgram = "/etc/init.d/apache start" StopProgram = "/etc/init.d/apache stop" MonitorProgram = "/opt/VRTSvcs/bin/monitor_scripts/monitor_http" ) Application SMMS ( User = root StartProgram = "/etc/init.d/smmsd start" StopProgram = "/etc/init.d/smmsd stop" MonitorProgram = "/opt/VRTSvcs/bin/monitor_scripts/monitor_smms" ) Application sendmail ( User = root StartProgram = "/etc/init.d/sendmail start" StopProgram = "/etc/init.d/sendmail stop" MonitorProgram = "/opt/VRTSvcs/bin/monitor_scripts/monitor_sendmail" ) IP ip_eri0 ( Device = eri0 Address = "199.6.154.34" NetMask = "255.255.255.0" ) Mount the_raid ( MountPoint = "/var/md" BlockDevice = "/dev/dsk/c2t5d1s0" FSType = ufs MountOpt = logging ) NIC nic_eri ( Device = eri0 NetworkType = ether ) sendmail requires the_raid // resource dependency tree // // group mailgroup // { // Application Apache // Application SMMS // IP ip_eri0 // NIC nic_eri // Application sendmail // { // Mount the_raid // } // }