Wednesday, March 6, 2013

Add node from rac cluster

In the previous post i explain how to delete a node.
Now i'm going to add a node to an existing cluster.
First we have to check the configuration.
We do this by comparision an existing node with the new one.
As user oracle( It can be also user grid if you installed the software as user grid).

$ cluvfy comp peer -n test1001 -refnode test1002 -r 11gr2
Verifying peer compatibility
Checking peer compatibility...
Compatibility check: Physical memory [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      12.5GB (1.31072E7KB)      12.5GB (1.31072E7KB)      matched
Physical memory check passed
Compatibility check: Available memory [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      11.1693GB (1.17119E7KB)   11.153GB (1.1694784E7KB)  mismatched
Available memory check failed
Compatibility check: Swap space [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      3GB (3145720.0KB)         3GB (3145720.0KB)         matched
Swap space check passed
Compatibility check: Free disk space for "/tmp" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      3.3984GB (3563520.0KB)    3.3867GB (3551232.0KB)    mismatched
Free disk space check failed
Compatibility check: User existence for "root" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      root(0)                   root(0)                   matched
User existence for "root" check passed
Compatibility check: Group existence for "oinstall" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      oinstall(54321)           oinstall(54321)           matched
Group existence for "oinstall" check passed
Compatibility check: Group existence for "dba" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
 ------------  ------------------------  ------------------------  ----------
  test1001      dba(4006)                 dba(4006)                 matched
Group existence for "dba" check passed
Compatibility check: Group membership for "root" in "oinstall (Primary)" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      no                        no                        matched
Group membership for "root" in "oinstall (Primary)" check passed
Compatibility check: Group membership for "root" in "dba" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      no                        no                        matched
Group membership for "root" in "dba" check passed
Compatibility check: Run level [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      3                         3                         matched
Run level check passed
Compatibility check: System architecture [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      x86_64                    x86_64                    matched
System architecture check passed
Compatibility check: Kernel version [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      2.6.18-308.16.1.0.1.el5xen  2.6.18-308.16.1.0.1.el5xen  matched
Kernel version check passed
Compatibility check: Kernel param "semmsl" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      250                       250                       matched
Kernel param "semmsl" check passed
Compatibility check: Kernel param "semmns" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      32000                     32000                     matched
Kernel param "semmns" check passed
Compatibility check: Kernel param "semopm" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      100                       100                       matched
Kernel param "semopm" check passed
Compatibility check: Kernel param "semmni" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      142                       142                       matched
Kernel param "semmni" check passed
Compatibility check: Kernel param "shmmax" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      4398046511104             4398046511104             matched
Kernel param "shmmax" check passed
Compatibility check: Kernel param "shmmni" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      4096                      4096                      matched
Kernel param "shmmni" check passed
Compatibility check: Kernel param "shmall" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      1073741824                1073741824                matched
Kernel param "shmall" check passed
Compatibility check: Kernel param "file-max" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      6815744                   6815744                   matched
Kernel param "file-max" check passed
Compatibility check: Kernel param "ip_local_port_range" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      9000 65500                9000 65500                matched
Kernel param "ip_local_port_range" check passed
Compatibility check: Kernel param "rmem_default" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      262144                    262144                    matched
Kernel param "rmem_default" check passed
Compatibility check: Kernel param "rmem_max" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      4194304                   4194304                   matched
Kernel param "rmem_max" check passed
Compatibility check: Kernel param "wmem_default" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      262144                    262144                    matched
Kernel param "wmem_default" check passed
Compatibility check: Kernel param "wmem_max" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      1048576                   1048576                   matched
Kernel param "wmem_max" check passed
Compatibility check: Kernel param "aio-max-nr" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      3145728                   3145728                   matched
Kernel param "aio-max-nr" check passed
Compatibility check: Package existence for "make" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      make-3.81-3.el5           make-3.81-3.el5           matched
Package existence for "make" check passed
Compatibility check: Package existence for "binutils" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      binutils-2.17.50.0.6-20.el5_8.3  binutils-2.17.50.0.6-20.el5_8.3  matched
Package existence for "binutils" check passed

Compatibility check: Package existence for "gcc (x86_64)" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      gcc-4.1.2-52.el5_8.1 (x86_64)  gcc-4.1.2-52.el5_8.1 (x86_64)  matched
Package existence for "gcc (x86_64)" check passed
Compatibility check: Package existence for "libaio (x86_64)" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      libaio-0.3.106-5 (x86_64),libaio-0.3.106-5 (i386)  libaio-0.3.106-5 (x86_64),libaio-0.3.106-5 (i386)  matched
Package existence for "libaio (x86_64)" check passed
Compatibility check: Package existence for "glibc (x86_64)" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      glibc-2.5-81.el5_8.7 (x86_64),glibc-2.5-81.el5_8.7 (i686)  glibc-2.5-81.el5_8.7 (x86_64),glibc-2.5-81.el5_8.7 (i686)  matched
Package existence for "glibc (x86_64)" check passed
Compatibility check: Package existence for "compat-libstdc++-33 (x86_64)" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      compat-libstdc++-33-3.2.3-61 (x86_64),compat-libstdc++-33-3.2.3-61 (i386)  compat-libstdc++-33-3.2.3-61 (x86_64),compat-libstdc++-33-3.2.3-61 (i386)  matched
Package existence for "compat-libstdc++-33 (x86_64)" check passed
Compatibility check: Package existence for "elfutils-libelf (x86_64)" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      elfutils-libelf-0.137-3.el5 (x86_64)  elfutils-libelf-0.137-3.el5 (x86_64)  matched
Package existence for "elfutils-libelf (x86_64)" check passed
Compatibility check: Package existence for "elfutils-libelf-devel" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      elfutils-libelf-devel-0.137-3.el5  elfutils-libelf-devel-0.137-3.el5  matched
Package existence for "elfutils-libelf-devel" check passed
Compatibility check: Package existence for "glibc-common" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      glibc-common-2.5-81.el5_8.7  glibc-common-2.5-81.el5_8.7  matched
Package existence for "glibc-common" check passed

Compatibility check: Package existence for "glibc-devel (x86_64)" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      glibc-devel-2.5-81.el5_8.7 (x86_64),glibc-devel-2.5-81.el5_8.7 (i386)  glibc-devel-2.5-81.el5_8.7 (x86_64),glibc-devel-2.5-81.el5_8.7 (i386)  matched
Package existence for "glibc-devel (x86_64)" check passed
Compatibility check: Package existence for "glibc-headers" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      glibc-headers-2.5-81.el5_8.7  glibc-headers-2.5-81.el5_8.7  matched
Package existence for "glibc-headers" check passed
Compatibility check: Package existence for "gcc-c++ (x86_64)" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      gcc-c++-4.1.2-52.el5_8.1 (x86_64)  gcc-c++-4.1.2-52.el5_8.1 (x86_64)  matched
Package existence for "gcc-c++ (x86_64)" check passed
Compatibility check: Package existence for "libaio-devel (x86_64)" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      libaio-devel-0.3.106-5 (i386),libaio-devel-0.3.106-5 (x86_64)  libaio-devel-0.3.106-5 (i386),libaio-devel-0.3.106-5 (x86_64)  matched
Package existence for "libaio-devel (x86_64)" check passed
Compatibility check: Package existence for "libgcc (x86_64)" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      libgcc-4.1.2-52.el5_8.1 (x86_64),libgcc-4.1.2-52.el5_8.1 (i386)  libgcc-4.1.2-52.el5_8.1 (x86_64),libgcc-4.1.2-52.el5_8.1 (i386)  matched
Package existence for "libgcc (x86_64)" check passed
Compatibility check: Package existence for "libstdc++ (x86_64)" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      libstdc++-4.1.2-52.el5_8.1 (x86_64),libstdc++-4.1.2-52.el5_8.1 (i386)  libstdc++-4.1.2-52.el5_8.1 (x86_64),libstdc++-4.1.2-52.el5_8.1 (i386)  matched
Package existence for "libstdc++ (x86_64)" check passed
Compatibility check: Package existence for "libstdc++-devel (x86_64)" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      libstdc++-devel-4.1.2-52.el5_8.1 (x86_64)  libstdc++-devel-4.1.2-52.el5_8.1 (x86_64)  matched
Package existence for "libstdc++-devel (x86_64)" check passed

Compatibility check: Package existence for "sysstat" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      sysstat-7.0.2-11.el5      sysstat-7.0.2-11.el5      matched
Package existence for "sysstat" check passed
Compatibility check: Package existence for "ksh" [reference node: test1002]
  Node Name     Status                    Ref. node status          Comment
  ------------  ------------------------  ------------------------  ----------
  test1001      ksh-20100621-5.el5_8.1    ksh-20100621-5.el5_8.1    matched
Package existence for "ksh" check passed
Verification of peer compatibility was unsuccessful.
Checks did not pass for the following node(s):
        test1001

You see that validation was unsuccessful.
This was due to memory en free disk space.
Server test1001is running and for the rest everything
matched so we can go on.

You can run the next script to see if we can add the node.

cluvfy stage -pre nodeadd -n test1001 -fixup -verbose

it must end this way

Pre-check for node addition was successful on all the nodes

Now where going to add the node to the cluster.
It begins with pre-checks if you want to skip this you can set the following parameter
$ export IGNORE_PREADDNODE_CHECKS=Y

$ ./addNode.sh -silent CLUSTER_NEW_NODES={test1001} CLUSTER_NEW_VIRTUAL_HOSTNAMES={test1001-vip}
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB.   Actual 3071 MB    Passed
Oracle Universal Installer, Version 11.2.0.2.0 Production
Copyright (C) 1999, 2010, Oracle. All rights reserved.

Performing tests to see whether nodes test1002,test1003,test1004 are available
............................................................... 100% Done.
..
-----------------------------------------------------------------------------
Cluster Node Addition Summary
Global Settings
   Source: /u01/app/grid/11.2.0.2
   New Nodes
Space Requirements
   New Nodes
      test1001
         /u01: Required 13.08GB : Available 24.32GB
Installed Products
   Product Names
      Oracle Grid Infrastructure 11.2.0.2.0
      Sun JDK 1.5.0.24.08
      Installer SDK Component 11.2.0.2.0
      Oracle One-Off Patch Installer 11.2.0.0.2
      Oracle Universal Installer 11.2.0.2.0
      Oracle USM Deconfiguration 11.2.0.2.0
      Oracle Configuration Manager Deconfiguration 10.3.1.0.0
      Enterprise Manager Common Core Files 10.2.0.4.3
      Oracle DBCA Deconfiguration 11.2.0.2.0
      Oracle RAC Deconfiguration 11.2.0.2.0
      Oracle Quality of Service Management (Server) 11.2.0.2.0
      Installation Plugin Files 11.2.0.2.0
      Universal Storage Manager Files 11.2.0.2.0
      Oracle Text Required Support Files 11.2.0.2.0
      Automatic Storage Management Assistant 11.2.0.2.0
      Oracle Database 11g Multimedia Files 11.2.0.2.0
      Oracle Multimedia Java Advanced Imaging 11.2.0.2.0
      Oracle Globalization Support 11.2.0.2.0
      Oracle Multimedia Locator RDBMS Files 11.2.0.2.0
      Oracle Core Required Support Files 11.2.0.2.0
      Bali Share 1.1.18.0.0
      Oracle Database Deconfiguration 11.2.0.2.0
      Oracle Quality of Service Management (Client) 11.2.0.2.0
      Expat libraries 2.0.1.0.1
      Oracle Containers for Java 11.2.0.2.0
      Perl Modules 5.10.0.0.1
      Secure Socket Layer 11.2.0.2.0
      Oracle JDBC/OCI Instant Client 11.2.0.2.0
      Oracle Multimedia Client Option 11.2.0.2.0
      LDAP Required Support Files 11.2.0.2.0
      Character Set Migration Utility 11.2.0.2.0
      Perl Interpreter 5.10.0.0.1
      PL/SQL Embedded Gateway 11.2.0.2.0
      OLAP SQL Scripts 11.2.0.2.0
      Database SQL Scripts 11.2.0.2.0
      Oracle Extended Windowing Toolkit 3.4.47.0.0
      SSL Required Support Files for InstantClient 11.2.0.2.0
      SQL*Plus Files for Instant Client 11.2.0.2.0
      Oracle Net Required Support Files 11.2.0.2.0
      Oracle Database User Interface 2.2.13.0.0
      RDBMS Required Support Files for Instant Client 11.2.0.2.0
      RDBMS Required Support Files Runtime 11.2.0.2.0
      XML Parser for Java 11.2.0.2.0
      Oracle Security Developer Tools 11.2.0.2.0
      Oracle Wallet Manager 11.2.0.2.0
      Enterprise Manager plugin Common Files 11.2.0.2.0
      Platform Required Support Files 11.2.0.2.0
      Oracle JFC Extended Windowing Toolkit 4.2.36.0.0
      RDBMS Required Support Files 11.2.0.2.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.2.0
      Oracle Java Client 11.2.0.2.0
      Cluster Verification Utility Files 11.2.0.2.0
      Oracle Notification Service (eONS) 11.2.0.2.0
      Oracle LDAP administration 11.2.0.2.0
      Cluster Verification Utility Common Files 11.2.0.2.0
      Oracle Clusterware RDBMS Files 11.2.0.2.0
      Oracle Locale Builder 11.2.0.2.0
      Oracle Globalization Support 11.2.0.2.0
      Buildtools Common Files 11.2.0.2.0
      Oracle RAC Required Support Files-HAS 11.2.0.2.0
      SQL*Plus Required Support Files 11.2.0.2.0
      XDK Required Support Files 11.2.0.2.0
      Agent Required Support Files 10.2.0.4.3
      Parser Generator Required Support Files 11.2.0.2.0
      Precompiler Required Support Files 11.2.0.2.0
      Installation Common Files 11.2.0.2.0
      Required Support Files 11.2.0.2.0
      Oracle JDBC/THIN Interfaces 11.2.0.2.0
      Oracle Multimedia Locator 11.2.0.2.0
      Oracle Multimedia 11.2.0.2.0
      HAS Common Files 11.2.0.2.0
      Assistant Common Files 11.2.0.2.0
      PL/SQL 11.2.0.2.0
      HAS Files for DB 11.2.0.2.0
      Oracle Recovery Manager 11.2.0.2.0
      Oracle Database Utilities 11.2.0.2.0
      Oracle Notification Service 11.2.0.2.0
      SQL*Plus 11.2.0.2.0
      Oracle Netca Client 11.2.0.2.0
      Oracle Net 11.2.0.2.0
      Oracle JVM 11.2.0.2.0
      Oracle Internet Directory Client 11.2.0.2.0
      Oracle Net Listener 11.2.0.2.0
      Cluster Ready Services Files 11.2.0.2.0
      Oracle Database 11g 11.2.0.2.0
-----------------------------------------------------------------------------

Instantiating scripts for add node (Friday, March 1, 2013 2:27:47 PM CET)
.                                                                 1% Done.
Instantiation of add node scripts complete
Copying to remote nodes (Friday, March 1, 2013 2:27:55 PM CET)
..........................................................................
Instantiation of add node scripts complete
Copying to remote nodes (Friday, March 1, 2013 2:27:55 PM CET)
...............................................................................................                                 96% Done.
Home copied to new nodes
Saving inventory on nodes (Friday, March 1, 2013 2:38:18 PM CET)
.                                                               100% Done.
Save inventory complete
WARNING:
The following configuration scripts need to be executed as the "root" user in each cluster node.
/u01/app/grid/11.2.0.2/root.sh #On nodes test1001
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 /u01/app/grid/11.2.0.2 was successful.
Please check '/tmp/silentInstall.log' for more details.

after you run root.sh on test1001 you finished.

$ crsstat
Name                                          Type            Target     State      Host
----------------------------------------------------------------------------------------------
ora.DGGACFS1.dg                               application     ONLINE     ONLINE     test1001
ora.DGGRID.dg                                 application     ONLINE     ONLINE     test1001
ora.LISTENER.lsnr                             application     ONLINE     ONLINE     test1001
ora.LISTENER_SCAN1.lsnr                       application     OFFLINE    OFFLINE
ora.asm                                       application     ONLINE     ONLINE     test1001
ora.cvu                                       application     ONLINE     ONLINE     test1004
ora.gsd                                       application     OFFLINE    OFFLINE
ora.net1.network                              application     ONLINE     ONLINE     test1001
ora.oc4j                                      application     OFFLINE    OFFLINE
ora.test1001.ASM1.asm                         application     ONLINE     ONLINE     test1001
ora.test1001.LISTENER_OESV7802.lsnr           application     ONLINE     ONLINE     test1001
ora.test1001.gsd                              application     OFFLINE    OFFLINE
ora.test1001.ons                              application     ONLINE     ONLINE     test1001
ora.test1001.vip                              application     ONLINE     ONLINE     test1001
ora.test1002.ASM2.asm                         application     ONLINE     ONLINE     test1002
ora.test1002.LISTENER_OESV7803.lsnr           application     ONLINE     ONLINE     test1002
ora.test1002.gsd                              application     OFFLINE    OFFLINE
ora.test1002.ons                              application     ONLINE     ONLINE     test1002
ora.test1002.vip                              application     ONLINE     ONLINE     test1002
ora.test1003.ASM3.asm                         application     ONLINE     ONLINE     test1003
ora.test1003.LISTENER_OESV7902.lsnr           application     ONLINE     ONLINE     test1003
ora.test1003.gsd                              application     OFFLINE    OFFLINE
ora.test1003.ons                              application     ONLINE     ONLINE     test1003
Ora.test1003.vip                              application     ONLINE     ONLINE     test1003
ora.test1004.ASM4.asm                         application     ONLINE     ONLINE     test1004
ora.test1004.LISTENER_OESV7903.lsnr           application     ONLINE     ONLINE     test1004
ora.test1004.gsd                              application     OFFLINE    OFFLINE
ora.test1004.ons                              application     ONLINE     ONLINE     test1004
ora.test1004.vip                              application     ONLINE     ONLINE     test1004
ora.ons                                       application     ONLINE     ONLINE     test1001
ora.registry.acfs                             application     ONLINE     ONLINE     test1001
ora.scan1.vip                                 application     OFFLINE    OFFLINE

Thats it.

No comments:

Post a Comment