Professional Documents
Culture Documents
RAC-adding and Removing Nodes
RAC-adding and Removing Nodes
CERN - IT Department
CH-1211 Genève 23
Switzerland LCG
www.cern.ch/it
Part I
Node addition
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 2
Methods
• Silent cloning procedures
• Enterprise Manager Grid Control cloning and
adding instance
• addNode.sh and DBCA
• Manual
DEMO
In the presented demo as well as in the command examples appearing in the
presentation, the following names are being used:
demorac – cluster name
itrac18 (demorac1, +ASM1), itrac19 (demorac2, +ASM2) -
existing cluster nodes/instances
itrac20 (demorac3, +ASM3) – node/instances that are being added to
the cluster
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 3
Steps
• Setup hardware for a new node
• Install and configure OS
• Configure account equivalency
• Add Oracle Clusterware to the new node
• Configure ONS for the new node
• Add ASM and DB home to the new node
• Configure a listener on the new node
• Add an ASM and a database instances
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 4
Hardware setup
• New node of the cluster should be:
– of similar type as other cluster nodes (the same
architecture e.g. x86_64)
– of similar size to other cluster nodes
– physically connected to the shared storage used
by the cluster
– physically connected to the cluster private
network(s)
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 5
OS installation and configuration
• Install OS on the new node
– The same flavor and version as installed on other nodes (e.g.
RHEL 4.0)
– The same kernel version recommended
• Make sure that all required packages are installed
– Ideally the list of software packages should be identical on all
cluster nodes
• Configure kernel parameters and shell limits
• Create Oracle-related OS groups and users
• Configure network interfaces
– On one of the old cluster nodes edit /etc/hosts file adding
entries related to the new node; distribute this file to all cluster
nodes
• Configure hangcheck timer module
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 7
Adding Oracle Clusterware and
configuring ONS
• Run addNode.sh script from an existing cluster node
cd $ORA_CRS_HOME/oui/bin; ./addNode.sh
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 9
Adding ASM and DB home
(cloning)
• Go to an existing cluster node and tar ORACLE_HOME
directory
# on the first node of the cluster
cd $ORACLE_HOME/..
tar cvfp rdbms.tar rdbms
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 10
Listener configuration
• From the new node run netca to configure a listener:
– Choose ‘Cluster configuration’
– Select the new node only
– Choose ‘Listener configuration’
– Choose ‘Add’
– Leave the default listener name
– Leave intact the default protocol choice
– Specify proper port
– Complete the configuration
• Check with the crs_stat command if the new listener has
been registered to clusterware
• Edit listener.ora and tnsnames.ora files on the new
node:
– You may want to remove extproc related entries
– In tnsnames.ora add/edit entries related to the new listener
• Distribute updated tnsnames.ora file to all nodes of the
cluster
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 11
Adding ASM and database
instances (with DBCA)
• Although this procedure is recommended by Oracle
we have seen that it is quite unreliable and
therefore we strongly recommend using manual
procedure described later
• Run DBCA from an old cluster node:
– Choose ‘Oracle Real Application Clusters database’
– Choose ‘Instance Management’
– Choose ‘Add an instance’
– Specify SYS username and password
– Select name of the new node
– Modify custom service definitions
– Agree to extend ASM to the new node
– Complete the operation
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 12
Adding ASM and database
instances (manually)
• Edit /etc/oratab file on the new node
– add entries describing new ASM and DB instances
• Create dump directories for ASM and DB instances as defined
by initialization parameters
• Create ASM pfile in the default location
($ORACLE_HOME/dbs)
• Create a password file for ASM
orapwd file=$ORACLE_HOME/dbs/orapw+ASM3 password=xxxx
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 15
Final steps
• Install OEM agent
• Redefine services if needed
srvctl stop service -d demorac -s demorac_lb
srvctl modify service -d demorac -s demorac_lb
–i demorac1,demorac2,demorac3 -n
srvctl start service -d demorac -s demorac_lb
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 16
Part II
Node removal
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 17
Steps
• Stop and delete the DB instance on the
node to be deleted
• Clean up the ASM instance
• Remove the listener from the node to be
deleted
• Remove RAC and ASM software from
oraInventory
• Remove ONS configuration from the node
• Remove the node from the clusterware
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 18
Deleting DB instance on the node
to be deleted from the cluster
• Redefine services in a way that they do not use the
node being deleted (using srvctl tool)
• From the node that is not being deleted run DBCA:
– Choose ‘Oracle Real Application Clusters database’
– Choose ‘Instance Management’
– Choose ‘Delete an instance’
– Provide SYS credentials
– Select the instance to delete
– Proceed with the deletion
• Verify with the crs_stat command that the
instance has been removed from the cluster registry
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 19
Cleaning up the ASM instance
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 20
Removing the listener
• Run netca on the node being deleted:
– Choose ‘Cluster configuration’
– Select the node being deleted
– Choose ‘Listener configuration’
– Choose ‘Delete’
– Complete the deletion
• Check with crs_stat tool if the listener has
disappeared from OCR
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 21
Removing database software
• Update oraInventory on the node being removed
# on the node being deleted:
$ORACLE_HOME/oui/bin/runInstaller –updateNodeList
ORACLE_HOME=$ORACLE_HOME CLUSTER_NODES=itrac20 -local
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 23
Removing cluster software (2)
CERN - IT Department
CH-1211 Genève 23
Switzerland
RAC – adding and removing nodes –
www.cern.ch/it
WLCG Service Reliability Workshop, Nov 2007 - 25