Grid Infrastructure 12c 노드 제거하기
노드를 제거하는 방법은
제거하고자 하는
노등 상에서
작업을 수행하고, 작업 수행 후
클러스터의 정보를
변경해주면 된다.
A. 제거할 노드를
클러스터에서 분리(3번 노드)
제거를 수행할 노드
상에서 작업을
수행해야 한다.
[grid@oel5-12c-rac3
~]$ cd /u01/app/12.1.0/grid/oui/bin/
[grid@oel5-12c-rac3
bin]$ ./runInstaller -updateNodeList ORACLE_HOME=/u01/app/12.1.0/grid/
"CLUSTER_NODES={oel5-12c-rac3}" CRS=TRUE -silent -local
Starting
Oracle Universal Installer...
Checking
swap space: must be greater than 500 MB.
Actual 5941 MB Passed
The
inventory pointer is located at /etc/oraInst.loc
'UpdateNodeList'
was successful.
|
B. 노드 제거
작업 수행(3번 노드)
1) deinstaller 수행
[grid@oel5-12c-rac3
grid]$ pwd
/u01/app/12.1.0/grid
[grid@oel5-12c-rac3
grid]$ deinstall/deinstall -local
Checking
for required files and bootstrapping ...
Please
wait ...
Location
of logs /tmp/deinstall2013-12-31_06-15-18PM/logs/
############
ORACLE DEINSTALL & DECONFIG TOOL START ############
#########################
CHECK OPERATION START #########################
##
[START] Install check configuration ##
Checking
for existence of the Oracle home location /u01/app/12.1.0/grid
Oracle
Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
Oracle
Base selected for deinstall is: /u01/app/grid
Checking
for existence of central inventory location /u01/app/oraInventory
Checking
for existence of the Oracle Grid Infrastructure home /u01/app/12.1.0/grid
The
following nodes are part of this cluster:
oel5-12c-rac3,oel5-12c-rac1,oel5-12c-rac2
Checking
for sufficient temp space availability on node(s) :
'oel5-12c-rac3,oel5-12c-rac1,oel5-12c-rac2'
##
[END] Install check configuration ##
Traces
log file:
/tmp/deinstall2013-12-31_06-15-18PM/logs//crsdc_2013-12-31_06-16-05PM.log
Network
Configuration check config START
Network
de-configuration trace file location:
/tmp/deinstall2013-12-31_06-15-18PM/logs/netdc_check2013-12-31_06-16-08-PM.log
Network
Configuration check config END
Asm
Check Configuration START
ASM
de-configuration trace file location:
/tmp/deinstall2013-12-31_06-15-18PM/logs/asmcadc_check2013-12-31_06-16-08-PM.log
Database
Check Configuration START
Database
de-configuration trace file location:
/tmp/deinstall2013-12-31_06-15-18PM/logs/databasedc_check2013-12-31_06-16-08-PM.log
Database
Check Configuration END
#########################
CHECK OPERATION END #########################
#######################
CHECK OPERATION SUMMARY #######################
Oracle
Grid Infrastructure Home is: /u01/app/12.1.0/grid
The
cluster node(s) on which the Oracle home deinstallation will be performed
are:oel5-12c-rac3,oel5-12c-rac1,oel5-12c-rac2
Since
-local option has been specified, the Oracle home will be deinstalled only on
the local node, 'oel5-12c-rac3'.
Oracle
Home selected for deinstall is: /u01/app/12.1.0/grid
Inventory
Location where the Oracle home registered is: /u01/app/oraInventory
Option
-local will not modify any ASM configuration.
Do you
want to continue (y - yes, n - no)? [n]: y
A log
of this session will be written to: '/tmp/deinstall2013-12-31_06-15-18PM/logs/deinstall_deconfig2013-12-31_06-15-54-PM.out'
Any
error messages from this session will be written to:
'/tmp/deinstall2013-12-31_06-15-18PM/logs/deinstall_deconfig2013-12-31_06-15-54-PM.err'
########################
CLEAN OPERATION START ########################
Database
de-configuration trace file location:
/tmp/deinstall2013-12-31_06-15-18PM/logs/databasedc_clean2013-12-31_06-16-23-PM.log
ASM
de-configuration trace file location:
/tmp/deinstall2013-12-31_06-15-18PM/logs/asmcadc_clean2013-12-31_06-16-23-PM.log
ASM
Clean Configuration END
Network
Configuration clean config START
Network
de-configuration trace file location:
/tmp/deinstall2013-12-31_06-15-18PM/logs/netdc_clean2013-12-31_06-16-23-PM.log
Network
Configuration clean config END
---------------------------------------->
The
deconfig command below can be executed in parallel on all the remote nodes.
Execute the command on the local node
after the execution completes on all the remote nodes.
Run the
following command as the root user or the administrator on node
"oel5-12c-rac3".
/tmp/deinstall2013-12-31_06-15-18PM/perl/bin/perl
-I/tmp/deinstall2013-12-31_06-15-18PM/perl/lib
-I/tmp/deinstall2013-12-31_06-15-18PM/crs/install
/tmp/deinstall2013-12-31_06-15-18PM/crs/install/rootcrs.pl -force -deconfig -paramfile
"/tmp/deinstall2013-12-31_06-15-18PM/response/deinstall_OraGI12Home1.rsp"
Press
Enter after you finish running the above commands
<----------------------------------------
Remove
the directory: /tmp/deinstall2013-12-31_06-15-18PM on node:
Setting
the force flag to false
Setting
the force flag to cleanup the Oracle Base
Oracle
Universal Installer clean START
Detach
Oracle home '/u01/app/12.1.0/grid' from the central inventory on the local
node : Done
Delete
directory '/u01/app/12.1.0/grid' on the local node : Done
Delete
directory '/u01/app/oraInventory' on the local node : Done
The
Oracle Base directory '/u01/app/grid' will not be removed on local node. The
directory is not empty.
Oracle
Universal Installer cleanup was successful.
Oracle
Universal Installer clean END
##
[START] Oracle install clean ##
Clean
install operation removing temporary directory
'/tmp/deinstall2013-12-31_06-15-18PM' on node 'oel5-12c-rac3'
Clean
install operation removing temporary directory
'/tmp/deinstall2013-12-31_06-15-18PM' on node 'oel5-12c-rac1,oel5-12c-rac2'
##
[END] Oracle install clean ##
#########################
CLEAN OPERATION END #########################
#######################
CLEAN OPERATION SUMMARY #######################
Oracle
Clusterware is stopped and successfully de-configured on node
"oel5-12c-rac3"
Oracle
Clusterware is stopped and de-configured successfully.
Successfully
detached Oracle home '/u01/app/12.1.0/grid' from the central inventory on the
local node.
Successfully
deleted directory '/u01/app/12.1.0/grid' on the local node.
Successfully
deleted directory '/u01/app/oraInventory' on the local node.
Oracle
Universal Installer cleanup was successful.
Run 'rm
-rf /etc/oraInst.loc' as root on node(s) 'oel5-12c-rac3' at the end of the
session.
Run 'rm
-rf /opt/ORCLfmap' as root on node(s) 'oel5-12c-rac3' at the end of the
session.
Oracle
deinstall tool successfully cleaned up temporary directories.
#######################################################################
#############
ORACLE DEINSTALL & DECONFIG TOOL END #############
|
2) 중간에 root 계정으로 스크립트를 수행해야
한다. (별도의 터미널
창에서 수행)
[root@oel5-12c-rac3
~]# /tmp/deinstall2013-12-31_06-15-18PM/perl/bin/perl
-I/tmp/deinstall2013-12-31_06-15-18PM/perl/lib
-I/tmp/deinstall2013-12-31_06-15-18PM/crs/install
/tmp/deinstall2013-12-31_06-15-18PM/crs/install/rootcrs.pl -force -deconfig -paramfile
"/tmp/deinstall2013-12-31_06-15-18PM/response/deinstall_OraGI12Home1.rsp"
perl:
warning: Setting locale failed.
perl:
warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your
system.
perl:
warning: Falling back to the standard locale ("C").
Using
configuration parameter file:
/tmp/deinstall2013-12-31_06-15-18PM/response/deinstall_OraGI12Home1.rsp
Network
1 exists
Subnet
IPv4: 192.168.56.0/255.255.255.0/eth0, static
Subnet
IPv6:
VIP
exists: network number 1, hosting node oel5-12c-rac1
VIP
Name: oel5-12c-rac1-vip.litkhai.com
VIP
IPv4 Address: 192.168.56.103
VIP
IPv6 Address:
VIP
exists: network number 1, hosting node oel5-12c-rac2
VIP
Name: oel5-12c-rac2-vip.litkhai.com
VIP
IPv4 Address: 192.168.56.104
VIP
IPv6 Address:
VIP
exists: network number 1, hosting node oel5-12c-rac3
VIP
Name: oel5-12c-rac3-vip
VIP
IPv4 Address: 192.168.56.109
VIP
IPv6 Address:
ONS
exists: Local port 6100, remote port 6200, EM port 2016
CRS-2791:
Starting shutdown of Oracle High Availability Services-managed resources on
'oel5-12c-rac3'
CRS-2673:
Attempting to stop 'ora.crsd' on 'oel5-12c-rac3'
CRS-2790:
Starting shutdown of Cluster Ready Services-managed resources on
'oel5-12c-rac3'
CRS-2673:
Attempting to stop 'ora.proxy_advm' on 'oel5-12c-rac3'
CRS-2677:
Stop of 'ora.proxy_advm' on 'oel5-12c-rac3' succeeded
CRS-2792:
Shutdown of Cluster Ready Services-managed resources on 'oel5-12c-rac3' has
completed
CRS-2677:
Stop of 'ora.crsd' on 'oel5-12c-rac3' succeeded
CRS-2673:
Attempting to stop 'ora.evmd' on 'oel5-12c-rac3'
CRS-2673:
Attempting to stop 'ora.drivers.acfs' on 'oel5-12c-rac3'
CRS-2673:
Attempting to stop 'ora.ctssd' on 'oel5-12c-rac3'
CRS-2673:
Attempting to stop 'ora.storage' on 'oel5-12c-rac3'
CRS-2673:
Attempting to stop 'ora.mdnsd' on 'oel5-12c-rac3'
CRS-2673:
Attempting to stop 'ora.gpnpd' on 'oel5-12c-rac3'
CRS-2677:
Stop of 'ora.drivers.acfs' on 'oel5-12c-rac3' succeeded
CRS-2677:
Stop of 'ora.storage' on 'oel5-12c-rac3' succeeded
CRS-2673:
Attempting to stop 'ora.asm' on 'oel5-12c-rac3'
CRS-2677:
Stop of 'ora.asm' on 'oel5-12c-rac3' succeeded
CRS-2673:
Attempting to stop 'ora.cluster_interconnect.haip' on 'oel5-12c-rac3'
CRS-2677:
Stop of 'ora.cluster_interconnect.haip' on 'oel5-12c-rac3' succeeded
CRS-2677:
Stop of 'ora.evmd' on 'oel5-12c-rac3' succeeded
CRS-2677:
Stop of 'ora.mdnsd' on 'oel5-12c-rac3' succeeded
CRS-2677:
Stop of 'ora.gpnpd' on 'oel5-12c-rac3' succeeded
CRS-2677:
Stop of 'ora.ctssd' on 'oel5-12c-rac3' succeeded
CRS-2673:
Attempting to stop 'ora.cssd' on 'oel5-12c-rac3'
CRS-2677:
Stop of 'ora.cssd' on 'oel5-12c-rac3' succeeded
CRS-2673:
Attempting to stop 'ora.gipcd' on 'oel5-12c-rac3'
CRS-2677:
Stop of 'ora.gipcd' on 'oel5-12c-rac3' succeeded
CRS-2793:
Shutdown of Oracle High Availability Services-managed resources on
'oel5-12c-rac3' has completed
CRS-4133:
Oracle High Availability Services has been stopped.
2013/12/31
18:18:28 CLSRSC-336: Successfully deconfigured Oracle clusterware stack on
this node
|
클러스터 상에서
노드 분리 작업 수행
[grid@oel5-12c-rac1
bin]$ echo $ORACLE_HOME
/u01/app/12.1.0/grid
[grid@oel5-12c-rac1
bin]$ ./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME
"CLUSTER_NODES={oel5-12c-rac1,oel5-12c-rac2}" CRS=TRUE -silent
Starting
Oracle Universal Installer...
Checking
swap space: must be greater than 500 MB.
Actual 5937 MB Passed
The
inventory pointer is located at /etc/oraInst.loc
'UpdateNodeList'
was successful.
|
노드 제거
작업 수행
[grid@oel5-12c-rac1
addnode]# crsctl delete node -n oel5-12c-rac3
CRS-4661:
Node oel5-12c-rac3 successfully deleted.
|
C. 노드 제거
작업 결과 확인
[grid@oel5-12c-rac1
addnode]$ cluvfy stage -post nodedel -n oel5-12c-rac3
Performing
post-checks for node removal
Checking
CRS integrity...
CRS
integrity check passed
Clusterware
version consistency passed.
Node
removal check passed
Post-check
for node removal was successful.
|
이로서 노드 제거가
완료되었다.
댓글 없음:
댓글 쓰기