Adding and Removing Cluster Nodes
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Objectives
After completing this lesson, you should be able to:
• Delete a node from a cluster
• Use [Link] to add a node to a cluster
11 - 2 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Removing a Node from the Cluster
A series of steps is used to remove a node.
• You cannot simply remove the node from the cluster.
• Oracle Central Inventory on each node has information
about all nodes.
• The Oracle Cluster Registry (OCR) contains information
about all nodes.
host03
host03 host03
GRID HOME GRID HOME GRID HOME
Operating system Operating system Operating system
host03 Storage
11 - 3 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Deleting a Node from the Cluster
1. Verify the location of the Oracle Clusterware home.
2. From a node that will remain, run the following as root to
expire the Cluster Synchronization Service (CSS) lease on
the node that you are deleting:
[root@host01]# crsctl unpin css -n host03
3. Run the [Link] script as root from the
Grid_home/crs/install directory on each node to be
deleted:
[root@host03]# ./[Link] -delete -force
11 - 4 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Deleting a Node from the Cluster
4. From a node that will remain, delete the node from the
cluster with the following command run as root:
[root@host01]# crsctl delete node -n host03
5. On the node to be deleted, as the user that installed
Oracle Clusterware, run the following command from the
Grid_home/oui/bin directory:
[grid@host03]$ ./runInstaller -updateNodeList
ORACLE_HOME=Grid_home "CLUSTER_NODES=
{host03}" CRS=TRUE -local
11 - 5 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Deleting a Node from the Cluster
6. On the node that you are deleting, run the runInstaller
command as the user that installed Oracle Clusterware.
A. If you have a shared home:
[grid@host03]$ ./runInstaller -detachHome
ORACLE_HOME=/oragrid/product/19c
B. For a nonshared home, deinstall the Oracle Clusterware
home:
[grid@host03]# ./deinstall –local
7. On any remaining node, as the Grid software owner,
update the node list:
[grid@host01]$ cd /Grid_home/oui/bin
[grid@host01]$ ./runInstaller -updateNodeList \
ORACLE_HOME=/oragrid/product/19c \
"CLUSTER_NODES={host01,host02}" CRS=TRUE
11 - 6 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Deleting a Node from the Cluster
8. On any remaining node, verify that the specified nodes
have been deleted from the cluster.
[grid@host01]$ cluvfy stage -post nodedel –n
host03 [-verbose]
11 - 7 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Adding Oracle Clusterware Homes
The [Link] 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
GRID HOME GRID HOME
Operating system Operating system
Storage
11 - 8 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Prerequisite Steps for Running [Link]
The following steps assume that you already have a successful
Linux and Oracle Clusterware installation.
1. Make physical connections: networking, storage, and other
2. Install the operating system.
3. Perform the Oracle Clusterware installation prerequisite
tasks:
A. Check system requirements.
B. Check network requirements.
C. Install the required operating system packages.
D. Set kernel parameters.
E. Create groups and users.
F. Create the required directories.
G. Configure the installation owner’s shell limits.
H. Configure Secure Shell (SSH) and enable user equivalency.
11 - 9 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Prerequisite Steps for Running [Link]
4. Verify the installation with Cluster Verify utility (cluvfy)
from existing nodes.
A. Perform a post-hardware and operating system check.
[grid@host01]$ cluvfy stage –post hwos –n host03
B. 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
11 - 10 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Adding a Node with [Link]
1. Ensure that Oracle Clusterware is successfully installed on
at least one node.
2. Verify the integrity of the cluster and the node to be added
(host03) with:
[grid@host01]$cluvfy stage -pre nodeadd -n host03
3. Run [Link] to add host03 to an existing cluster.
Without GNS:
[grid@host01]$cd /Grid_home/oui/bin
[grid@host01]$./[Link] –silent "CLUSTER_NEW_NODES={host03}" \
"CLUSTER_NEW_VIRTUAL_HOSTNAMES={host03-vip}"
With GNS:
$ ./[Link] –silent "CLUSTER_NEW_NODES={node3}"
11 - 11 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
Completing OUI Node Addition
11 - 12 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
Completing OUI Node Addition
11 - 13 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
11 - 14 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
11 - 15 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
11 - 16 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
11 - 17 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
11 - 18 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
oracle@oraprd01 19c]$ cd $ORACLE_HOME
oracle@oraprd01 19c]$ cd addnode/
[oracle@oraprd01 addnode]$ ls
addnode_oraparam.ini addnode_oraparam.[Link] [Link] [Link]
[oracle@oraprd01 addnode]$ ./[Link] "CLUSTER_NEW_NODES={oraprd02}"
11 - 19 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
11 - 20 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
11 - 21 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
11 - 22 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
11 - 23 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
11 - 24 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
11 - 25 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
11 - 26 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
11 - 27 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
11 - 28 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
11 - 29 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Add Node Oracle RAC 19c
11 - 30 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Quiz
The [Link] script can generate fixup scripts to correct
prerequisites for new nodes for an existing cluster.
a. True
b. False
11 - 31 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Summary
In this lesson, you should have learned how to:
• Delete a node from a cluster
• Use [Link] to add a node to a cluster
11 - 32 Copyright © 2019, Oracle and/or its affiliates. All rights reserved.