Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Multiple OCRs and vote disks on ASM in Oracle 11gR2 « Guenadi N Jilevski's Oracle BLOG

Guenadi N Jilevski's Oracle BLOG


Oracle RAC, DG, EBS, DR and HA DBA BLOG
Home
About

Multiple OCRs and vote disks on ASM in Oracle 11gR2


Multiple OCRs and vote disks on ASM in Oracle 11gR2

Oracle Clusterware used to provide installation option for multiple locations for the OCR and vote disks prior to 11gR2. In
Oracle 11gR2 ASM disk groups are used to store the OCR and vote disks. While we can use the mirroring capabilities of
ASM disk groups we still can manually add additional OCR disks in Oracle 11gR2 on ASM disk groups to provide redundancy
and High Availability. Here in this post we will look at adding additional OCR disks to new ASM disks groups and moving the
vote disk to a disk group with high redundancy.

Initially we have Oracle GI installed on a disk group DATA with external redundancy. We created a disk group dgdup1 high
redundancy with 5 disks and a disk group dgdup2 with external redundancy.

Make sure that Oracle GI is running

01 [root@raclinux2 ~]# cd /u01/app/11.2.0.2/grid


02
03 [root@raclinux2 grid]# cd bin
04
05 [root@raclinux2 bin]# ./crsctl check cluster -all
06
07 **************************************************************
08
09 raclinux1:
10
11 CRS-4537: Cluster Ready Services is online
12
13 CRS-4529: Cluster Synchronization Services is online
14
15 CRS-4533: Event Manager is online
16
17 **************************************************************
18
19 raclinux2:
20
21 CRS-4537: Cluster Ready Services is online
22
23 CRS-4529: Cluster Synchronization Services is online
24
25 CRS-4533: Event Manager is online
26
27 **************************************************************
28
29 [root@raclinux2 bin]#

Vote disks

Let’s move the vote disk to a high redundancy group.

1 sur 8
Multiple OCRs and vote disks on ASM in Oracle 11gR2 « Guenadi N Jilevski's Oracle BLOG

01
02
03 [root@raclinux2 bin]#
04
05 [root@raclinux2 bin]# ./crsctl query css votedisk
06
07 ## STATE File Universal Id File Name Disk group
08
09 -- ----- ----------------- --------- ---------
10
11 1. ONLINE 7b7f9d9ae9484f2cbf7e62c164aa221b (/dev/oracleasm/disks/DISK1) [DATA]
12
13 Located 1 voting disk(s).
14
15 [root@raclinux2 bin]# ./crsctl replace votedisk +dgdup1
16
17 Successful addition of voting disk 786515d3e2cc4fa7bfc5fd0b6e87cfeb.
18
19 Successful addition of voting disk afe5c0e3da484f62bfcc36b1c0eb4aa4.
20
21 Successful addition of voting disk 1ec83edcf92b4f55bfdc9711c49e0ddd.
22
23 Successful addition of voting disk 97278bb3f36f4f84bf5965682efe87d2.
24
25 Successful addition of voting disk 46021fd53e394fb8bf0f476f1fa210dc.
26
27 Successful deletion of voting disk 7b7f9d9ae9484f2cbf7e62c164aa221b.
28
29 Successfully replaced voting disk group with +dgdup1.
30
31 CRS-4266: Voting file(s) successfully replaced
32
33 [root@raclinux2 bin]# ./crsctl query css votedisk
34
35 ## STATE File Universal Id File Name Disk group
36
37 -- ----- ----------------- --------- ---------
38
39 1. ONLINE 786515d3e2cc4fa7bfc5fd0b6e87cfeb (/dev/oracleasm/disks/DISK11) [DGDUP1]
40
41 2. ONLINE afe5c0e3da484f62bfcc36b1c0eb4aa4 (/dev/oracleasm/disks/DISK12) [DGDUP1]
42
43 3. ONLINE 1ec83edcf92b4f55bfdc9711c49e0ddd (/dev/oracleasm/disks/DISK13) [DGDUP1]
44
45 4. ONLINE 97278bb3f36f4f84bf5965682efe87d2 (/dev/oracleasm/disks/DISK14) [DGDUP1]
46
47 5. ONLINE 46021fd53e394fb8bf0f476f1fa210dc (/dev/oracleasm/disks/DISK15) [DGDUP1]
48
49 Located 5 voting disk(s).
50
51 [root@raclinux2 bin]#
52
53 [root@raclinux2 bin]# ./crsctl add css votedisk +data
54
55 CRS-4671: This command is not supported for ASM diskgroups.
56
57 CRS-4000: Command Add failed, or completed with errors.
58
59 [root@raclinux2 bin]# ./crsctl add css votedisk /u03/vote_acfs.dsk
60
61 CRS-4258: Addition and deletion of voting files are not allowed because the voting files are on ASM
62
63 [root@raclinux2 bin]#
64
65

