Professional Documents
Culture Documents
Agenda
Who is Dan? VMWare Orientation Importance of prerequisite checking Configuring node #1 Cloning (VM) node #1 Installing Clusterware Installing ASM and Database Creating Database Common Ch ll C Challenges and I d Issues
Who is Dan?
Virgo Scuba Diver (PADI Advanced OW, Nitrox) Over 21, under 35 g Oracle DBA & UNIX Admin background Certifiable: OCM, ACE Director, RHCE Consultant, mostly fixing things that are broken Active community participant: RAC SIG, SIG Council, DBA Track Manager, blogger, tweeter ESA Practice Manager at Piocon Technologies
VMWare Orientation
Desktop Products
VMWare Workstation: Full product $ VMWare Full product, VMWare Player: Free, no creation, just use
I use Linux (OEL 5) as host OS Let Linux use LVM (default), allows disk space to be pooled for 900+ Gb on /u01 900 VMWare Server 1.0.5 Two Virtual Networks: 1 bridged & 1 hostg only
Cluster Cl t Interconnect
Local Storage
Shared Storage
Local Storage
Local Storage
Shared Storage
Local Storage
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Install Node1 OS
Plan the network addresses for public and private networks Start the VM and the CD image should boot Install the OS ensuring enough swap and OS, /tmp Assign static addresses t each i t f A i t ti dd to h interface See whitepaper for package and setup details d t il
24
25
Prerequisite Checking
Most issues arise from misconfiguration of OS, packages networks or storage OS packages, networks, Tools exist to help check prerequisites
CVU CVU RDA
Some basic networking knowledge helps Recipes can help, be sure y p p, you understand why, not just follow steps
26
27
28
29
30
On AMD64 platforms, some packages will be listed twice, once for i386 and once for AMD64
31
On AMD64 platforms, some packages will be listed twice, once for i386 and once for AMD64
32
Local Storage
Shared Storage
Local Storage
33
Local Storage
Shared Storage
Local Storage
34
Back at the VMWare Server Console, add new disks to the Node1 (RAC1) VM dd di k t th N d 1 as shown in the following example.
35
36
37
38
39
40
41
42
43
44
45
46
Local Storage
Shared Storage
Local Storage
47
Local Storage
Shared Storage
Local Storage
48
49
50
From the virtual machines console, run service network restart You can now power up Node1
51
52
53
54
55
56
57
Local Storage
Shared Storage
Local Storage
58
Cluster Cl t Interconnect
Local Storage
Shared Storage
Local Storage
59
Installing Clusterware
Clusterware installation performed from one node (Node1) (Node1). Ensure /etc/hosts is configured with host addresses, addresses VIP addresses and private addresses, addresses
60
Installing Clusterware
61
Installing Clusterware
62
Installing Clusterware
63
Installing Clusterware
64
Installing Clusterware
65
Installing Clusterware
66
Installing Clusterware
67
Installing Clusterware
68
Installing Clusterware
69
Installing Clusterware
70
Installing Clusterware
71
Installing Clusterware
72
Installing Clusterware
Note: Do not run these scripts in parallel. They should be run sequentially.
73
Installing Clusterware
74
Installing Clusterware
75
Installing Clusterware
76
Installing Clusterware
77
Installing Clusterware
78
Installing Clusterware
Once the installation is complete, you can check the status with crs stat -t crs_stat t
79
Cluster Cl t Interconnect
Local Storage
Shared Storage
Local Storage
80
Cluster Cl t Interconnect
Local Storage
Shared Storage
Local Storage
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Cluster Cl t Interconnect
Local Storage
Shared Storage
Local Storage
99
Cluster Cl t Interconnect
Local Storage
Shared Storage
Local Storage
100
Create Database
101
Create Database
102
Create Database
103
Create Database
104
Create Database
105
Create Database
106
Create Database
107
Create Database
108
Create Database
109
Create Database
110
Create Database
111
Create Database
112
Create Database
113
Create Database
114
Create Database
115
Create Database
116
Create Database
117
Create Database
118
Create Database
119
Create Database
120
Create Database
121
Create Database
after a rather long pause while instances are started(drumroll, please) i t t t d (d ll l )
122
Cluster Cl t Interconnect
Local Storage
Shared Storage
Local Storage
123
124
125
371814.1 Using udev with Oracle Architecture (RAC & ASM) Red Hat 4.0 456239.1 Understanding device-mapper in Linux 2.6 kernel 357472.1 Configuring device-mapper for CRS/ASM 465001.1 465001 1 Configuring raw devices for Oracle 10gR2 (10.2.0) Clusterware on RH/EL 5
126
127
128
Common Issues #5: Host equivalency Dont hate SSH, just set it up properly! ssh-keygen t ssh keygen t dsa cat ~/.ssh/id_dsa.pub >> \ ~/.ssh/authorized_keys / / scp rp ~/.ssh othernode:. ssh <remote_node> date Metalink Note 300548 1 is helpful 300548.1
129
References
Much of this article originated from Tim Hall s Halls article at oracle-base com (with oracle-base.com permission--Thanks, Tim!): http://tinyurl.com/39ywx2 http://tinyurl com/39ywx2 Oracle 11g Documentation Oracle Metalink, multiple notes and articles
130
131
Forums (via OTN): Lots of participation from RAC SIG as well as Oracle gurus J i th RAC SIG at www.oracleracsig.org! Join the t l i !
132
Dan Norris, Twitter: dannorris Norris Piocon booth #1619 dnorris@piocon.com dnorris@piocon com http://www.dannorris.com/
Legal
The information contained herein should be deemed reliable but not guaranteed. The author has made every attempt to p provide current and accurate information. If y have any you y comments or suggestions, please contact the author at: dnorris@piocon.com You may request redistribution permission from dnorris@piocon.com.
Copyright 2008, Piocon Technologies
134