Crs cannot be started after the server name is changed

Source: Internet
Author: User

After the server name is changed, crs cannot be started. Solution: DB: oracle 11.2.0.2OS: OEL Linux (OEL) 5.6 symptom: changed hostnamenjdyw-> restart 07. After restarting the server, the crs service cannot be started.

[Oracle @ far 07 diag] $ crs_stat-tCRS-0184: unable to communicate with the CRS daemon. [Oracle @ override 07diag] $ crsctl start hasCLSU-00105: OS interface reported internal fault CLSU-00103: error location: scrcreate5CLSU-00104: Other error message: need ha privCRS-4000: Command Start failed, or completed but an error occurs.

 

Solution: reconfigure the crs installation as follows:
-- View the following directory and find the configuration file directory with the previous server name [oracle @ brief 07 ~] $ Cd/etc/oracle/scls_scr [oracle @ brief 07 scls_scr] $ lsnjdyw -- under the root user -- enter the $ GRID_HOME/crs/install directory, run the following script [root @ brief 07install] # pwd/u01/app/ora11g/product/11.2.0/grid/crs/install [root @ brief 07install] #. /rootcrs. pl-deconfig-forceUsingconfiguration parameter file :. /crsconfig_params usage: srvctl <command> <object> [<options>] command: enable | disable | start | stop | status | add | remove | modify | getenv | setenv | unsetenv | config object: database | service | asm | diskgroup | listener | home | ons

 

For detailed help on various commands and objects, use:
Srvctl <command>-h or srvctl <command> <object>-hPRKO-2012: Oracle Restart does not support nodeapps object ACFS-9459: ADVM/ACFS is not supported on this OS version: '2. 6.32-100.26.2.el5 'acfs-9201: NotSupportedCRS-4013: Thiscommand is not supported in a single-node configuration. CRS-4000: Command Stop failed, or completed with errors. you must killcrs processes or reboot the system to properlycleanup theprocesses star Ted by Oracle clusterwareerror: packagecvuqdisk is not installedSuccessfully deconfiguredOracle clusterware stack on this node [root @ login 07install] #. /roothas. plUsingconfiguration parameter file :. /crsconfig_paramsLOCAL ADD MODECreating OCRkeys for user 'oracle ', privgrp 'oinstall '.. operationsuccessful. local only MODESuccessfullyaccumulated necessary OCR keys. creating OCRkeys for user 'root', priv Grp 'root '.. operationsuccessful. CRS-4664: node1_07 successfully pinned. adding daemon toinittabACFS-9459: ADVM/ACFS is not supported on this OS version: '2. 6.32-100.26.2.el5 '201707 13:55:40/u01/app/ora11g/product/11.2.0/grid/cdata/201707/Alibaba Oracle Grid Infrastructure for a Standalone Server -- then look at the crs configuration directory [oracle @ override 07 ~] $ Cd/etc/oracle/scls_scr [oracle @ brief 07scls_scr] $ lshotel07 -- View crs status [oracle @ brief 07 scls_scr] $ crs_stat-t name Type Target status host mongod ora.css d. type ONLINE release 07 ora. diskmon ora .... on. type ONLINE release 07 ora. evmd ora. evm. type ONLINE release 07 ora. ons ora. ons. type OFFLINE -- if other services are missing, use the srvctl command to add [oracle @ brief 07 ~] $ Srvctl add listener [oracle @ listen 07 ~] $ Srvctl add asm-l LISTENER-d data [oracle @ brief 07 admin] $ crs_stat-t name Type Target status host -------------------------------------------------------------- ora. DATA. dg ora .... up. type ONLINE release 07 ora. FRA. dg ora .... up. type ONLINE products 07 ora .... ER. lsnr ora .... er. type ONLINE release 07 ora. asm ora. asm. type ONLINE generation 07 ora.css d. type ONLINE release 07 ora. diskmon ora .... on. type ONLINE release 07 ora. evmd ora. evm. type ONLINE release 07 ora. ons ora. ons. type OFFLINE

 

With 11.2 database, if thehostname is changed we'll see following error while starting the HASservicesdev-srv-20: + ASM: /home/ora11gr2> crsctl start hasFailure at scls_scr_create with code 1 Internal Error Information: Category:-1 Operation: has_ha_privs Location: scrcreate5 Other: need ha priv System Dependent Information: 0 CRS-4000: command Start failed, or completed with errors. to make sure, it is due to changein hostname check the directory in the following path. as we can see thehostname with which HAS was originally configured is different fromcurrent hostname. dev-srv-20: + ASM:/etc/oracle/scls_scr> ls-altotal 0drwxr-xr-x 3 root epsdba 80. drwxr-xr-x 5 root epsdba 200 .. drwxr-xr-x 4 root epsdba 96 2009-05-12 08:36 dev-srv-25 So to fix the problem
1. De-configure the CRS$GRID_HOME/crs/install/rootcrs.pl -deconfig -force2. Reconfigure CRS$GRID_HOME/crs/install/roothas.pl

 

Metalink Note 4632899.8 talksabout similar behaviour.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.