Sunday, November 4, 2012

Adding 4th node in 3 node RAC cluster


We had a 3 node existing cluster , here i am going to add a 4th node to it , to increase its capacity....
Here are the steps followed for the activity

[oracle@subdb01 bin]$export IGNORE_PREADDNODE_CHECKS=Y

[oracle@subdb01 bin]$ ./addNode.sh -silent "CLUSTER_NEW_NODES={subdb04}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={subdb04v}"
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 1895 MB    Passed
Oracle Universal Installer, Version 11.2.0.3.0 Production
Copyright (C) 1999, 2011, Oracle. All rights reserved.


Performing tests to see whether nodes subdb02,subdb03,subdb04 are available
............................................................... 100% Done.

.
-----------------------------------------------------------------------------
Cluster Node Addition Summary
Global Settings
   Source: /oracle/grid/11.2.0.3
   New Nodes
Space Requirements
   New Nodes
      subdb04
         /oracle: Required 11.62GB : Available 77.68GB
Installed Products
   Product Names
      Oracle Grid Infrastructure 11.2.0.3.0
      Sun JDK 1.5.0.30.03
      Installer SDK Component 11.2.0.3.0
      Oracle One-Off Patch Installer 11.2.0.1.7
      Oracle Universal Installer 11.2.0.3.0
      Oracle USM Deconfiguration 11.2.0.3.0
      Oracle Configuration Manager Deconfiguration 10.3.1.0.0
      Enterprise Manager Common Core Files 10.2.0.4.4
      Oracle DBCA Deconfiguration 11.2.0.3.0
      Oracle RAC Deconfiguration 11.2.0.3.0
      Oracle Quality of Service Management (Server) 11.2.0.3.0
      Installation Plugin Files 11.2.0.3.0
      Universal Storage Manager Files 11.2.0.3.0
      Oracle Text Required Support Files 11.2.0.3.0
      Automatic Storage Management Assistant 11.2.0.3.0
      Oracle Database 11g Multimedia Files 11.2.0.3.0
      Oracle Multimedia Java Advanced Imaging 11.2.0.3.0
      Oracle Globalization Support 11.2.0.3.0
      Oracle Multimedia Locator RDBMS Files 11.2.0.3.0
      Oracle Core Required Support Files 11.2.0.3.0
      Bali Share 1.1.18.0.0
      Oracle Database Deconfiguration 11.2.0.3.0
      Oracle Quality of Service Management (Client) 11.2.0.3.0
      Expat libraries 2.0.1.0.1
      Oracle Containers for Java 11.2.0.3.0
      Perl Modules 5.10.0.0.1
      Secure Socket Layer 11.2.0.3.0
      Oracle JDBC/OCI Instant Client 11.2.0.3.0
      Oracle Multimedia Client Option 11.2.0.3.0
      LDAP Required Support Files 11.2.0.3.0
      Character Set Migration Utility 11.2.0.3.0
      Perl Interpreter 5.10.0.0.2
      PL/SQL Embedded Gateway 11.2.0.3.0
      OLAP SQL Scripts 11.2.0.3.0
      Database SQL Scripts 11.2.0.3.0
      Oracle Extended Windowing Toolkit 3.4.47.0.0
      SSL Required Support Files for InstantClient 11.2.0.3.0
      SQL*Plus Files for Instant Client 11.2.0.3.0
      Oracle Net Required Support Files 11.2.0.3.0
      Oracle Database User Interface 2.2.13.0.0
      RDBMS Required Support Files for Instant Client 11.2.0.3.0
      RDBMS Required Support Files Runtime 11.2.0.3.0
      XML Parser for Java 11.2.0.3.0
      Oracle Security Developer Tools 11.2.0.3.0
      Oracle Wallet Manager 11.2.0.3.0
      Enterprise Manager plugin Common Files 11.2.0.3.0
      Platform Required Support Files 11.2.0.3.0
      Oracle JFC Extended Windowing Toolkit 4.2.36.0.0
      RDBMS Required Support Files 11.2.0.3.0
      Oracle Ice Browser 5.2.3.6.0
      Oracle Help For Java 4.2.9.0.0
      Enterprise Manager Common Files 10.2.0.4.3
      Deinstallation Tool 11.2.0.3.0
      Oracle Java Client 11.2.0.3.0
      Cluster Verification Utility Files 11.2.0.3.0
      Oracle Notification Service (eONS) 11.2.0.3.0
      Oracle LDAP administration 11.2.0.3.0
      Cluster Verification Utility Common Files 11.2.0.3.0
      Oracle Clusterware RDBMS Files 11.2.0.3.0
      Oracle Locale Builder 11.2.0.3.0
      Oracle Globalization Support 11.2.0.3.0
      Buildtools Common Files 11.2.0.3.0
      Oracle RAC Required Support Files-HAS 11.2.0.3.0
      SQL*Plus Required Support Files 11.2.0.3.0
      XDK Required Support Files 11.2.0.3.0
      Agent Required Support Files 10.2.0.4.3
      Parser Generator Required Support Files 11.2.0.3.0
      Precompiler Required Support Files 11.2.0.3.0
      Installation Common Files 11.2.0.3.0
      Required Support Files 11.2.0.3.0
      Oracle JDBC/THIN Interfaces 11.2.0.3.0
      Oracle Multimedia Locator 11.2.0.3.0
      Oracle Multimedia 11.2.0.3.0
      HAS Common Files 11.2.0.3.0
      Assistant Common Files 11.2.0.3.0
      PL/SQL 11.2.0.3.0
      HAS Files for DB 11.2.0.3.0
      Oracle Recovery Manager 11.2.0.3.0
      Oracle Database Utilities 11.2.0.3.0
      Oracle Notification Service 11.2.0.3.0
      SQL*Plus 11.2.0.3.0
      Oracle Netca Client 11.2.0.3.0
      Oracle Net 11.2.0.3.0
      Oracle JVM 11.2.0.3.0
      Oracle Internet Directory Client 11.2.0.3.0
      Oracle Net Listener 11.2.0.3.0
      Cluster Ready Services Files 11.2.0.3.0
      Oracle Database 11g 11.2.0.3.0
