Sie sind auf Seite 1von 4

Redhat Cluster How To itbrainstech https://itbrainstech.wordpress.

com/2015/08/09/redhat-cluster-how-to/

PostedonAugust9,2015byitbrainstech
Aclusteristwoormorecomputers(callednodesormembers)thatworktogethertoperformatask.There
arefourmajortypesofclusters:

1.Storage
2.Highavailability
3.Loadbalancing
4.Highperformance

Storageclustersprovideaconsistentfilesystemimageacrossserversinacluster,allowingtheserversto
simultaneouslyreadandwritetoasinglesharedfilesystem

Highavailabilityclustersprovidecontinuousavailabilityofservicesbyeliminatingsinglepointsoffailure
andbyfailingoverservicesfromoneclusternodetoanotherincaseanodebecomesinoperative.

Loadbalancingclustersdispatchnetworkservicerequeststomultipleclusternodestobalancetherequest
loadamongtheclusternodes.

Highperformanceclustersuseclusternodestoperformconcurrentcalculations.Ahighperformance
clusterallowsapplicationstoworkinparallel,thereforeenhancingtheperformanceoftheapplications.

1 of 4 6/8/2016 7:01 AM
Redhat Cluster How To itbrainstech https://itbrainstech.wordpress.com/2015/08/09/redhat-cluster-how-to/

1.CreatetheYumrepositoriescapabletorungroupinstallandinstallthepackagesasbelowonboththe
cluster.Youcanmakeathirdclustermanagementnode,youjustneedtoinstallHighAvailability
Managementgrouponthatnode.Ifyouwantyoucanmakeeachnodeaclustermanagementnode
byinstallingthisgroupandstartingluciservice.

Mountthecdromandmakeyumrepository.

#yumgroupinstallHighAvailability

#yumgroupinstallHighAvailabilityManagement

1.Start/Stoptheservicesonboththenodes:

serviceiptablesstop
serviceip6tablesstop
servicericcistart
servicergmanagerstart
servicemodclusterdstart

serviceNetworkManagerstop

Enable/Disablethebelowservicesonboththenodes

#chkconfigiptableso
#chkconfigip6tableso
#chkconfigriccion
#chkconfigNetworkManagero

#chkconfigrgmanageron
#chkconfigmodclusterdon

1.Makesuretheselinuxisdisabledonboththenodes.
2.Makethepasswordlesssshauthenticationonbothnodes
3.Makesurethe/etc/hostsfileisupdatedwithnamesofboth/allthemachines.

Createthepasswordforricciuseronboththenodes

passwdricci

Startluciserviceifitisnotrunningandpointyourbrowsertohttps://yourserver:8084
(https://yourserver:8084)

2 of 4 6/8/2016 7:01 AM
Redhat Cluster How To itbrainstech https://itbrainstech.wordpress.com/2015/08/09/redhat-cluster-how-to/

1.Checkifthecmanserviceisstarted,itshouldbestartedautomaticallyoncethenodesareconnected
withcluster.

1.Nowcreateanewclusterandaddthenodesinit.Oncethenodesareadded,thecmanserviceshould
bestartedautomaticallyonthenodes.Ifnot,startitmanually.

1.ConfigureFencing(Fortestingpurpose,youcanignorefencing)

ConfiguretheFailoverDomain

ConfigureResources
1.Addipaddressastheresourcewhichisgoingtobefloatingonthenodes
2.Addthescript/etc/init.d/httpdasanotherresource

Addresourcesintheservicegroup

Servicecmancannotbestartedifthefilecluster.confnotfound

Ifthefilecluster.confnotfound,itcanbecreatedwithbelowstepsinCLI

ccshhostcreateclusterclustername

Toaddahost

ccshnode01.example.comaddnodenode01.example.comccshnode01.example.comaddnode
node02.example.comccshnode01.example.comaddnodenode03.example.com

Copythefilecluster.conftoallthenodesofcluster

Tocopytheconfigurationfilefromonenodetoanothernodesetupthepasswordlessauthentication
betweenallthenodes.

#servicecmanstart

3 of 4 6/8/2016 7:01 AM
Redhat Cluster How To itbrainstech https://itbrainstech.wordpress.com/2015/08/09/redhat-cluster-how-to/

1.Howtocheckstatusofcluster?

clustat

2.Start/enableaserviceonanode

clusvcadme<servicename>m<clustermember>

3.Disableaserviceonanode

clusvcadmd<servicename>

4.Relocatetheservicetoanothernode

clusvcadmr<service_name>m<member>

Tostoptheclusterfollowthebelowsteps:

1.servicemodclusterdstop
2.servicecmanstop
3.servicergmanagerstop

Taggedclusternode,clusternodes,Highavailability

1.Pingback:RedhatClusterHowTo|itbrainstech

CreateafreewebsiteorblogatWordPress.com.|TheGatewayTheme.

4 of 4 6/8/2016 7:01 AM

Das könnte Ihnen auch gefallen