Documente Academic
Documente Profesional
Documente Cultură
VCS uses two components, LLT and GAB to share data over the private networks among systems. These components provide the performance and re ia!i ity re"uired !y VCS.
LLT (Low Latency Transport) provides fast, kernel-to-kernel comms and monitors network connections. The system admin configures the LLT by creating a configuration file (llttab) that describes the systems in the cluster and private network links among them. The LLT runs in layer 2 of the network stack !" ( roup membership and !tomic "roadcast) provides the global message order re#uired to maintain a synchronised state among the systems, and monitors disk comms such as that re#uired by the $%& heartbeat utility. The system admin configures !" driver by creating a configuration file ( gabtab).
LLT
GAB
The $%& configuration file. The file contains the information that defines the cluster and its systems.
Gabtab Entries
)sbin)gabdiskconf - i )dev)dsk)c*t2d+s2 )sbin)gabdiskconf - i )dev)dsk)c*t2d+s2 )sbin)gabdiskhb -a )dev)dsk)c*t2d+s2 -s )sbin)gabdiskhb -a )dev)dsk)c*t2d+s2 -s )sbin)gabconfig -c -n2 -i -s -& -s *, -& **2-s *.. -& **2. *, -p a -s **2*.. -p h -s **2.
gabdiskconf
'nitialises the disk region &tart "lock &ignature !dd a gab disk heartbeat resource &tart "lock /ort &ignature %onfigure the driver for use 0umber of systems in the cluster.
gabconfig
-c -n
gabconfig -a
verif that GAB is o"erating sto" GAB r!nning start the GAB override the seed val!es in the gabtab file
0ote3 port a indicates that !" is communicating, port h indicates that $%& is started gabconfig -2 gabconfig -c -n 4number of nodes5 gabconfig -c -6
&ort '!nction
Cluster daemons
(igh Availabilit )aemon $om"anion )aemon Reso!rce Agent daemon *eb $onsole cl!ster managerment daemon
had hashadow 4resource5!gent %md&erver
hastart >-stale1-force?
hastop -local
Cluster Status
dis"la cl!ster s!mmar contin!all monitor cl!ster verif the cl!ster is o"erating
Cluster Details
information abo!t a cl!ster val!e for a s"ecific cl!ster attrib!te modif a cl!ster attrib!te /nable Link#onitoring )isable Link#onitoring
haclus -display haclus -value 4attribute5 haclus -modify 4attribute name5 4new5 haclus -enable Link9onitoring haclus -disable Link9onitoring
sers
add a !ser modif a !ser delete a !ser dis"la all !sers
hauser -add 4username5 hauser -update 4username5 hauser -delete 4username5 hauser -display
S!stem "perations
add a s stem to the cl!ster delete a s stem from the cl!ster #odif a s stem attrib!tes list a s stem state 'orce a s stem to start )is"la the s stems attrib!tes List all the s stems in the cl!ster $hange the load attrib!te of a s stem )is"la the val!e of a s stems nodeid (/etc/llthosts) 'ree0e a s stem (1o offlining s stem- 1o gro!"s onlining) %nfree0e a s stem ( reenable gro!"s and reso!rce back online)
hasys -add 4sys5 hasys -delete 4sys5 hasys -modify 4sys5 4modify options5 hasys -state hasys -force hasys -display >-sys? hasys -list hasys -load 4system5 4value5 hasys -nodeid hasys -free@e >-persistent?>-evacuate? 0ote3 main.cf must be in write mode hasys -unfree@e >-persistent? 0ote3 main.cf must be in write mode
D!namic Configuration The VCS configuration must !e in read#write mode in order to make changes. $hen in read#write mode the configuration !ecomes sta e, a .sta e fi e is created in %VCS&C'()#conf#config. $hen the configuration is put !ack into read on y mode the .sta e fi e is removed.
$hange config!ration to read/.rite mode $hange config!ration to read,onl mode
haconf -makerw haconf -dump -makero
$heck the config!ration file convert a main.cf file into cl!ster commands
0ote3 you can point to any directory as long as it has main.cf and types.cf hacf -cftocmd )etc)$7T&)conf)config -dest )tmp
convert a command file into a main.cf hacf -cmdtocf )tmp -dest )etc)$7T&)conf)config file
Ser#ice Groups
haconf -makerw hagrp -add groupw hagrp -modify groupw &ystemList sun* * sun2 2 hagrp -autoenable groupw -sys sun* haconf -dump -makero haconf -makerw hagrp -delete groupw haconf -dump -makero haconf -makerw hagrp -modify groupw &ystemList sun* * sun2 2 sun- haconf -dump -makero 0ote3 use the Chagrp -display 4group5C to list attributes
list the service gro!"s list the gro!"s de"endencies list the "arameters of a gro!" dis"la a service gro!"2s reso!rce clear a fa!lted non,"ersistent reso!rce in a s"ecific gr"
hagrp -list hagrp -dep 4group5 hagrp -display 4group5 hagrp -resources 4group5
dis"la the c!rrent state of the service gro!" hagrp -state 4group5
hagrp -clear 4group5 >-sys? 4host5 4sys5 D remove the host hagrp -modify grp=@lnrssd &ystemList -delete 4hostname5
D add the new host (donAt forget to state its position) hagrp -modify grp=@lnrssd &ystemList -add 4hostname5 * D update the autostart list hagrp -modify grp=@lnrssd !uto&tartList 4host5 4host5
%nfree0e a service gro!" (enable onlining and hagrp -unfree@e 4group5 >-persistent?
offlining)
note3 use the following to check Chagrp -display 4group5 1 grep T:ro@enC haconf -makerw hagrp -enable 4group5 >-sys? haconf -dump -makero 0ote to check run the following command Chagrp -display 1 grep ;nabledC haconf -makerw hagrp -disable 4group5 >-sys? haconf -dump -makero 0ote to check run the following command Chagrp -display 1 grep ;nabledC
$esources
haconf -makerw hares -add app( (isk roup groupw hares -modify app( ;nabled * hares -modify app( (isk roup appdg hares -modify app( &tart$olumes + haconf -dump -makero haconf -makerw hares -delete 4resource5 haconf -dump -makero haconf -makerw hares -modify app( haconf -dump -makero ;nabled *
add a reso!rce
delete a reso!rce
change a reso!rce
change a reso!rce attrib!te to be locall hares -local 4resource5 4attribute5 4value5 .ide list the "arameters of a reso!rce list the reso!rces list the reso!rce de"endencies
hares -display 4resource5 hares -list hares -dep
$esource "perations
3nline a reso!rce 3ffline a reso!rce
hares -online 4resource5 >-sys? hares -offline 4resource5 >-sys?
dis"la the state of a reso!rce( offline- online- hares -state etc) dis"la the "arameters of a reso!rce 3ffline a reso!rce and "ro"agate the command to its children $a!se a reso!rce agent to immediatel monitor the reso!rce $learing a reso!rce (a!tomaticall initiates the onlining)
hares -display 4resource5 hares -offprop 4resource5 -sys 4sys5 hares -probe 4resource5 -sys 4sys5 hares -clear 4resource5 >-sys?
$esource T!pes
Add a reso!rce t "e Remove a reso!rce t "e List all reso!rce t "es )is"la a reso!rce t "e List a "artitc!lar reso!rce t "e
hatype -add 4type5 hatype -delete 4type5 hatype -list hatype -display 4type5 hatype -resources 4type5
$esource Agents
add a agent remove a agent change a agent list all ha agents
pkgadd -d . 4agent package5 pkgrm 4agent package5 n)a haagent -list
)is"la agents r!n,time information i.e has it haagent -display 4agent=name5 started- is it r!nning 4 )is"la agents fa!lts
haagent -display 1grep :aults