linux添加一个节点 (oracle 11.2.0.4)

linux添加一个节点 测试用:
A:RHEL 5.4 x86_64
B:CENTOS 6.4 x86_64
常规的安装配置外追加
一 验证前检查:
./sshUserSetup.sh  -user grid -hosts "grid-1 mysql-1" -noPromptPassphrase
./sshUserSetup.sh  -user oracle -hosts "grid-1 mysql-1" -noPromptPassphrase
./runcluvfy.sh stage -pre nodeadd -n mysql-1 -fixup -verbose
cd /u01/app/11.2.0/grid/bin/ 
./cluvfy stage -pre nodeadd -n mysql-1 -fixup -verbose
 
二 接着进入GI安装目录的oui/bin子目录,执行以下命令将新节点node2加入集群中:
cd $ORACLE_HOME/bin
cd ../oui/bin/ 
export IGNORE_PREADDNODE_CHECKS=Y
export IGNORE_PREADDNODE_CHECKS=Y
./addNode.sh -silent "CLUSTER_NEW_NODES={mysql-1}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={mysql-1-vip}" "CLUSTER_NEW_PRIVATE_NODE_NAMES={mysql-1-priv}" &>~/add_node.log
/opt/crs/oraInventory/orainstRoot.sh #On nodes mysql-1
/opt/crs/product/root.sh #On nodes mysql-1
如果执行失败需deconfig再次执行
/opt/crs/product/crs/install/rootcrs.pl -deconfig -force
查看日志报错是由acfs引起,
export ORACLE_OWNER= grid
export    ORACLE_HOME=/opt/crs/product
移除acfs
crsctl delete resource ora.registry.acfs -f
更改网卡顺序
RHEL 5 /etc/modprobe.conf
RHEL 6 UDEV:
vi /etc/udev/rules.d/70-persistent-net.rules  
  检查raw信息:
blockdev --getsize /dev/raw/raw1
blockdev --getsize /dev/raw/raw2
blockdev --getsize /dev/raw/raw3
blockdev --getsize /dev/raw/raw4
再次运行:
/opt/crs/product/root.sh
OLR initialization - successful
Adding Clusterware entries to upstart
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node grid-1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
clscfg: EXISTING configuration version 5 detected.
clscfg: version 5 is 11g Release 2.
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Preparing packages for installation...
ls: cannot access /usr/sbin/smartctl: No such file or directory
/usr/sbin/smartctl not found.
error: %pre(cvuqdisk-1.0.9-1.x86_64) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping cvuqdisk-1.0.9-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
检查节点:
olsnodes -s
crsctl check cluster -all
三 以oracle用户添加rdbms:
/opt/oracle/product/11.2.0/dbhome_1/oui/bin/addNode.sh "CLUSTER_NEW_NODES={mysql-1}"
Saving inventory on nodes (Saturday, May 9, 2015 10:52:56 PM CST)
.                                                               100% Done.
Save inventory complete
WARNING:A new inventory has been created on one or more nodes in this session. However, it has not yet been registered as the central inventory of this system. 
To register the new inventory please run the script at '/opt/crs/oraInventory/orainstRoot.sh' with root privileges on nodes 'mysql-1'.
If you do not register the inventory, you may not be able to update or patch the products you installed.
The following configuration scripts need to be executed as the "root" user in each new cluster node. Each script in the list below is followed by a list of nodes.
/opt/crs/oraInventory/orainstRoot.sh #On nodes mysql-1
/opt/oracle/product/11.2.0/dbhome_1/root.sh #On nodes mysql-1
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts in each cluster node
The Cluster Node Addition of /opt/oracle/product/11.2.0/dbhome_1 was successful.
Please check '/tmp/silentInstall.log' for more details.
[oracle@grid-1 bin]$ /opt/oracle/product/11.2.0/dbhome_1/root.sh
四 最后dbca添加实例:
         alter database add logfile thread 2 ('+data') size 50M;
alter database add logfile thread 2 ('+data') size 50M;
alter database enable thread 2;
select * from v$thread
新库加实例:dbca -silent -addInstance -nodeList orcl2 -gdbName racdb -instanceName racdb2 -sysDBAUserName sys -sysDBAPassword oracle
相关报错:
/opt/crs/product/bin/crsctl.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory
检查libcap:
[root@mysql-1 install]# rpm -qa|grep libcap
libcap-ng-0.6.4-3.el6_0.1.x86_64
libcap-2.16-5.5.el6.x86_64
compat-libcap1-1.10-1.i686
find / -name libcap.so*
/lib/libcap.so.1
/lib/libcap.so.1.10
/usr/share/doc/libcap-ng-0.6.4
/usr/share/doc/libcap-2.16
/usr/lib64/openssl/engines/libcapi.so
/lib64/libcap.so.2.16
/lib64/libcap-ng.so.0.0.0
解决办法:
cd /lib64
ln -s libcap.so.2.16 libcap.so.1

posted on 2015-05-10 00:02 snowhill 阅读(375) 评论(0)  编辑 收藏 引用 所属分类: 数据库-oracle


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

导航

公告

又一年...........

留言簿(3)

随笔分类(13)

文章分类(131)

文章档案(124)

c++

java

linux

oracle

常用软件

其他

网络配置

系统安全

音乐

搜索

最新评论

阅读排行榜