clustered applications with - red...

157

Upload: lamdang

Post on 06-Mar-2018

220 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 2: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Lon Hohberger - Supervisor, Software EngineeringThomas Cameron, RHCA, RHCSS, RHCDS, RHCVA, RHCX

- Managing Solutions ArchitectRed HatWednesday, May 4th, 2011

Clustered Applications with

Red Hat Enterprise Linux 6

Page 3: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Agenda

Page 4: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Agenda

● Disclaimer

● Red Hat and Clustering

● Architecture

● Configure the Shared Storage (iSCSI Target)

● Configure the Shared Storage (Raw Storage)

● Configure the Shared Storage (iSCSI Initiator)

● Install web server software on both nodes

Page 5: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Agenda

● Install the clustering software on the nodes

● High Availability● Resilient Storage

● Install the cluster management software on the management server

● High Availability Management● Connect to the web management UI

● Define a Cluster

● Create Cluster Filesystem

Page 6: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Agenda

● Mount point clustered vs. persistent

● Define the fence device

● Assign hosts to fence device ports

● Define Failover Domains

● Define Resources For Clustered Web Service

● Define Clustered Web Service

● Test Clustered Web Service

● Test Failover

Page 7: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Disclaimer

● This presentation was developed on Red Hat Enterprise Linux 6.1 beta. You may see slight differences in the UI between now and 6.1 release. Then again, this presentation might burst into flames, too.

Page 8: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Red Hat and Clustering

Page 9: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Red Hat and Clustering

● Red Hat leads the way in Open Source clustering

● Acquired Sistina for $31 million in early 2004, including Global Filesystem and ClusterSuite.

● Made the code Open Source in mid-2004.

● Red Hat now offers Resilient Storage (clustered filesystem - GFS2) and High Availability (high availability application services) as layered products.

Page 10: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Architecture

Page 11: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Architecture

● Two node cluster – neuromancer.tc.redhat.com and finn.tc.redhat.com – each installed with @base

neuromancer

finn

Page 12: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Architecture

● neuromancer and finn are managed by lady3jane.tc.redhat.com – also installed with @base

neuromancer

finn

lady3jane (conga)

Page 13: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Architecture

● neuromancer and finn are iSCSI initators connecting to molly.tc.redhat.com, an iSCSI target

neuromancer (initiator)

finn (initiator)

lady3jane (conga)

molly (target)

Page 14: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Architecture

● Two examples will demonstrated today● Apache web server cluster● Cluster of virtual machines (time permitting)

Page 15: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (iSCSI Target)

Page 16: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (iSCSI Target)

● The machine which will be the target should be subscribed to the Red Hat Enterprise Linux Server (v. 6 for [arch]) on RHN or RHN Satellite

Page 17: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 18: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (iSCSI Target)

● Install the Network Storage Server (storage-server) group using yum

Page 19: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 20: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 21: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (Raw Storage)

Page 22: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (Raw Storage)

● In this example, we'll use set up a logical volume on molly.

● fdisk● pvcreate● vgcreate● lvcreate

Page 23: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 24: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 25: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 26: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 27: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 28: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (iSCSI Target)

Page 29: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (iSCSI Target)

● In this example, we'll set up molly as an iSCSI target● /etc/tgtd/targets.conf

Page 30: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 31: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (iSCSI Target)

● chkconfig tgtd on

● service tgtd restart

● tgtadm --lld iscsi --mode target --op show

Page 32: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 33: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 34: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (iSCSI Initiator)

Page 35: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (iSCSI Initiator)

● Subscribe the server to the “High Availability” and “Resilient Storage” child channel for RHEL Server

Page 36: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 37: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (iSCSI Initiator)

● Install the “iSCSI Storage Client” group

Page 38: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 39: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (iSCSI Initiator)

● chkconfig on and restart the iscsid (first) and iscsi services

Page 40: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 41: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (iSCSI Initiator)

● Use iscsiadm to query the target (use the ip address, not the domain name)

Page 42: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 43: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (iSCSI Initiator)

● Use iscsiadm to log in (use the ip address, not the domain name)

Page 44: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 45: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (iSCSI Initiator)

● Verify there is a new block device available

Page 46: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 47: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (iSCSI Initiator)

● Repeat these steps on the other node(s)

Page 48: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 49: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Configure the Shared Storage (iSCSI Initiator)

● We'll create the filesystem later, after the cluster is defined

Page 50: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Install web server software on both nodes

Page 51: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Install web server software on both nodes

● yum groupinstall “Web Server”

● Verify httpd is chkconfig'd off (we'll let the cluster manage it), later

