1、rac 增加节点js1u-dba-ractdb3
--备份ocr
./ocrconfig -manualbackup
./ocrconfig -showbackup
--ssh 互信免密登陆(3节点)
./sshUserSetup.sh -user grid -hosts "js1u-dba-ractdb1 js1u-dba-ractdb2 js1u-dba-ractdb3" -advanced -noPromptPassphrase
--验证rac 扩充节点环境
su - grid
cluvfy stage -pre nodeadd -n js1u-dba-ractdb3 -verbose
su - oracle
cluvfy stage -pre nodeadd -n js1u-dba-ractdb3 -verbose
--rac 扩充节点
su - grid
export IGNORE_PREADDNODE_CHECKS=Y
cd $ORACLE_HOME/oui/bin
./addNode.sh "CLUSTER_NEW_NODES={js1u-dba-ractdb3}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={js1u-dba-ractdb3-vip}" "CLUSTER_NEW_PRIVATE_NODE_NAMES={js1u-dba-ractdb3-priv}"
su - oracle
export IGNORE_PREADDNODE_CHECKS=Y
cd $ORACLE_HOME/oui/bin
./addNode.sh "CLUSTER_NEW_NODES={js1u-dba-ractdb3}"
--如报错:SEVERE:Cannot perform add node procedure as the value of CLUSTER_NEW_VIRTUAL_HOSTNAMES or CLUSTER_NEW_NODES or both could not be obtained from the command line or response file(s). Silent install cannot continue 执行如下动作再重新执行addnode脚本
$ORACLE_HOME/oui/bin/runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES={js1u-dba-ractdb1,js1u-dba-ractdb2}" -silent CRS="false"
dbca 增加实例
2、rac 移除节点js1u-dba-ractdb3
--备份ocr
./ocrconfig -manualbackup
./ocrconfig -showbackup
--rac 移除节点
su - oracle
dbca 移除实例
$ORACLE_HOME/oui/bin/runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES={js1u-dba-ractdb3}" -local
$ORACLE_HOME/deinstall/deinstall –local
--任一保留节点执行
srvctl stop nodeapps -n js1u-dba-ractdb3 –f
--每个保留的节点执行
$ORACLE_HOME/oui/bin/runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES={js1u-dba-ractdb1,js1u-dba-ractdb2}"
su - root
$ORACLE_HOME/crs/install/rootcrs.pl -deconfig –force
--任一保留的节点执行
crsctl delete node -n js1u-dba-ractdb3
su - grid
$ORACLE_HOME/oui/bin/runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES=js1u-dba-ractdb3" CRS=TRUE -silent -local
$ORACLE_HOME/deinstall/deinstall –local
--每个保留的节点执行
$ORACLE_HOME/oui/bin/runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES={js1u-dba-ractdb1,js1u-dba-ractdb2}" CRS=true
--任一保留节点执行
cluvfy stage -post nodedel -n js1u-dba-ractdb3
--如有被移除的节点残留vip 存在
su - root
srvctl stop vip -i ora.js1u-dba-ractdb3.vip -f
srvctl remove vip -i ora.js1u-dba-ractdb3.vip -f
crsctl delete resource ora.js1u-dba-ractdb3.vip -f