• No results found

Oracle Clusterware Installation (continued)

In document Oracle 11g RAC Student Guide Volume 2 (Page 100-105)

Practices for Lesson 1

Practice 1-1: Oracle Clusterware Installation (continued)

Performing pre-checks for cluster services setup Checking node reachability...

Node reachability check passed from node "vx0301".

Checking user equivalence...

User equivalence check passed for user "oracle".

Checking administrative privileges...

User existence check passed for "oracle".

Group existence check passed for "oinstall".

Membership check for user "oracle" in group "oinstall" [as Primary] passed.

Administrative privileges check passed.

Checking node connectivity...

Node connectivity check passed for subnet "10.216.4.0" with node(s) vx0302,vx0301.

WARNING:

Make sure IP address "10.216.102.142" is up and is a valid IP address on node "vx0301".

Node connectivity check passed for subnet "10.196.28.0" with node(s) vx0302,vx0301.

Interfaces found on subnet "10.216.4.0" that are likely candidates for VIP:

vx0302 eth0:10.216.4.13 vx0301 eth0:10.216.4.12

Interfaces found on subnet "10.196.28.0" that are likely candidates for a private interconnect:

vx0302 eth2:10.196.30.23 vx0301 eth2:10.196.30.22

Checking system requirements for 'crs'...

Total memory check passed.

Free disk space check passed.

Swap space check passed.

System architecture check passed.

Kernel version check passed.

Package existence check passed for "make-3.80".

Oracle Internal & Or acle Academy Use Only

Practice 1-1: Oracle Clusterware Installation (continued)

Oracle Database 11g: RAC Administration A - 7

Package existence check passed for "elfutils-libelf-devel-0.97".

Package existence check passed for "sysstat-5.0.5".

Package existence check passed for "libgcc-3.4.5".

Package existence check passed for "libstdc++-devel-3.4.5".

Package existence check passed for "unixODBC-2.2.11".

Package existence check passed for "unixODBC-devel-2.2.11".

Package existence check passed for "glibc-2.3.4-2.19".

Group existence check passed for "dba".

Group existence check passed for "oinstall".

User existence check passed for "nobody".

System requirement passed for 'crs'

Pre-check for cluster services setup was successful on all the nodes.

3) Execute runInstaller from the /stage/db directory and install Oracle Clusterware.

a) From a graphical terminal session on your first node, set the value of

ORACLE_BASE=/u01/app/oracle and execute /stage/db/runInstaller.

[oracle@vx0301 lesson1]$ export ORACLE_BASE=/u01/app/oracle [oracle@vx0301 lesson1]$ /stage/db/runInstaller

b) On the Select a Product to Install screen, choose Oracle Clusterware and click Next.

c) On the Specify Inventory directory and credentials page, ensure the inventory directory path is /u01/app/oraInventory and the operating system group name is oinstall. Click Next to continue.

d) On the Specify Home Details page, the Name should be OraCrs11g_home.

Do not accept the default location for the Path field. Enter /u01/crs11g in the Path field. Click Next.

e) The Product-Specific Prerequisite Page should check the minimum requirements and report no errors. Click Next to continue.

Oracle Internal & Or acle Academy Use Only

Practice 1-1: Oracle Clusterware Installation (continued)

f) Enter the Cluster Name assigned to you by your instructor in the Cluster Name field on the Specify Cluster Configuration page. The only node appearing in the Cluster Nodes window is the installing (local) node. Click the Add button to add the second node in your cluster. Enter the Public Node Name, the Private Node Name, and the Virtual Host name, all in fully qualified format. Click OK to return to the Specify Cluster Configuration page. Review the name information for the second node and click Next.

g) On the Specify Network Interface Usage page, all network interfaces will be marked private. The proper interface type designations are: eth0-Public, eth1-Do Not Use, and eth2-Private. Select eth0 and click Edit. Change the interface type to Public and click OK. Next, select eth1 (the storage network), and click Edit.

Change the interface type to Do Not Use and click OK. Leave eth2 as the Private interface and click Next to continue.

h) On the Specify OCR Location page, select External Redundancy and enter /dev/sdb1 for the OCR location. Click Next when finished.

i) Select External Redundancy on the Specify Voting Disk Location page and enter /dev/sdb5 for the Voting Disk location and click Next.

j) Review the information on the Summary page and click Install. Monitor the progress on the Install page.

k) When the Execute Configuration scripts dialog box appears, open a terminal window to your local node and execute the

/u01/app/oraInventory/orainstRoot.sh script as root using the sudo command. When finished, ssh to the second node and run the

