Guenadi N Jilevski's Oracle BLOG

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

Oracle 11gR1 CRS installation

Oracle 11gR1 CRS installation

We initiate an interactive install by  logging into raclinux1 as the oracle user and start the Oracle installer: ./runInstaller.

You will be presented with the following screenshot, so accept the default inventory location and press Next:

Enter the Oracle home path for the CRS and press Next to continue:

Wait for the prerequisite check to complete and rectify any errors before proceeding further by pressing Next:

Specify Cluster Configuration screen contains only one node. Please press Add button to enter the other node. After entering the details, press OK:

Click the Next button to continue:

The Specify Network Interface Usage Screen defines how each network interface will be used. Please select the eth0 network interface and press Edit. Set the eth0 interface to public and press OK.  Leave the eth1 interface as private and press Next:

Select External Redundancy and enter the /dev/sdc1 shared disk for the OCR location and press Next to continue. For high availability and redundancy, we will need to specify another mirrored shared disk:

Select External Redundancy and enter the /dev/sdb1 shared disk for the Voting Disk location and press Next to continue. For high availability and redundancy we will need to specify two additional mirrored shared disks. The assumption made is that there is an external redundancy implemented. However, for users that do not plan to use external redundancy the option of a mirrored OCR is provided. Bottom line is that either mirroring at Oracle level or external mirroring provides high availability. Oracle recommends either mirroring at Oracle level or external mirroring.

On the Summary screen, press Install to continue. The assumption made is that there is an external redundancy implemented. However, for users that do not plan to use external redundancy the option of a mirrored voting disks is provided. Bottom line is that either mirroring at Oracle level or external mirroring provides high availability. Oracle recommends either mirroring at Oracle level or external mirroring.

Wait until the installation takes place:

Run the script as root  on each of the nodes as instructed. For the sake of simplicity, the essential fragments from the output of the scripts are shown the book.

The output from the orainstRoot.sh file should look something like that listed below. The script changes the permission to 770 and ownership to oinstall of the Oracle inventory location /u01/app/oraInventory.

# cd /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

#

The output of the root.sh will vary a little depending on the node it is run on. The script in general changes ownership to root for the CRS directories, creates /etc/oracle with ocr.loc file containing the location of the voting disk, format and configure OCR, format voting disks, add daemons to the inittab for autostart on reboot, start CRS daemons, runs ONS and  VIP assistants in silent mode. The following text is the output from the raclinux1 node.

# cd /u01/crs/oracle/product/11.1.0/crs

# ./root.sh

WARNING: directory ‘/u01/crs/oracle/product/11.1.0’ is not owned by root

WARNING: directory ‘/u01/crs/oracle/product’ is not owned by root

WARNING: directory ‘/u01/crs/oracle’ is not owned by root

WARNING: directory ‘/u01/crs’ is not owned by root

WARNING: directory ‘/u01’ is not owned by root

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

The directory ‘/u01/crs/oracle/product/11.1.0’ is not owned by root. Changing owner to root

The directory ‘/u01/crs/oracle/product’ is not owned by root. Changing owner to root

The directory ‘/u01/crs/oracle’ is not owned by root. Changing owner to root

The directory ‘/u01/crs’ is not owned by root. Changing owner to root

The directory ‘/u01’ is not owned by root. Changing owner to root

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: raclinux1 raclinux1-priv raclinux1

node 2: raclinux2 raclinux2-priv raclinux2

Creating OCR keys for user ‘root’, privgrp ‘root’..

Operation successful.

Now formatting voting device: /dev/sdb1

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.

raclinux1

Cluster Synchronization Services is inactive on these nodes.

raclinux2

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

#

Ignore the directory ownership warnings. We should really use a separate directory structure for the clusterware so it can be owned by the root user. The output from the raclinux2 node is listed below

# cd /u01/crs/oracle/product/11.1.0/crs

# ./root.sh

WARNING: directory ‘/u01/crs/oracle/product/11.1.0’ is not owned by root

WARNING: directory ‘/u01/crs/oracle/product’ is not owned by root

WARNING: directory ‘/u01/crs/oracle’ is not owned by root

WARNING: directory ‘/u01/crs’ is not owned by root

WARNING: directory ‘/u01’ is not owned by root

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

The directory ‘/u01/crs/oracle/product/11.1.0’ is not owned by root. Changing owner to root

The directory ‘/u01/crs/oracle/product’ is not owned by root. Changing owner to root

The directory ‘/u01/crs/oracle’ is not owned by root. Changing owner to root

The directory ‘/u01/crs’ is not owned by root. Changing owner to root

The directory ‘/u01’ is not owned by root. Changing owner to root

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: raclinux1 raclinux1-priv raclinux1

node 2: raclinux2 raclinux2-priv raclinux2

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

Expecting the CRS daemons to be up within 600 seconds.

Cluster Synchronization Services is active on these nodes.

raclinux1

raclinux2

Cluster Synchronization Services is active on all the nodes.

Waiting for the Oracle CRSD and EVMD to start

Waiting for the Oracle CRSD and EVMD to start

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.

#

Here you can see that some of the configuration steps are omitted as they were done by the first node. In addition, the final part of the script ran the Virtual IP Configuration Assistant (VIPCA) in silent mode.

Wait for the configuration assistants to complete If the root.sh fails and CRS daemons fails to start check the logs in cfgtoollogs directory and identify the reasons. Check if there are suggested actions and whether the Oracle CRS install prerequisites are met. We can de-install Oracle CRS as per Note 239998.1, ensure that Oracle CRS prerequisites are met and problems are fixed and install CRS again.

When the installation has completed, press the Exit button to leave the installer:

December 14, 2009 - Posted by | oracle

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: