Professional Documents
Culture Documents
Les 09
Les 09
Objectives
RAC DB Inst
Listener
Listener
CRS HOME
Protected App B
ORACLE_HOME
ORACLE_HOME
Node 1
CRS HOME
Node 2
Oracle Clusterware
system files
9-3
Node 3
CRS HOME
oprocd
evmd
evmlogger
callout
callout
callout
9-4
ocssd
Voting
disk
crsd
racgwrap
+
racgmain
OCR
racgevtf
racgimon
racgimon
racgimon
action
action
action
9-6
CRS Resources
Action script
Privileges
Dependencies
crs_register
crs_start
crs_relocate
9-7
crs_stat
crs_stop
crs_unregister
RAC Resources
$ <CRS HOME>/bin/crs_stat -t
Name
Type
Target State Host
---------------------------------------------------------------ora.atlhp8.ASM1.asm
application ONLINE ONLINE atlhp8
ora.atlhp8.LISTENER_ATLHP8.lsnr application ONLINE ONLINE atlhp8
ora.atlhp8.gsd
application ONLINE ONLINE atlhp8
ora.atlhp8.ons
application ONLINE ONLINE atlhp8
ora.atlhp8.vip
application ONLINE ONLINE atlhp8
ora.atlhp9.ASM2.asm
application ONLINE ONLINE atlhp9
ora.atlhp9.LISTENER_ATLHP9.lsnr application ONLINE ONLINE atlhp9
ora.atlhp9.gsd
application ONLINE ONLINE atlhp9
ora.atlhp9.ons
application ONLINE ONLINE atlhp9
ora.atlhp9.vip
application ONLINE ONLINE atlhp9
ora.xwkE.JF1.cs
application ONLINE ONLINE atlhp8
ora.xwkE.JF1.xwkE1.srv
application ONLINE ONLINE atlhp8
ora.xwkE.JF1.xwkE2.srv
application ONLINE ONLINE atlhp9
ora.xwkE.db
application ONLINE ONLINE atlhp9
ora.xwkE.xwkE1.inst
application ONLINE ONLINE atlhp8
ora.xwkE.xwkE2.inst
application ONLINE ONLINE atlhp9
9-8
Node1
Node3
CSS
CSS
We all see
CSS
Nodes can
see each other.
1&2&3
We all see
1&2&3
We all see
1&2&3
Voting disk
Split-brain
Node2
Node1
9 - 11
CSS
I do not see 3
I see 1&2
2 see 1&2
=>
We should
evict 3!
Node3
CSS
1&I see
CSS
1&2
I see 3
Voting disk
Ive been
evicted!
Id better stop
MISSCOUNT:
DISKTIMEOUT:
Represents disk I/O timeouts outside reconfiguration
Defaults to 200 seconds
Can be temporarily changed when experiencing very long I/O
latencies to voting disks:
1. Shut down Oracle Clusterware on all nodes but one.
2. As root on available node, use: crsctl set css disktimeout
3. Reboot available node.
4. Restart all other nodes.
M+1
9 - 13
9 - 14
OCR Architecture
Node1
Node2
Node3
OCR cache
OCR cache
OCR cache
CRS
process
CRS
process
CRS
process
Client
process
Shared
storage
9 - 17
OCR
primary
file
Client
process
OCR
mirror
file
SYSTEM
evm
crs
OCR
NODEAPPS
LOG
DATABASE
ASM
DATABASES
ONS
CRS
9 - 19
SERVICE
INSTANCE
-upgrade
-repair ocr
-downgrade
ocrconfig
-backuploc
-showbackup
-manualbackup
-restore
-overwrite
-replace ocrmirror
ocrdump
9 - 20
-replace ocr
ocrcheck
02:54
02:54
22:54
18:54
02:54
02:54
14:54
backup00.ocr
day_.ocr
backup01.ocr
backup02.ocr
day.ocr
week_.ocr
week.ocr
$ ocrconfig showbackup
# ocrcheck
Status of Oracle Cluster Registry is as follows:
Version
:
2
Total space (kbytes)
:
200692
Used space (kbytes)
:
3752
Available space (kbytes) :
196940
ID
: 495185602
Device/File Name
: /oradata/OCR1
Device/File integrity check succeeded
Device/File Name
: /oradata/OCR2
Device/File needs to be synchronized with the other device
# ocrconfig replace ocrmirror /oradata/OCR2
9 - 25
9 - 26
OCR Considerations
9 - 27
[+
$ crs_stat
9 - 29
Application VIPs:
Used for applications accessed by network means
NIC redundancy
NIC failover
OCFS:
Store application configuration files
Share files between cluster nodes
9 - 31
9 - 33
9 - 34
# crs_register AppVIP1
$ crs_start AppVIP1
9 - 35
VIPADD=144.25.214.49
HTTDCONFLOC=/etc/httpd/conf/httpd.conf
WEBCHECK=http://$VIPADD:80/icons/apache_pb.gif
case $1 in
'start')
/usr/bin/apachectl k start f $HTTDCONFLOC
RET=$?
;;
'stop')
/usr/bin/apachectl k stop
RET=$?
;;
'check')
/usr/bin/wget q delete-after $WEBCHECK
RET=$?
;;
*)
RET=0
;;
esac
exit $RET
9 - 36
10
$ crs_start myApp1
11
9 - 37
Summary
Practice 9: Overview
9 - 39