/u01/app/oraInventory/orainstRoot.sh as root. When finished, exit back to your first node in your terminal window.

[oracle@vx0301 ~]$ sudo /u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInventory to 770.

Changing groupname of /u01/app/oraInventory to oinstall.

The execution of the script is complete [oracle@vx0301 ~]$

[oracle@vx0301 ~]$ ssh vx0302

Last login: Mon Nov 19 10:03:42 2007 from vx0301.us.oracle.com [oracle@vx0302 ~]$ sudo /u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInventory to 770.

Changing groupname of /u01/app/oraInventory to oinstall.

The execution of the script is complete [oracle@vx0302 ~]$ exit

logout

Connection to vx0302 closed.

[oracle@vx0301 ~]$

Oracle Internal & Or acle Academy Use Only

Practice 1-1: Oracle Clusterware Installation (continued)

Oracle Database 11g: RAC Administration A - 9

Checking to see if Oracle CRS stack is already configured /etc/oracle does not exist. Creating it now.

Setting the permissions on OCR backup directory Setting up Network socket directories

Oracle Cluster Registry configuration upgraded successfully Successfully accumulated necessary OCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node <nodenumber>: <nodename> <private interconnect name>

<hostname>

node 1: vx0301 vx0301-priv vx0301 node 2: vx0302 vx0302-priv vx0302

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

Now formatting voting device: /dev/sdb5 Format of 1 voting devices complete.

Startup will be queued to init within 30 seconds.

Adding daemons to inittab

Expecting the CRS daemons to be up within 600 seconds.

Cluster Synchronization Services is active on these nodes.

vx0301

Cluster Synchronization Services is inactive on these nodes.

vx0302

Local node checking complete. Run root.sh on remaining nodes to start CRS daemons.

[oracle@vx0301 u01]$

[oracle@vx0301 u01]$ ssh vx0302

Last login: Mon Nov 19 10:56:21 2007 from vx0301.us.oracle.com [oracle@vx0302 ~]$ sudo /u01/crs11g/root.sh

Checking to see if Oracle CRS stack is already configured /etc/oracle does not exist. Creating it now.

Setting the permissions on OCR backup directory Setting up Network socket directories

Oracle Cluster Registry configuration upgraded successfully clscfg: EXISTING configuration version 4 detected.

clscfg: version 4 is 11 Release 1.

Successfully accumulated necessary OCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node <nodenumber>: <nodename> <private interconnect name>

<hostname>

node 1: vx0301 vx0301-priv vx0301 node 2: vx0302 vx0302-priv vx0302

clscfg: Arguments check out successfully.

NO KEYS WERE WRITTEN. Supply -force parameter to override.

-force is destructive and will destroy any previous cluster configuration.

Oracle Cluster Registry for cluster has already been initialized

Startup will be queued to init within 30 seconds.

Adding daemons to inittab

Oracle Internal & Or acle Academy Use Only

Practice 1-1: Oracle Clusterware Installation (continued)

Expecting the CRS daemons to be up within 600 seconds.

Cluster Synchronization Services is active on these nodes.

vx0301 vx0302

Cluster Synchronization Services is active on all the nodes.

Waiting for the Oracle CRSD and EVMD to start

Oracle CRS stack installed and running under init(1M) Running vipca(silent) for configuring nodeapps

Creating VIP application resource on (2) nodes...

Creating GSD application resource on (2) nodes...

Creating ONS application resource on (2) nodes...

Starting VIP application resource on (2) nodes...

Starting GSD application resource on (2) nodes...

Starting ONS application resource on (2) nodes...

Done.

[oracle@vx0302 ~]$

m) When both orainstRoot.sh and root.sh scripts have been run on both nodes, click OK on the Execute Configuration scripts dialog box.

n) Click the Exit button on the End of Installation page to exit the installer. Click Yes on the dialog box to finish.

o) From a terminal session, execute /u01/crs11g/bin/crs_stat –t to check the viability of the nodeapps on both nodes.

[oracle@vx0301 u01]$ /u01/crs11g/bin/crs_stat -t

Name Type Target State Host

--- ora.vx0301.gsd application ONLINE ONLINE vx0301 ora.vx0301.ons application ONLINE ONLINE vx0301 ora.vx0301.vip application ONLINE ONLINE vx0301 ora.vx0302.gsd application ONLINE ONLINE vx0302 ora.vx0302.ons application ONLINE ONLINE vx0302 ora.vx0302.vip application ONLINE ONLINE vx0302

Oracle Internal & Or acle Academy Use Only

Oracle Database 11g: RAC Administration A - 11

In document Oracle 11g RAC Student Guide Volume 2 (Page 100-105)