-----------------------------------------------------------------------------


Instantiating scripts for add node (Tuesday, October 23, 2012 2:12:36 PM EST)
.                                                                 1% Done.
Instantiation of add node scripts complete

Copying to remote nodes (Tuesday, October 23, 2012 2:12:38 PM EST)
...............................................................................................                                 96% Done.
Home copied to new nodes

Saving inventory on nodes (Tuesday, October 23, 2012 2:50:24 PM EST)
.                                                               100% Done.
Save inventory complete
WARNING:
The following configuration scripts need to be executed as the "root" user in each new cluster node. Each script in the list below is followed by a list of nodes.
/oracle/grid/11.2.0.3/root.sh #On nodes subdb04
To execute the configuration scripts:
    1. Open a terminal window
    2. Log in as "root"
    3. Run the scripts in each cluster node

The Cluster Node Addition of /oracle/grid/11.2.0.3 was successful.
Please check '/tmp/silentInstall.log' for more details.

====================================================================
Incase there was something wrong went and you want to clear up the things then please follow the steps below
====================================================================


http://docs.oracle.com/cd/E14072_01/rac.112/e10717/adddelclusterware.htm#BEIFDCAF

1) ensure grid home is set in both node1 and node 4

on node1
==========
[oracle@subdb01 bin]$ . oraenv
ORACLE_SID = [STGEXT_1] ? +ASM1
The Oracle base for ORACLE_HOME=/oracle/grid/11.2.0.3 is /oracle/app
[oracle@subdb01 bin]$ echo $ORACLE_HOME
/oracle/grid/11.2.0.3



on node4
===========
export ORACLE_HOME=/oracle/grid/11.2.0.3

2)

3)from 4th node

/oracle/grid/11.2.0.3/crs/install/rootcrs.pl -deconfig -force

4) from 1st node

   crsctl delete node -n subdb04

5) from 4th node
./runInstaller -updateNodeList ORACLE_HOME=/oracle/grid/11.2.0.3 "CLUSTER_NODES={subdb04}" CRS=TRUE -local

6) on 4th node <manually clear up grid_home>
    cd /oracle/grid/11.2.0.3

     rm -rf $GRID_HOME instead of deinstall util and retry addnode.sh again

7) on first node

./runInstaller -updateNodeList ORACLE_HOME=/oracle/grid/11.2.0.3 "CLUSTER_NODES={subdb01,subdb02,subdb03}" CRS=TRUE


==============================
Root.sh script execution  on node 4
==============================
We had some issues in root.sh script execution reason was because ACL was enabled.(Note: for ACL you can find a + sign in the file system and we asked our UNIX admin to disable it). We had some other issues also for ASM was not coming up , by the mean time we in process of fixing it.



[root@subdb04 subdb04]# /oracle/grid/11.2.0.3/root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /oracle/grid/11.2.0.3

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /oracle/grid/11.2.0.3/crs/install/crsconfig_params
User ignored Prerequisites during installation
OLR initialization - successful
Adding Clusterware entries to inittab
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node subdb01, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
Start of resource "ora.asm" failed
CRS-2672: Attempting to start 'ora.asm' on 'subdb04'
CRS-5017: The resource action "ora.asm start" encountered the following error:
ORA-29702: error occurred in Cluster Group Service operation
. For details refer to "(:CLSN00107:)" in "/oracle/grid/11.2.0.3/log/subdb04/agent/ohasd/oraagent_oracle/oraagent_oracle.log".
CRS-2674: Start of 'ora.asm' on 'subdb04' failed
CRS-2679: Attempting to clean 'ora.asm' on 'subdb04'
CRS-2681: Clean of 'ora.asm' on 'subdb04' succeeded
CRS-4000: Command Start failed, or completed with errors.
Failed to start Oracle Grid Infrastructure stack
Failed to start ASM at /oracle/grid/11.2.0.3/crs/install/crsconfig_lib.pm line 1272.
/oracle/grid/11.2.0.3/perl/bin/perl -I/oracle/grid/11.2.0.3/perl/lib -I/oracle/grid/11.2.0.3/crs/install /oracle/grid/11.2.0.3/crs/install/rootcrs.pl execution failed

No comments:

Post a Comment