Make changes to a running system ================================ web resources: http://support.veritas.com hasys -state #show state of system haconf -makerw # set readwrite mode on the configuration This touchs a .stale file in the config directory, you can now give commands directly to hacf process, when you are finished dump the running config in the directory with: haconf -dump -makero #this overwrites to old files with new ones. Make changes to the config files ================================ hastop -all #stop the cluster copy main.cf to /etc/VRTSvcs/conf/config #on both machines hastart switch group between nodes hagrp -switch mail -to sawfish #switch group "mail" to node "sawfish" hagrp -display mail # show status hagrp -offline mail -sys sawfish # take a group offline from a node debug ===== make hacf readwrite see above hatype -modify resource_type LogLevel info (where resource_type is that given in types.cf) hares -display resource_name (where name is given in main.cf after type i.e. IP IP_62_84_192_135 IP=resource_type IP_62_84_192_135=resource_name hares -online resource_name -sys system_name #bring resource online hares -offline resource_name -sys system_name #bring resource offline halog -info # gives whereabouts of log files Definitions =========== $VCSHOME/bin/violation # dir contains script to execute if both systems try to run the same application main.cf # contains all config information types.cf # resource types defined daemons: had #VCS engine, directs failover etc. hacf #executed on demand, translates config lang. adn VCS engine hashadow # monitors and restart had agents # 1 agent for each resource type usercommands # GUI # java gui halink # daemon monitors communication links between cluster members kernel components Low latency transport LLT GAB - global message order required to maintain a sync. state - can kill had if unresponsive you should disable any console abort sequence (stop-a) VCS seeding: a system is unseeded until all systems are up and unseeded or it can talk to a seeded system. When seeded VCS can start. INSTALLATION CHECKLIST P20 USERS GUIDE VCS configuration language create config files by editing them or user haconf to dump config info. config file contains: includes e.g. #include resource type defs cluster def system def snmp def service group def resource def resource dependency def service group dependency clauses attribute data types: str - string int - integer boolean - attribute dimensions: scalar (value) vector str Months[] = { jan, feb, mar, apr } keylist keylist colors { red, yellow, blue } association Sun=1 Mon=2 Tues=3 scope attribute to all systems is global, per system is local (use @ to indicate the system) type Mount ( str mountpoint str type str MountOpt str Fsckopt static str arglist[] { mountpoint, blockdevice, type, mountopt, fsckopt } namerule = resource.mountpoint )