19vcs6unixreconfigclust trans
TRANSCRIPT
-
7/24/2019 19vcs6unixreconfigclust Trans
1/23
Veritas Cluster Server 6.0 for UNIX:Cluster Management
Lesson 2: Reconfguring Cluster Membership
-
7/24/2019 19vcs6unixreconfigclust Trans
2/23
Lesson 1: Service Group Dependencies
Lesson 2: Reconfguring Cluster Membership
Lesson 3: Strtup nd !ilover "olicies
Lesson #: $lternte %et&or' Confgurtions
Lesson (: )igh $vilbilit* in the +nterprise
Lesson introduction
-
7/24/2019 19vcs6unixreconfigclust Trans
3/23
Toic !"#ectives
$dding s*stem to
cluster
$dd ne& s*stem to running ,CS cluster-
Merging clusters Merge t&o running ,CS clusters-
$dditionlreconfguring ts's
"er.orm dditionl confgurtion ts's toenble services to use dditionl cluster
nodes-
Lesson o"#ectives
-
7/24/2019 19vcs6unixreconfigclust Trans
4/23
$.ter completing this topic/ *ou&ill be ble to dd s*stem to cluster-
$dding a s%stem to acluster
-
7/24/2019 19vcs6unixreconfigclust Trans
5/23
$dding a s%stem to a running VCS cluster
$dd ne& s*stem to running,CS cluster:
0eeping the pplictionservices nd ,CS vilble
+nbling the ne& s*stem to
run ll o. the pplictionservices-
$ssumptions:
&o or more s*stems ,CS so.t&re is not instlled on the ne& s*stem
Shred storge cn be connected to ll s*stems
s3 s#
s2
-
7/24/2019 19vcs6unixreconfigclust Trans
6/23
1
1
1
2
&rearing t'e ne( s%stem for clusteredalication services
nstll n* necessr* ppliction
so.t&re on the ne& s*stem-
Confgure n* ppliction resourcesnecessr* to support clusteredpplictions-
Chnge .rom crossover cblesto hubs or s&itches/ i.pplicble-
+nsure tht the privtenet&or' is not completel*disconnected &hile m'ing
chnges-
"h*sicll* cble clusterinterconnect-
+nsure the ne& s*stem is
cpble o. running pplictionservices in the cluster-
+mple confgurtion ts's:
Crete user ccounts
Cop* pplictionconfgurtion fles
Crete mount points
,eri.* shred storge ccess
1
3
-
7/24/2019 19vcs6unixreconfigclust Trans
7/23
Installing VCS on a single s%stem
,eri.* s*stem rediness on the ne&s*stem-
Log in s root nd nvigteto the so.t&re distribution-
./installvcs -precheck
Chnge into the instlldirector*-
1#
4n the ne& s*stem
nstll ,CS using installoption-
Do not confgure ,CS &henprompted-
nstll ,CS on the ne& s*stem-1(
./installvcs -install
-
7/24/2019 19vcs6unixreconfigclust Trans
8/23
15
$dding t'e ne(l% installed s%stem to t'ecluster
$dd the node to the eisting cluster-
Cretes llttab/ sysname
Confgures dis'6 or server6bsed.encing/ i. present on eistingcluster
!his ssumes .encing is lred*confgured on other s*stems7 there.oreSCS63 support hs been verifed-
Copies llthosts/ gabtab
Discovers net&or' inter.ces
./installvcs -addnode
8oins the ne& node to the clustermembership
Note: . the originl cluster
&s instlled &ith installsf/run installsf&ith theaddnodeoption-
-
7/24/2019 19vcs6unixreconfigclust Trans
9/23
Reconfgure service groups torun on the ne& s*stem/ i.pproprite- See detils lter
in the lesson-
4n the ne&l* dded s*stem
Verif%ing t'e ne( s%stem
,eri.* service re running ndcluster membership includes llnodes-
lltconfig
lltstat nvv active
vxfenadm -d
vxfenconfig -l
gabconfig -a"ort / b/ nd h
memberships should include
ll the originl s*stems ndthe ne& s*stem-
19
-
7/24/2019 19vcs6unixreconfigclust Trans
10/23
$.ter completing this topic/ *ou&ill be ble to merge t&o running,CS clusters-
Merging clusters
-
7/24/2019 19vcs6unixreconfigclust Trans
11/23
Merging t(o running VCS clusters
$ssumptions:
$ll s*stems hve the sme operting s*stemnd Storge !oundtion versions-
$ll service groups cn run on ll s*stems-
"rivte net&or's o. both clusters reisolted be.ore the merger-
$ll s*stems cn ccess shred storge-
s3s#
s2s1
4bective:
Merge t&o running ,CSclusters while maximizingapplication services and VCSavailability.
Targetcluster
Retin clusterD .ormerged .our6node cluster
Sourcecluster
Confgurtionto beetrctednd ddedto trgetcluster
-
7/24/2019 19vcs6unixreconfigclust Trans
12/23
11
$dding s%stems to t'e target clustercon)guration
Modi.* ,CS communiction fles onech s*stem in the trget cluster torecogni;e the s*stems to be dded.rom the source cluster-
+dit /etc/llthoststo ddentries .or the ne& s*stems.rom the source cluster-
+dit /etc/gabtabtoincrese the noption to
gabconfigb* the number o.s*stems in the sourcecluster-
!
-
7/24/2019 19vcs6unixreconfigclust Trans
13/23
+nsure ech s*stem is cpble
o. running ppropriteppliction services-
13
1(
&rearing s%stems for clusteredalication services
nstll nd confgure n* dditionl
ppliction so.t&re re>uired tosupport the merged confgurtion onll s*stems-
$gents should onl* beinstlled7 *types.cfreincluded lter-
nstll n* dditionl ,CS gents onech s*stem-
+mple confgurtion ts's:
Crete user ccounts
Cop* pplictionconfgurtion fles
Crete mount points
,eri.* shred storge ccess
1#
Cop* n* dditionl custom gents toll s*stems-
nstlltion m* involve: !ree;ing s*stems
S&itching pplictions Rebooting s*stems
-
7/24/2019 19vcs6unixreconfigclust Trans
14/23
15
Merging service grou con)gurations
+trct service group confgurtions.rom the source cluster-
$dd the service group confgurtionsto the trget cluster-
15b
4n the sourcecluster
4n the targetcluster
+dit main.cmd- Retin service group
confgurtion commnds-
Retin *types.cfincludes-
hacf cftocmd \/etc/!"#vcs/conf/config
Cop* the fltered main.cmdto s*stem in the targetcluster-
haconf -makerw
+ecute the flteredmain.cmd
haconf dump -makero
sh main.cmd
-
7/24/2019 19vcs6unixreconfigclust Trans
15/23
$ppliction services re le.trunning on the s*stems-
1?
Stoing cluster services in t'e sourcecluster
Stop cluster services @,CS/ .encing/G$=/ LLA on the s*stems in thesource cluster-
gabconfig -$
lltconfig -$
/sbin/vxfen-shutdown
4n echs*stem
hastop all -force
4n the sourcecluster
-
7/24/2019 19vcs6unixreconfigclust Trans
16/23
Modif%ing VCS communications on t'esource cluster
Reconfgure ,CS communictionmodules on ll s*stems in thesource cluster nd ph*sicll*connect privte net&or's-
+dit /etc/llttabndmodi.* the cluster id to bethe sme s the trgetcluster-
+dit /etc/gabtabnd setthenoption to gabconfigto
the totl number o. s*stemsin the combined cluster-
+dit /etc/llthoststoensure ech s*stem hs uni>ue entr* in thecombined cluster-
19
!here m* be other directives in
/etc/llttabtht need modifction/ such s set-addr/
include/ nd exclude-
4n ech s*stem in the sourcecluster
-
7/24/2019 19vcs6unixreconfigclust Trans
17/23
$lterntel*/ use LL/ G$=/.encing/ nd ,CS strtupfles-
4n ech s*stem in the sourcecluster
Starting cluster services on s%stems in t'esource cluster
Strt cluster services on s*stems inthe source cluster nd veri.* clustermembership-
lltconfig -c
sh /etc/gabtab
hastart
gabconfig a
vxfen_startup_file
"ort / b/ nd hmemberships should include
the ne& s*stem
11B
-
7/24/2019 19vcs6unixreconfigclust Trans
18/23
$.ter completing this topic/ *ou&ill be ble to reconfgure othercomponents &ithin mergedcluster-
$dditionalrecon)guration tas*s
-
7/24/2019 19vcs6unixreconfigclust Trans
19/23
11
13
Installing agents and con)guring triggers
nstll n* necessr* ,CS gents
tht re not instlled utomticll*b* C"-
Cop* nd merge triggers/ snecessr*-
nstll/ but do not confgure/
,CS gents-
=ecuse the trigger scriptsre in use on the eistingclusters/ merge the scriptsin temporr* director*-
Depending on the chngesre>uired/ it m* be
necessr* to stop clusterservices on the s*stemsbe.ore cop*ing the mergedtrigger scripts-
12 Cop* custom gents to necessr*s*stems-
-
7/24/2019 19vcs6unixreconfigclust Trans
20/23
Udating and testing service grou andresource con)guration
pdte service group nd resource confgurtions to use the ne&s*stems-
hagrp modify group%uto#tart&ist add system
haconf -makerw
hagrp modify group#ystem&ist add systempriority
,eri.* updtes b* running virtul fre drills nd s&itching theppliction services to the ne& s*stems-
haconf dump -makero
havfd group sys system -v
1#
1(
hagrp switch group to system
-
7/24/2019 19vcs6unixreconfigclust Trans
21/23
Udate locali+ed resources
pdte resource confgurtions to use the ne& s*stems-
hares modify resourceattribute sys system
haconf -makerw
hares local resourceattribute
,eri.* updtes-
haconf dump -makero
havfd group sys system -v
15
1
hagrp switch group to system
Customized resource type attributes require special consideration.See the Veritas Cluster Server Administrator's Guide.
-
7/24/2019 19vcs6unixreconfigclust Trans
22/23
Lesson summar%
0e* points
-
7/24/2019 19vcs6unixreconfigclust Trans
23/23
,nd of &resentation