oracle 10g clusterware (crs) overview 18 aug 2005 john sheaffer platform solution specialist...

19
Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist [email protected]

Upload: sharyl-jacobs

Post on 13-Dec-2015

214 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

Oracle 10gClusterware (CRS)

Overview

18 Aug 2005

John Sheaffer

Platform Solution Specialist

[email protected]

Page 2: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

Topics

What is the Oracle Clusterware Clusterware components

– Daemons– VIP– OCR & Voting Files

Managing the Oracle Clusterware Q&A

Page 3: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

Server 1Server 1 Server 2Server 2 Server NServer N

• • •

ClusterWareClusterWare ClusterWareClusterWare ClusterWareClusterWare

Key Software Components

Server 3Server 3

ClusterWareClusterWare

OSOS OSOS OSOSOSOS

Raw / CFS / NAS / ASM

Oracle RACOracle RAC

Listener

Oracle RACOracle RAC

Listener

Oracle RACOracle RAC

Listener

Oracle RACOracle RAC

Listener

Page 4: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

What is the Oracle Clusterware?

Oracle’s cluster manager layer for 10g +– Provides Cluster Management Services– Provides High Availability Services– Incorporates clustering technology licensed from

True64 True Clusters– No additional cost – supplied with 10g Database– Same implementation on all platforms

– Eliminates the need for 3rd party clusterware cost, integration, and support

Page 5: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

Clusterware Components

crsd – Cluster Resource Services Daemon cssd – Cluster Synchronization Services Daemon evmd – Event Manager Daemon oprocd / hangcheck_timer – Node hang detector

VIP – Virtual IP OCR – Oracle Cluster Repository Voting Disk – Establishes quorum

Page 6: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

Clusterware Components

GSD – Global Services Daemon ONS – Oracle Notification Services Daemon

Page 7: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

crsd – CRS Daemon

Monitors the resources that are part of the cluster

– Resource can be: Listener VIP ASM Instance Database Instance AWM Service

Starts/Stops/Checks/Fails-over resources Maintains config information in the OCR

Page 8: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

cssd – CSS Daemon

Provides Group Services to the cluster– Tracks who is part of the cluster– Notifies CRS, RAC, and other cssds when nodes

join/leave cluster Provides CRS locking services

– Locking w/in clusterware to coordinate actions across the cluster

– Entirely separate from Cache Fusion locking

Basically, CSS is the “Node Monitor”

Page 9: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

evmd – Event Manager Daemon

Provides an event-based messaging channel between crsd, cssd, and other processes

Can be extended with custom event handler scripts which evmd executes upon receipt of an event

– Example: Node down send e-mail alert Node down log a trouble ticket

Page 10: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

VIP – Virtual IP

Each server has:– Static IP racnode1 (145.1.1.101)– VIP racnode1-vip (145.1.1.201)

Clients always use the VIP

VIP allows rapid detection of server failures

Page 11: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

VIP Failover

(Static)x.x.x.101

(Static)x.x.x.102

(VIP)x.x.x.201

(VIP)x.x.x.202

mydb = x.x.x.201x.x.x.202

Page 12: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

VIP Failover

(Static)x.x.x.101

(Static)x.x.x.102

(VIP)x.x.x.201

(VIP)x.x.x.202

TCP Reset

mydb = x.x.x.201x.x.x.202

Page 13: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

VIP Failover

(Static)x.x.x.101

(Static)x.x.x.102

(VIP)x.x.x.201

(VIP)x.x.x.202

mydb = x.x.x.201x.x.x.202

Page 14: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

OCR & Voting Disks

Oracle Cluster Repository (OCR)– Binary file containing a database (state directory) of CRS

configuration & status information– Maintained by the CRS Daemon– Can be mirrored on 10g R2

Voting Disk– Used by CSS to resolve split-brain scenarios– Can be 1 or 3 files in 10g R2

These files must be outside of ASM Can be either raw partitions or regular files

Page 15: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

Querying CRS status[oracle]$ $CRS_HOME/bin/crs_stat

NAME=ora.linux1.vipTYPE=applicationTARGET=ONLINESTATE=ONLINE on linux1

NAME=ora.linux1.ASM1.asmTYPE=applicationTARGET=ONLINESTATE=ONLINE on linux1

NAME=ora.linux2.vipTYPE=applicationTARGET=ONLINESTATE=ONLINE on linux1

NAME=ora.linux2.ASM2.asmTYPE=applicationTARGET=ONLINESTATE=OFFLINE on linux2

NAME=ora.ract.mydb1.instTYPE=applicationTARGET=ONLINESTATE=ONLINE on linux1

NAME=ora.ract.mydb2.instTYPE=applicationTARGET=ONLINESTATE=OFFLINE on linux2

...

Page 16: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

Starting / Stopping CRS

/etc/init.d/init.crs start /etc/init.d/init.crs stop

/etc/init.d/init.crs disable /etc/init.d/init.crs enable

Page 17: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

Starting / Stopping Resources

[oracle]$ srvctl stop database –d mydb– Stops all RAC instances

[root]# srvctl stop nodeapps –n racnode1– Stops Listener, VIP, GSD, ONS

[oracle]$ srvctl start asm –n racnode1– Starts ASM on racnode1 and all required dependencies

[oracle]$ srvctl start instance –d mydb –i mydb1– Starts one instance and all required dependencies

Page 18: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

AQ&Q U E S T I O N SQ U E S T I O N S

A N S W E R SA N S W E R S

Page 19: Oracle 10g Clusterware (CRS) Overview 18 Aug 2005 John Sheaffer Platform Solution Specialist john.sheaffer@oracle.com

Thank You

[email protected]