redhat ha cluster with pacemaker

19
REDHAT HA CLUSTER WITH PACEMAKER Indika Dias

Upload: indika-dias

Post on 15-Jul-2015

196 views

Category:

Technology


9 download

TRANSCRIPT

Page 1: Redhat ha cluster with pacemaker

REDHAT HA CLUSTER WITH

PACEMAKER

Indika Dias

Page 2: Redhat ha cluster with pacemaker

REDHAT CLUSTER MODE

Storage

High Availability

Load Balancing

High Performance

Page 3: Redhat ha cluster with pacemaker

REDHAT CLUSTER SUIT COMPONENTS

Cluster infrastructure

Basic functions to work as a cluster

High-availability Service Management

Provide failover services from one node to other

Cluster administration tools

Setting up ,configuring, Management cluster

Linux Virtual Server (LVS)

For IP Load Balancing

3rd Party components

GFS/GFS2 -Cluster file system used with RHCS

CLVM -Cluster logical volume manager –Volume management with RHCS

GNBD -Global Network Block Device – making available of block storage to GFS

Page 4: Redhat ha cluster with pacemaker
Page 5: Redhat ha cluster with pacemaker

CLUSTER INFRASTRUCTURE

Cluster Management

Lock Management

Fencing

Cluster configuration Management

Page 6: Redhat ha cluster with pacemaker

CLUSTER MANAGEMENT

Manage cluster quorum & cluster management

CMAN distributed in all nodes

Cluster quorum prevent stopping of services if half

or fewer nodes are active by allowing cluster

instances to access resources without other

instances involvement

Page 7: Redhat ha cluster with pacemaker

LOCK MANAGEMENT

To synchronize cluster nodes access to shared

resources.

GFS - synchronize access to file meta data

CLVM- synchronize update to LVM

Page 8: Redhat ha cluster with pacemaker

FENCING

Disconnection of node from cluster’s shared

storage

o Power fencing

integrate

HP ilo,DRAC/MC,Blade centers

external

WTI power controllers

o SCSI3 Persistent Reservation Fencing

o Fiber Channel switch fencing

o GNBD Fencing

Page 9: Redhat ha cluster with pacemaker

POWER FENCING

Page 10: Redhat ha cluster with pacemaker
Page 11: Redhat ha cluster with pacemaker
Page 12: Redhat ha cluster with pacemaker

CLUSTER CONFIGURATION SYSTEM

Make sure cluster configuration up to date in every

node

Page 13: Redhat ha cluster with pacemaker

CLUSTER CREATION WITH PCS

Pacemaker is cluster resource manager

detection of services-level or node failure &

recovery

No requirement of shared storage

Support quorate & resource driven clusters

support service types

Clones : service should up in multiple

nodes

Multi-state service with multi-mode

Page 14: Redhat ha cluster with pacemaker
Page 15: Redhat ha cluster with pacemaker
Page 16: Redhat ha cluster with pacemaker

#yum install pcs fence-agents

#pcs cluster auth node1 node2 -u hacluster –p

password

#pcs cluster --start –name clustername node1 node2

#pcs cluster enable –all

Page 17: Redhat ha cluster with pacemaker

CREATE FENCING DEVICE

#pcs stonith list

#pcs create vmstonth fence_hpblade auth=password

ipaddr=192.168.0.1 login=Administrator

passwd=password

Page 18: Redhat ha cluster with pacemaker

CREATE CLUSTER RESOURCES

#pcs resource create virtualip IPaddr2

ip=192.168.100.20 cidr_netmask=24 monitor

interval=30s

#pcs resource create web apache

configfile=/etc/httpd/conf/httpd.conf –group apache

Page 19: Redhat ha cluster with pacemaker

MONITOR CLUSTER

#pcs status

#pcs cluster status

#pcs cluster stop –all

#pcs cluster kill