As seen from above we can move a vote disk to a high redundancy disk group dgdup1 and benefit from the High Redundancy
of the group. We cannot use the ‘crsctl add css votedisk’ to add a vote disk on ASM disk group or ACFS file system.
OCR disks

2 sur 8
Multiple OCRs and vote disks on ASM in Oracle 11gR2 « Guenadi N Jilevski's Oracle BLOG

While we can benefit from the redundancy that the disk group storing the OCR provides we still can manually add OCR to
different disk groups.

001
002
003 [root@raclinux2 bin]# cat /etc/oracle/ocr.loc
004
005 #Device/file getting replaced by device +dgdup2
006
007 ocrconfig_loc=+DATA
008
009 local_only=false
010
011 [root@raclinux2 bin]# ./ocrcheck
012
013 Status of Oracle Cluster Registry is as follows :
014
015 Version : 3
016
017 Total space (kbytes) : 262120
018
019 Used space (kbytes) : 3380
020
021 Available space (kbytes) : 258740
022
023 ID : 1332773503
024
025 Device/File Name : +DATA
026
027 Device/File integrity check succeeded
028
029 Device/File not configured
030
031 Device/File not configured
032
033 Device/File not configured
034
035 Device/File not configured
036
037 Cluster registry integrity check succeeded
038
039 Logical corruption check succeeded
040
041 [root@raclinux2 bin]#
042
043 [root@raclinux2 bin]# ./ocrconfig -h
044
045 Name:
046
047 ocrconfig - Configuration tool for Oracle Cluster/Local Registry.
048
049 Synopsis:
050
051 ocrconfig [option]
052
053 option:
054
055 [-local] -export
056
057 - Export OCR/OLR contents to a file
058
059 [-local] -import - Import OCR/OLR contents from a file
060
061 [-local] -upgrade [ []]
062
063 - Upgrade OCR from previous version
064
065 -downgrade [-version ]
066
067 - Downgrade OCR to the specified version
068
069 [-local] -backuploc - Configure OCR/OLR backup location
070

3 sur 8
Multiple OCRs and vote disks on ASM in Oracle 11gR2 « Guenadi N Jilevski's Oracle BLOG

071 [-local] -showbackup [auto|manual] - Show OCR/OLR backup information


072
073 [-local] -manualbackup - Perform OCR/OLR backup
074
075 [-local] -restore - Restore OCR/OLR from physical backup
076
077 -replace -replacement
078
079 - Replace a OCR device/file <filename1> with <filename2>
080
081 -add - Add a new OCR device/file
082
083 -delete - Remove a OCR device/file
084
085 -overwrite - Overwrite OCR configuration on disk
086
087 -repair -add | -delete | -replace -replacement
088
089 - Repair OCR configuration on the local node
090
091 -help - Print out this help information
092
093 Note:
094
095 * A log file will be created in
096
097 $ORACLE_HOME/log//client/ocrconfig_.log. Please ensure
098
099 you have file creation privileges in the above directory before
100
101 running this tool.
102
103 * Only -local -showbackup [manual] is supported.
104
105 * Use option '-local' to indicate that the operation is to be performed on the Oracle Local Registry.
106
107 [root@raclinux2 bin]#
108
109 [root@raclinux2 bin]#
110
111 [root@raclinux2 bin]# ./ocrconfig -add +dgdup2
112
113 [root@raclinux2 bin]# ./ocrconfig -add +dgdup1
114
115 [root@raclinux2 bin]# ./ocrcheck
116
117 Status of Oracle Cluster Registry is as follows :
118
119 Version : 3
120
121 Total space (kbytes) : 262120
122
123 Used space (kbytes) : 3380
124
125 Available space (kbytes) : 258740
126
127 ID : 1332773503
128
129 Device/File Name : +DATA
130
131 Device/File integrity check succeeded
132
133 Device/File Name : +dgdup2
134
135 Device/File integrity check succeeded
136
137 Device/File Name : +dgdup1
138
139 Device/File integrity check succeeded
140
141 Device/File not configured
142
143 Device/File not configured
144
145 Cluster registry integrity check succeeded
146
147 Logical corruption check succeeded
148

4 sur 8
Multiple OCRs and vote disks on ASM in Oracle 11gR2 « Guenadi N Jilevski's Oracle BLOG

