# /oracle/app/product/11.2.0/root.sh
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /oracle/app/product/11.2.0

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
Creating /usr/local/bin directory...
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...


Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /oracle/app/product/11.2.0/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File Analyzer
User grid has the required capabilities to run CSSD in realtime mode
OLR initialization - successful
  root wallet
  root wallet cert
  root cert export
  peer wallet
  profile reader wallet
  pa wallet
  peer wallet keys
  pa wallet keys
  peer cert request
  pa cert request
  peer cert
  pa cert
  peer root cert TP
  profile reader root cert TP
  pa root cert TP
  peer pa cert TP
  pa peer cert TP
  profile reader pa cert TP
  profile reader peer cert TP
  peer user cert
  pa user cert
Adding Clusterware entries to inittab
CRS-2672: Attempting to start 'ora.mdnsd' on 'zfruna'
CRS-2676: Start of 'ora.mdnsd' on 'zfruna' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'zfruna'
CRS-2676: Start of 'ora.gpnpd' on 'zfruna' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'zfruna'
CRS-2672: Attempting to start 'ora.gipcd' on 'zfruna'
CRS-2676: Start of 'ora.cssdmonitor' on 'zfruna' succeeded
CRS-2676: Start of 'ora.gipcd' on 'zfruna' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'zfruna'
CRS-2672: Attempting to start 'ora.diskmon' on 'zfruna'
CRS-2676: Start of 'ora.diskmon' on 'zfruna' succeeded
CRS-2676: Start of 'ora.cssd' on 'zfruna' succeeded

ASM created and started successfully.

Disk Group CRS created successfully.

clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'system'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 24ef6d33284d4f1cbf83863784400ec9.
Successful addition of voting disk 72dd0d03f11c4fbabfe9cd48c753f90e.
Successful addition of voting disk a4a2e5a602074f0fbf6d4279541b0bcb.
Successfully replaced voting disk group with +CRS.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   24ef6d33284d4f1cbf83863784400ec9 (/dev/rhdiskpower4) [CRS]
 2. ONLINE   72dd0d03f11c4fbabfe9cd48c753f90e (/dev/rhdiskpower5) [CRS]
 3. ONLINE   a4a2e5a602074f0fbf6d4279541b0bcb (/dev/rhdiskpower6) [CRS]
Located 3 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'zfruna'
CRS-2676: Start of 'ora.asm' on 'zfruna' succeeded
CRS-2672: Attempting to start 'ora.CRS.dg' on 'zfruna'
CRS-2676: Start of 'ora.CRS.dg' on 'zfruna' succeeded
##执行脚本报错
**/oracle/app/product/11.2.0/bin/srvctl start nodeapps -n zfruna ... failed**
FirstNode configuration failed at /oracle/app/product/11.2.0/crs/install/crsconfig_lib.pm line 9379.
/oracle/app/product/11.2.0/perl/bin/perl -I/oracle/app/product/11.2.0/perl/lib -I/oracle/app/product/11.2.0/crs/install /oracle/app/product/11.2.0/crs/install/rootcrs.pl execution failed

##查看/etc/hosts文件发现问题
#more /etc/hosts

# 2000:1:1:1:209:6bff:feee:2b7f         ipv6sample      # ipv6 name/address
127.0.0.1               loopback localhost      # loopback (lo0) name/address
::1                     loopback localhost      # IPv6 loopback (lo0) name/address
17.1.1.105     localhost #解决方法注释掉此行

#Public IP address
100.1.1.3  zfruna
100.1.1.4  zfrunb
#Virtual IP address 
100.1.1.5   zfruna-vip
100.1.1.6   zfrunb-vip
# Private IP address
100.19.19.3   zfruna-pri
100.19.19.4   zfrunb-pri
#SCAN IP address
100.1.1.7  zfrundb-scan
#  
# 
# 
# 
##重新执行root.sh脚本即可解决
# 
# /oracle/app/product/11.2.0/root.sh
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /oracle/app/product/11.2.0

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /oracle/app/product/11.2.0/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
PRKO-2190 : VIP exists for node zfruna, VIP name zfruna-vip
PRCS-1037 : Single Client Access Name VIPs already exist
PRCS-1028 : Single Client Access Name listeners already exist
OC4J could not be created as it already exists
PRCR-1086 : resource ora.oc4j is already registered
PRCR-1086 : resource ora.cvu is already registered
Configure Oracle Grid Infrastructure for a Cluster ... succeeded