安装oracle rac+asm时修改主机名出现的问题
安装oracle rac+asm时修改主机名出现的问题
安装环境 IBM h80 两台小型机,安装oracle 10g cluster+rac+asm,操作系统版本为5300-11
在前面检查环境和安装cluster过程中,比较顺利,到运行root.sh时,现象如下:
[root@p570b1:/dev]#/crs/app/oracle/product/crs_1/root.sh
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node
node 1: p570a1 p570a1-priv p570a1
node 2: p570b1 p570b1-priv p570b1
clscfg: Arguments check out successfully.
NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 30 seconds.
一直hang住
ps -ef|grep crs
只有/crs/app/oracle/product/crs_1/install/rootconfig 进程,其他cssd,evmd等都不存在
这个时候检查/crs/app/oracle/product/crs_1/log 下存在两个主机名的目录
一个为p570_b1,一个为p570b1, p570_b1目录下有信息写入,而p570b1目录下没有信息写入
而正确的主机名为p570b1
这个时候想起来是先前主机名是p570_b1,通过修改为p570b1,而没有重启小型机的原因造成的,
然后产掉crs,重新启动主机,再安装cluster,crs安装成功