Steps To Change Cluster Name In ORACLE RAC


Step 1: Validate current cluster name

 [oracle@oratest2 ~]$ olsnodes -c

oratest-cluster

 STEP 2: Validate all the node are up and running

We must ensure that all the nodes of the cluster are up and running prior to run the crsname script

[root@oratest ~]# /u01/app/19c/grid/bin/crsctl check cluster -all

**************************************************************

oratest:

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

**************************************************************

oratest2:

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

 Step 3: Set Blackout for entire GI stack

Changing the cluster name will require GI stack outage which means the clusterware and its resources which includes asm, database, listener, IPs etc. will also goes down, So to prevent the unnecessary alert we’ve to create a blackout for the entire GI stack.

 STEP 4: Change Cluster Name

To rename the cluster we’ve to run crsrename script from any of the available node

 [root@oratest2 bin]# /u01/app/19c/grid/bin/crsrename cluster RAC-CLUSTER

CRS-42004: successfully set the cluster name; restart Oracle High Availability Services on all nodes for new cluster name to take effect

NOTE: RAC-CLUSTER is the new & unique cluster name

 STEP 5: The same can be seen from gpnp log as well

 gpnp trace:

2024-08-27 14:03:44.842 :    GPNP:2888738560: clsgpnpd_dispatch: [at clsgpnpdsvc.c:1021] New remote connection from "tcp://192.168.10.12:16309"

2024-08-27 14:03:44.850 :    GPNP:2888738560: clsgpnpm_disassembleGpnpElem: [at clsgpnpm.c:3825] Done disasm gpnp elt 0x7f929416ad60.  Got: mtyp=put-profile(3),mres=(0),mflg=(4),cl-who=crsctl_rename p:6806,cl-role=,cl-host=oratest2,cl-ep=,cl-auth=CN=GPnP_peer,cl-cname=RAC-CLUSTER,cl-cguid=784fbf1f6d464f65ff70f1cf0aab4050,cl-pver=6(6),p=0x7f929416b5d0,diag=.

 STEP 6: Execute Stop crs in all the nodes parallely

NODE1

[root@oratest ~]#  /u01/app/19c/grid/bin/crsctl stop crs

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'oratest'

CRS-2673: Attempting to stop 'ora.crf' on 'oratest'

CRS-2673: Attempting to stop 'ora.mdnsd' on 'oratest'

CRS-2673: Attempting to stop 'ora.gpnpd' on 'oratest'

CRS-2677: Stop of 'ora.crf' on 'oratest' succeeded

CRS-2673: Attempting to stop 'ora.gipcd' on 'oratest'

CRS-2677: Stop of 'ora.gipcd' on 'oratest' succeeded

CRS-2677: Stop of 'ora.mdnsd' on 'oratest' succeeded

CRS-2677: Stop of 'ora.gpnpd' on 'oratest' succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'oratest' has completed

CRS-4133: Oracle High Availability Services has been stopped.

 NODE 2

 [root@oratest2 ~]# /u01/app/19c/grid/bin/crsctl stop crs

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'oratest2'

CRS-2673: Attempting to stop 'ora.crsd' on 'oratest2'

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on server 'oratest2'

CRS-2673: Attempting to stop 'ora.qosmserver' on 'oratest2'

CRS-2673: Attempting to stop 'ora.LISTENER_SCAN3.lsnr' on 'oratest2'

CRS-2673: Attempting to stop 'ora.LISTENER_SCAN2.lsnr' on 'oratest2'

CRS-2673: Attempting to stop 'ora.chad' on 'oratest2'

CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'oratest2'

CRS-2673: Attempting to stop 'ora.oratest.vip' on 'oratest2'

CRS-2673: Attempting to stop 'ora.cvu' on 'oratest2'

CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'oratest2'

CRS-33673: Attempting to stop resource group 'ora.asmgroup' on server 'oratest2'

CRS-2673: Attempting to stop 'ora.DATA.dg' on 'oratest2'

CRS-2677: Stop of 'ora.oratest.vip' on 'oratest2' succeeded

CRS-2677: Stop of 'ora.LISTENER_SCAN3.lsnr' on 'oratest2' succeeded

CRS-2673: Attempting to stop 'ora.scan3.vip' on 'oratest2'

CRS-2677: Stop of 'ora.LISTENER_SCAN2.lsnr' on 'oratest2' succeeded