● Set the “Listen” address to the IP address we're going to run the clustered web server on (armitage.tc.redhat.com or 172.31.100.17)

Page 52: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 53: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 54: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Install the clustering software on the nodes

Page 55: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Install the clustering software on the nodes

● There are two components of the cluster● High availability application service (“High Availability”

package group)● Clustered filesystem (GFS2, or “Resilient Storage”

package group)

Page 56: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Install the clustering software on the nodes

● Install the High Availability group first● yum groupinstall “High Availability”

Page 57: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 58: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Install the clustering software on the nodes

● chkconfig ricci on

● passwd ricci

● service ricci start

Page 59: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 60: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Install the clustering software on the nodes

● Install the Resilient Storage package group next● yum groupinstall “Resilient Storage”

Page 61: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 62: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Install the cluster management software on the management server

Page 63: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Install the cluster management software on the management server● Install the High Availability Management package

group● yum groupinstall “High Availability Management”

Page 64: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 65: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 66: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Install the cluster management software on the management server● chkconfig luci on

● service luci start

● Open the URL listed when luci starts (https://host.domain.tld:8084)

Page 67: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 68: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Connect to the web management UI

Page 69: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Connect to the web management UI

● You will get an SSL warning, that's expected and normal

Page 70: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 71: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 72: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 73: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Define a Cluster

Page 74: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Define a Cluster

● In this case, two nodes● neuromancer.tc.redhat.com● finn.tc.redhat.com

Page 75: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 76: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 77: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Connect to the web management UI

● Note that when dealing with RHEL 6.1 clusters, the UI is asking for ricci's password, not root's!

Page 78: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 79: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 80: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 81: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 82: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Create Cluster Filesystem

Page 83: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Create Cluster Filesystem

● Now that the cluster is up, we can set up the shared storage from the hosts.

● Verify each node is using clustered logical volumes

Page 84: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 85: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Create Cluster Filesystem

● From a node:● fdisk shared storage● pvcreate● vgcreate● vgscan on all nodes● vgdisplay to get extents● lvcreate● lvscan on all nodes● mkfs.gfs2● make mount persistent (optional)

Page 86: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Create Cluster Filesystem

● Mount point clustered vs. persistent

Page 87: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 88: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 89: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 90: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 91: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 92: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 93: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 94: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 95: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 96: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Define the fence device

Page 97: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Define the fence device

● In this case, a WTI IPS-800 remote power switch

Page 98: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 99: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 100: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 101: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Assign hosts to fence device ports

Page 102: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Assign hosts to fence device ports

● Define the power port for each server

Page 103: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 104: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 105: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 106: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 107: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 108: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 109: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Define Failover Domains

Page 110: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Define Failover Domains

● prefer_neuromancer

● prefer_finn

Page 111: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 112: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 113: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 114: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Define Resources For Clustered Web Service

Page 115: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Define Resources For Clustered Web Service

● Shared Storage (if not in fstab)

● IP address

● Apache Resource

Page 116: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 117: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 118: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 119: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 120: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 121: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 122: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 123: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Define Clustered Web Service

Page 124: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Define Clustered Web Service

● Define service

● Add storage resource (if not in fstab)

● Add ip address resource

● add script resource

Page 125: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 126: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 127: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 128: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 129: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 130: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 131: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 132: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 133: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 134: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 135: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 136: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 137: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 138: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 139: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 140: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Test Clustered Web Service

● From the web UI

● From the command line

Page 141: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 142: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 143: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 144: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 145: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Test Failover

● Crash the app several times

● Crash the server

Page 146: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 147: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 148: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 149: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 150: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 151: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 152: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 153: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,
Page 154: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Questions?

Page 155: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Thank You!

● If you liked today's presentation, please let us know!

● Lon's contact info:● [email protected] ● http://people.redhat.com/lhh/

● Thomas's contact info:● [email protected]● choirboy on #rhel on Freenode● thomasdcameron on Twitter● http://people.redhat.com/tcameron

Page 156: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,

Additional Resources

● RHEL 6.1 Beta Clustering Guide ● http://bit.ly/eePh7U

● RH436: Red Hat Enterprise Clustering and Storage Management

● http://bit.ly/9KEDhZ

● Red Hat Cluster Wiki● http://sources.redhat.com/cluster/wiki/

● Red Hat Mailing Lists● http://listman.redhat.com/mailman/listinfo/linux-cluster

Page 157: Clustered Applications with - Red Hatpeople.redhat.com/tcameron/Summit11/clustering/cameron_hohberger_… · Red Hat Enterprise Linux 6. ... High Availability ... In this example,