Thursday, February 27, 2014

Adding a node to cluster

Following method only add the clusterware to the new node and not the oracle instance.
The addNode.sh shell script is used to add nodes to an existing Oracle Clusterware environment. It:
  • Runs without a graphical interface
  • Does not perform the prerequisite operating system tasks 
You can use a variety of methods to add and delete nodes in an Oracle Clusterware environment:
  • Silent cloning procedures: Copy images of an Oracle Clusterware installation to other nodes to create new clusters that have identical hardware by using the clone.pl script.
  • Enterprise Manager (EM) Grid Control: Provides a GUI interface and automated wizards to the cloning procedures
  • addNode.sh: Invokes a subset of OUI functionality



Special attention must be given to the procedures because some steps are performed on the existing nodes, whereas other steps are performed on the nodes that are being added or removed.

Prerequisite Steps for Running addNode.sh

  • Make physical connections: networking, storage, and other
  • Install the operating system.
  • Perform the Oracle Clusterware installation prerequisite tasks:
    • Check system requirements.
    • Check network requirements.
    • Install the required operating system packages.
    • Set kernel parameters.
    • Create groups and users.
    • Create the required directories.
    • Configure the installation owner’s shell limits.
    • Configure Secure Shell (SSH) and enable user equivalency.
  • Verify the installation with Cluster Verify utility (cluvfy) from existing nodes.
    • Perform a post-hardware and operating system check.
      • [grid@host01]$ cluvfy stage –post hwos –n host03
    • Perform a detailed properties comparison of one existing reference node to the new node.
      • grid@host01]$ cluvfy comp peer -refnode host01 -n host03 -orainv oinstall -osdba asmdba -verbose
Adding a Node with addNode.sh
  • Ensure that Oracle Clusterware is successfully installed on at least one node.
  • Verify the integrity of the cluster and the node to be added (host03) with:
    • [grid@host01]$cluvfy stage -pre nodeadd -n host03 
  • Run addNode.sh to add host03 to an existing cluster.
    • Without GNS:
      • [grid@host01]$cd /Grid_home/oui/bin
[grid@host01]$./addNode.sh –silent "CLUSTER_NEW_NODES={host03}" \
"CLUSTER_NEW_VIRTUAL_HOSTNAMES={host03-vip}"

    • With GNS:
      • $ ./addNode.sh –silent "CLUSTER_NEW_NODES={node3}" 
  • Perform integrity checks on the cluster.
    • [grid@host01]$ cluvfy stage –post nodeadd –n host03 -verbose


Practice
-------------------------------


Adding a node to clusterware
-----------------------------

$ cluvfy stage -post hwos -n rac2

$ cluvfy comp peer -refnode rac1 -n rac2 -orainv oinstall -osdba asmdba -verbose

Adding a Node with addNode.sh
---------------------------------
$ cluvfy stage -pre nodeadd -n rac2
$ cd /u01/app/11.2.0/grid/oui/bin
$ ./addNode.sh -silent "CLUSTER_NEW_NODES={rac2}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={rac2-vip}"
$ cluvfy stage -post nodeadd -n rac2 -verbose



Download the Video


No comments:

Post a Comment