CRS-2673: Attempting to stop 'ora.scan2.vip' on 'oratest2'

CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'oratest2' succeeded

CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'oratest2' succeeded

CRS-2673: Attempting to stop 'ora.scan1.vip' on 'oratest2'

No such process

CRS-2677: Stop of 'ora.DATA.dg' on 'oratest2' succeeded

CRS-2673: Attempting to stop 'ora.asm' on 'oratest2'

CRS-2673: Attempting to stop 'ora.oratest2.vip' on 'oratest2'

CRS-2677: Stop of 'ora.scan3.vip' on 'oratest2' succeeded

CRS-2677: Stop of 'ora.cvu' on 'oratest2' succeeded

CRS-2677: Stop of 'ora.scan2.vip' on 'oratest2' succeeded

CRS-2677: Stop of 'ora.qosmserver' on 'oratest2' succeeded

CRS-2677: Stop of 'ora.scan1.vip' on 'oratest2' succeeded

CRS-2677: Stop of 'ora.oratest2.vip' on 'oratest2' succeeded

CRS-2677: Stop of 'ora.asm' on 'oratest2' succeeded

CRS-2673: Attempting to stop 'ora.ASMNET1LSNR_ASM.lsnr' on 'oratest2'

CRS-2677: Stop of 'ora.ASMNET1LSNR_ASM.lsnr' on 'oratest2' succeeded

CRS-2673: Attempting to stop 'ora.asmnet1.asmnetwork' on 'oratest2'

CRS-2677: Stop of 'ora.asmnet1.asmnetwork' on 'oratest2' succeeded

CRS-33677: Stop of resource group 'ora.asmgroup' on server 'oratest2' succeeded.

CRS-2677: Stop of 'ora.chad' on 'oratest2' succeeded

CRS-2673: Attempting to stop 'ora.ons' on 'oratest2'

CRS-2677: Stop of 'ora.ons' on 'oratest2' succeeded

CRS-2673: Attempting to stop 'ora.net1.network' on 'oratest2'

CRS-2677: Stop of 'ora.net1.network' on 'oratest2' succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'oratest2' has completed

CRS-2677: Stop of 'ora.crsd' on 'oratest2' succeeded

CRS-2673: Attempting to stop 'ora.storage' on 'oratest2'

CRS-2673: Attempting to stop 'ora.crf' on 'oratest2'

CRS-2673: Attempting to stop 'ora.mdnsd' on 'oratest2'

CRS-2677: Stop of 'ora.crf' on 'oratest2' succeeded

CRS-2677: Stop of 'ora.storage' on 'oratest2' succeeded

CRS-2673: Attempting to stop 'ora.asm' on 'oratest2'

CRS-2677: Stop of 'ora.mdnsd' on 'oratest2' succeeded

CRS-2677: Stop of 'ora.asm' on 'oratest2' succeeded

CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'oratest2'

CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'oratest2' succeeded

CRS-2673: Attempting to stop 'ora.ctssd' on 'oratest2'

CRS-2673: Attempting to stop 'ora.evmd' on 'oratest2'

CRS-2677: Stop of 'ora.ctssd' on 'oratest2' succeeded

CRS-2677: Stop of 'ora.evmd' on 'oratest2' succeeded

CRS-2673: Attempting to stop 'ora.cssd' on 'oratest2'

CRS-2677: Stop of 'ora.cssd' on 'oratest2' succeeded

CRS-2673: Attempting to stop 'ora.gipcd' on 'oratest2'

CRS-2673: Attempting to stop 'ora.gpnpd' on 'oratest2'

CRS-2677: Stop of 'ora.gipcd' on 'oratest2' succeeded

CRS-2677: Stop of 'ora.gpnpd' on 'oratest2' succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'oratest2' has completed

CRS-4133: Oracle High Availability Services has been stopped.


 STEP 7: Start CRS in all the nodes parallely using -wait qualifier

 NODE 1

[root@oratest ~]# /u01/app/19c/grid/bin/crsctl start crs -wait

CRS-4123: Starting Oracle High Availability Services-managed resources

CRS-2672: Attempting to start 'ora.mdnsd' on 'oratest'

CRS-2672: Attempting to start 'ora.evmd' on 'oratest'

CRS-2676: Start of 'ora.evmd' on 'oratest' succeeded

CRS-2676: Start of 'ora.mdnsd' on 'oratest' succeeded

CRS-2672: Attempting to start 'ora.gpnpd' on 'oratest'

