I just wanted to share my small experience with ASM. In our organization, the OS Admins changed the Hostname of one our database servers where Grid Infrastructure is installed. But after changing it, ASM services were not able to start. So here is the scenario and try outs of mine,.
Changing HOSTNAME and IP ADDRESS in GI (Standby Alone Server)
SERVER1:/usr2/oracle />hostname SERVER1-OLD hostname: 0821-267 The sethostname system call failed. : Operation not permitted. SERVER1:/usr2/oracle />hostname SERVER1-OLD hostname: 0821-267 The sethostname system call failed. : Operation not permitted. SERVER1:/usr2/oracle />hostname SERVER1-OLD SERVER1:/usr2/oracle />crsctl start has SERVER1:/usr2/oracle />crsctl check has CRS-4639: Could not contact Oracle High Availability Services
So you can clearly see that, my HAS was not able to start at all after changing the HOSTNAME.
After some research, I came to know that we have to Reconfigure the HAS. Below are the steps which I followed., These steps has to be carried out as a root user.
Deconfigure the HAS
root@SERVER1:/usr2/grid/product/11.2.0.4/crs/install # root@SERVER1:/usr2/grid/product/11.2.0.4/crs/install #./roothas.pl -deconfig -force Using configuration parameter file: ./crsconfig_params CRS-4639: Could not contact Oracle High Availability Services CRS-4000: Command Stop failed, or completed with errors. CRS-4639: Could not contact Oracle High Availability Services CRS-4000: Command Delete failed, or completed with errors. CLSU-00100: Operating System function: opendir failed with error data: 2 CLSU-00101: Operating System error message: No such file or directory CLSU-00103: error location: scrsearch1 CLSU-00104: additional error information: cant open scr home dir scls_scr_getval CRS-4544: Unable to connect to OHAS CRS-4000: Command Stop failed, or completed with errors. This may take several minutes. Please wait ... 0518-307 odmdelete: 1 objects deleted. 0518-307 odmdelete: 1 objects deleted. 0518-307 odmdelete: 1 objects deleted. Successfully deconfigured Oracle Restart stack
Reconfigure the HAS
SERVER1:/usr2/grid/product/11.2.0.4/crs/install />./roothas.pl root@SERVER1:/usr2/grid/product/11.2.0.4/crs/install # ./roothas.pl Using configuration parameter file: ./crsconfig_params User ignored Prerequisites during installation LOCAL ADD MODE Creating OCR keys for user 'oracle', privgrp 'oradba'.. Operation successful. LOCAL ONLY MODE Successfully accumulated necessary OCR keys. Creating OCR keys for user 'root', privgrp 'system'.. Operation successful. CRS-4664: Node SERVER1 successfully pinned. Adding Clusterware entries to inittab SERVER1 2014/09/22 07:58:46 /usr2/grid/product/11.2.0.4/cdata/SERVER1/backup_20140922_075846.olr Successfully configured Oracle Grid Infrastructure for a Standalone Server root@SERVER1:/usr2/grid/product/11.2.0.4/crs/install #
Add the LISTENER Service
SERVER1:/usr2/grid/product/11.2.0.4/dbs />srvctl add listener -l LISTENER
Start the LISTENER Service
SERVER1:/usr2/grid/product/11.2.0.4/dbs />srvctl start listener SERVER1:/usr2/grid/product/11.2.0.4/dbs />srvctl status listener Listener LISTENER is enabled Listener LISTENER is running on node(s): SERVER1 SERVER1:/usr2/grid/product/11.2.0.4/dbs />crs_stat ora.LISTENER.lsnr NAME=ora.LISTENER.lsnr TYPE=ora.listener.type TARGET=ONLINE STATE=ONLINE on SERVER1
Add the ASM service
SERVER1:/usr2/grid/product/11.2.0.4/dbs />srvctl add asm -l LISTENER -p "/usr2/grid/product/11.2.0.4/dbs/spfile+ASM.ora" SERVER1:/usr2/grid/product/11.2.0.4/dbs />srvctl start asm PRCR-1079 : Failed to start resource ora.asm CRS-2674: Start of 'ora.asm' on 'SERVER1' failed CRS-5022: Stop of resource "ora.asm" failed: current state is "INTERMEDIATE" CRS-2678: 'ora.asm' on 'SERVER1' has experienced an unrecoverable failure CRS-5804: Communication error with agent process SERVER1:/usr2/grid/product/11.2.0.4/dbs />srvctl status asm ASM is not running. You have mail in /usr/spool/mail/oracle SERVER1:/usr2/grid/product/11.2.0.4/dbs />srvctl add asm -l LISTENER -p "/usr2/grid/product/11.2.0.4/dbs/spfile+ASM.ora" PRCR-1086 : resource ora.asm is already registered SERVER1:/usr2/grid/product/11.2.0.4/dbs />
Start the ASM Service
SERVER1:/usr2/grid/product/11.2.0.4/dbs />srvctl start asm SERVER1:/usr2/grid/product/11.2.0.4/dbs />ps -ef |grep pmon oracle 10092730 1 0 08:14:20 - 0:00 asm_pmon_+ASM SERVER1:/usr2/grid/product/11.2.0.4/dbs />
Check the status of the CRS as below.,
SERVER1:/usr2/oracle />crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora.DATA.dg ora....up.type ONLINE ONLINE ifcd...gpd1 ora....ER.lsnr ora....er.type ONLINE ONLINE ifcd...gpd1 ora.asm ora.asm.type ONLINE ONLINE ifcd...gpd1 ora.cssd ora.cssd.type ONLINE ONLINE ifcd...gpd1 ora.diskmon ora....on.type OFFLINE OFFLINE ora.evmd ora.evm.type ONLINE ONLINE ifcd...gpd1 ora.ons ora.ons.type ONLINE ONLINE ifcd...gpd1 SERVER1:/usr2/oracle />
Hope this is helpful.. Thanks for supporting.. 🙂