149 [root@raclinux2 bin]#


150
151 [root@raclinux2 bin]# cat /etc/oracle/ocr.loc
152
153 #Device/file getting replaced by device +dgdup1
154
155 ocrconfig_loc=+DATA
156
157 ocrmirrorconfig_loc=+dgdup2
158
159 ocrconfig_loc3=+dgdup1
160
161 local_only=false[root@raclinux2 bin]#
162
163

Summary:

While we benefit from the redundancy a disk group provides we can add multiple OCR on a different
disk groups. We can move the VOTE disk to a disk group with high redundancy.

Share this: StumbleUpon Digg Reddit Facebook Email 0 Print

October 3, 2010 - Posted by gjilevski | oracle

Like Be the first to like this post.

3 Comments »
1. 1 0 Rate This

Ohh..great article regarding multiple OCR and voting disks on Oracle 11g. Does it available for
Oracle 10g?

Comment by Jack Nicholson | October 5, 2010 | Reply

0 0 Rate This

Hello,

You can have multiple OCR and vote disks in Oracle Clusterware 10g and implement it in
similar way. It is only until Oracle 11gR2 that OCR and vote disks can be on ASM disk
groups.

Regards,

Comment by gjilevski | October 5, 2010 | Reply

2. 0 0 Rate This

[...] to configure multiple OCR and vote disk high availability using ASM disk groups is
elaborated here. Note that vote disk can be on only one ASM disk group and the disk group
itself provides [...]

Pingback by Backup and Restore of OCR in Grid Infrastructure 11G R2 11.2 « Guenadi N

5 sur 8
Multiple OCRs and vote disks on ASM in Oracle 11gR2 « Guenadi N Jilevski's Oracle BLOG

Jilevski's Oracle BLOG | December 20, 2010 | Reply

Leave a Comment

Your email address will not be published. Required fields are marked *

Name *

Email *

Website

Comment

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b>
<blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Post Comment

Notify me of follow-up comments via email.

Send me site updates

« Previous | Next »

About
Guenadi Jilevski is a Senior Oracle Professional (OCP 7, 8, 8i, 9i, 10g and OCM 9i) with more than
20 years of industrial experience in high end Oracle technology starting with Oracle
RDBMS version 6 up to 11g. He has been involved with multi platform High Availability Solutions
starting with OPS and Veritas and Sun cluster as well as complex multiple node RAC 9i, 10g and
11g implementations on AIX, Linux, Solaris and HP. He has experience in deploying disaster
recovery solutions with standby databases compliant to Oracle MAA and third party solutions such
as Shareplex and Goldengate. As a former employee of Oracle Corporation Advanced Technology
Solutions Consulting Practice in Americas, Guenadi has been involved in multiple visible high
end projects for RAC enabling EBS, Peoplesoft, Siebel ERP applications, end to end performance
tuning, architectured High Availability and Disaster Recovery solutions to name a few. Presently he
is working as A Senior Oracle Consultant in EMEA.

Guenadi Jilevski is Oracle OCP 7, 8, 8i, 9i, 10g and Oracle OCM, Teradata Certified DBA, Informix
Certified DBA.

The views expressed on this blog are my own and do not necessarily reflect the views of
Current/Past/Future Employers. The views and opinions expressed by visitors on this blog are theirs
solely and may not reflect mine.

Share this:

6 sur 8
Multiple OCRs and vote disks on ASM in Oracle 11gR2 « Guenadi N Jilevski's Oracle BLOG

StumbleUpon Digg Reddit Facebook Email 0 Print

Archives

Select Month

Blog Stats
78,168 hits

Top Rated
Posts | Pages | Comments

All | Today | This Week | This Month

There are no rated items for this period.

Blogroll
WordPress.com 0
WordPress.org 0

Calendar
October 2010
M T W T F S S
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
« Sep Dec »

Search

Search

Email Subscription
Enter your email address to subscribe to this blog and receive notifications of new posts by
email.

7 sur 8
Multiple OCRs and vote disks on ASM in Oracle 11gR2 « Guenadi N Jilevski's Oracle BLOG

Sign me up!

Archives
February 2011 (4)
January 2011 (1)
December 2010 (8)
October 2010 (6)
September 2010 (3)
August 2010 (7)
July 2010 (5)
June 2010 (5)
May 2010 (2)
April 2010 (1)
March 2010 (13)
February 2010 (14)

Categories
oracle

RSS
Entries RSS
Comments RSS

Site info
Guenadi N Jilevski's Oracle BLOG
Theme: Andreas04 by Andreas Viklund. Blog at WordPress.com.

8 sur 8

You might also like