CRS-2676: Start of 'ora.gpnpd' on 'oratest' succeeded

CRS-2672: Attempting to start 'ora.gipcd' on 'oratest'

CRS-2676: Start of 'ora.gipcd' on 'oratest' succeeded

CRS-2672: Attempting to start 'ora.crf' on 'oratest'

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'oratest'

CRS-2676: Start of 'ora.cssdmonitor' on 'oratest' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'oratest'

CRS-2672: Attempting to start 'ora.diskmon' on 'oratest'

CRS-2676: Start of 'ora.diskmon' on 'oratest' succeeded

CRS-2676: Start of 'ora.crf' on 'oratest' succeeded

CRS-2676: Start of 'ora.cssd' on 'oratest' succeeded

CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'oratest'

CRS-2672: Attempting to start 'ora.ctssd' on 'oratest'

CRS-2676: Start of 'ora.ctssd' on 'oratest' succeeded

CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'oratest' succeeded

CRS-2672: Attempting to start 'ora.asm' on 'oratest'

CRS-2676: Start of 'ora.asm' on 'oratest' succeeded

CRS-2672: Attempting to start 'ora.storage' on 'oratest'

CRS-2676: Start of 'ora.storage' on 'oratest' succeeded

CRS-2672: Attempting to start 'ora.crsd' on 'oratest'

CRS-2676: Start of 'ora.crsd' on 'oratest' succeeded

CRS-6023: Starting Oracle Cluster Ready Services-managed resources

CRS-6017: Processing resource auto-start for servers: oratest

CRS-2672: Attempting to start 'ora.scan2.vip' on 'oratest'

CRS-2672: Attempting to start 'ora.scan1.vip' on 'oratest'

CRS-2672: Attempting to start 'ora.scan3.vip' on 'oratest'

CRS-2672: Attempting to start 'ora.oratest.vip' on 'oratest'

CRS-2672: Attempting to start 'ora.qosmserver' on 'oratest'

CRS-2672: Attempting to start 'ora.chad' on 'oratest'

CRS-2672: Attempting to start 'ora.oratest2.vip' on 'oratest'

CRS-2672: Attempting to start 'ora.ons' on 'oratest'

CRS-2672: Attempting to start 'ora.cvu' on 'oratest'

CRS-2676: Start of 'ora.cvu' on 'oratest' succeeded

CRS-2676: Start of 'ora.oratest2.vip' on 'oratest' succeeded

CRS-2676: Start of 'ora.oratest.vip' on 'oratest' succeeded

CRS-2672: Attempting to start 'ora.LISTENER.lsnr' on 'oratest'

CRS-2676: Start of 'ora.scan2.vip' on 'oratest' succeeded

CRS-2676: Start of 'ora.chad' on 'oratest' succeeded

CRS-2672: Attempting to start 'ora.LISTENER_SCAN2.lsnr' on 'oratest'

CRS-2676: Start of 'ora.scan1.vip' on 'oratest' succeeded

CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on 'oratest'

CRS-2676: Start of 'ora.scan3.vip' on 'oratest' succeeded

CRS-2672: Attempting to start 'ora.LISTENER_SCAN3.lsnr' on 'oratest'

CRS-2676: Start of 'ora.LISTENER.lsnr' on 'oratest' succeeded

CRS-2676: Start of 'ora.ons' on 'oratest' succeeded

CRS-2676: Start of 'ora.qosmserver' on 'oratest' succeeded

CRS-2676: Start of 'ora.LISTENER_SCAN2.lsnr' on 'oratest' succeeded

CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on 'oratest' succeeded

CRS-2672: Attempting to start 'ora.racdb.db' on 'oratest'

CRS-2676: Start of 'ora.LISTENER_SCAN3.lsnr' on 'oratest' succeeded

CRS-2676: Start of 'ora.racdb.db' on 'oratest' succeeded

CRS-6016: Resource auto-start has completed for server oratest

CRS-6024: Completed start of Oracle Cluster Ready Services-managed resources

CRS-4123: Oracle High Availability Services has been started.

 NODE 2

[root@oratest2 ~]# /u01/app/19c/grid/bin/crsctl check crs

CRS-4638: Oracle High Availability Services is online

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

 STEP 8: Validate new cluster Name

[oracle@oratest ~]$ olsnodes -c

RAC-CLUSTER




Post a Comment

Previous Post Next Post