ITPub博客

首页 > Linux操作系统 > Linux操作系统 > HP上RAC环境主机名过长的问题

HP上RAC环境主机名过长的问题

原创 Linux操作系统 作者:yangtingkun 时间:2011-06-15 23:57:04 0 删除 编辑

同时在安装HP环境上10g RAC时碰到了这个问题。

 

 

两节点主机名配置:

#cat /etc/hosts
127.0.0.1 localhost loopback

132.35.89.27 essbkdb9
132.35.89.28 essbkdb10

192.168.1.9 essbk9-priv
192.168.1.10 essbk10-priv

132.35.89.25 essbk9-vip
132.35.89.26 essbk10-vip

在节点1上运行root.sh

#/oracle/app/product/10.2.0/crs_1/root.sh
WARNING: directory '/oracle/app/product/10.2.0' is not owned by root
WARNING: directory '/oracle/app/product' is not owned by root
WARNING: directory '/oracle/app' is not owned by root
WARNING: directory '/oracle' is not owned by root
Checking to see if Oracle CRS stack is already configured
Checking to see if any 9i GSD is up

Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/oracle/app/product/10.2.0' is not owned by root
WARNING: directory '/oracle/app/product' is not owned by root
WARNING: directory '/oracle/app' is not owned by root
WARNING: directory '/oracle' is not owned by root
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node :
node 1: essbkdb10 essbk10-priv essbkdb10
node 2: essbkdb9 essbk9-priv essbkdb9
Creating OCR keys for user 'root', privgrp 'sys'..
Operation successful.
Now formatting voting device: /dev/nesscenvg1/rnesscenvg01_vote2
Now formatting voting device: /dev/nesscenvg1/rnesscenvg01_vote1
Now formatting voting device: /dev/nesscenvg2/rnesscenvg02_vote1
Format of 3 voting devices complete.
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
essbkdb9
CSS is inactive on these nodes.
essbkdb10
Local node checking complete.
Run root.sh on remaining nodes to start CRS daemons.

目前为止一切正常,但是节点2上运行root.sh出现错误:

#/oracle/app/product/10.2.0/crs_1/root.sh
WARNING: directory '/oracle/app/product/10.2.0' is not owned by root
WARNING: directory '/oracle/app/product' is not owned by root
WARNING: directory '/oracle/app' is not owned by root
WARNING: directory '/oracle' is not owned by root
Checking to see if Oracle CRS stack is already configured
Checking to see if any 9i GSD is up

Setting the permissions on OCR backup directory
Setting up NS directories
Failed to upgrade Oracle Cluster Registry configuration

而此时发现问题节点上的ORA_CRS_HOME/log目录下存在问题:

#ls -l
total 2
drwxrwx--- 2 oracle dba 96 Mar 29 19:10 crs
drwxrwxrwx 3 root sys 96 Mar 29 19:16 essbkdb1
drwxr-xr-t 8 root dba 1024 Mar 29 19:16 essbkdb10

RAC环境中并不存在essbkdb1的配置,那么目录应该是essbkdb10被截断了。可以看到essbkdb10的长度为9,而这超过了一般推荐的长度8

检查metalink确认是文章ID 469569.1描述的问题:Root.sh Hangs When Hostname Is Greater than Eight Characters

Oracle并没有提供补丁和其他的解决方案,解决办法就是将主机名限制到8个字符之内。除了主机名长度限制到8以外,下划线也是不允许的。

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/4227/viewspace-698051/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
暂无介绍

注册时间:2007-12-29

  • 博文量
    1955
  • 访问量
    10525719