[root@rac02 ~]# /u01/app/oracle/crs/root.shWARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
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: rac01 rac01-priv rac01
node 2: rac02 rac02-priv rac02
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.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
rac01
rac02
CSS is active on all nodes.
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
在 (0) 节点上创建 VIP 应用程序资源.
在 (0) 节点上创建 GSD 应用程序资源.
在 (0) 节点上创建 ONS 应用程序资源.
启动 (2) 节点上的 VIP 应用程序资源 ...
启动 (2) 节点上的 GSD 应用程序资源...
启动 (2) 节点上的 ONS 应用程序资源...
Done.
批注:如果出现若下错误
Running vipca(silent) for configuring nodeapps
Error 0(Native: listNetInterfaces:[3]
[Error 0(Native: listNetInterfaces:[3])]
这里报错了。 root.sh 在最后一个节点执行时会调用vipca命令。这里因为网络接口没有配置好。所以执行失败了。我们配置一下接口,在Xmanager里,用root用户,手工运行vipca命令即可。
[root@rac01 bin]# ./oifcfg getif-- 没有返回接口信息
[root@rac01 bin]# ./oifcfg iflist[root@rac01 bin]# ./oifcfg setif -global eth0/192.168.10.0:public-- 注意IP 最后是0
[root@rac01 bin]# ./oifcfg setif -global eth1/10.0.0.0:cluster_interconnect--此处为cluster_interconnect,不是private[root@rac01 bin]# ./oifcfg getif --验证
eth0 192.168.10.0 global public
eth1 10.0.0.0 global cluster_interconnect
配置玩后,随便在一个节点用root用户运行一下vipca命令就可以了。 这个是有窗口的。 需要X 支持。所有用X manager。 其他工具也可以。 能运行就可以了。 执行完后nodeapps的VIP,ONS,GSD就创建完成了。
[root@rac01 bin]# ./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....SM1.asm application ONLINE ONLINE rac01
ora....01.lsnr application ONLINE ONLINE rac01
ora.rac01.gsd application ONLINE ONLINE rac01
ora.rac01.ons application ONLINE ONLINE rac01
ora.rac01.vip application ONLINE ONLINE rac01
ora....SM2.asm application ONLINE ONLINE rac02
ora....02.lsnr application ONLINE ONLINE rac02
ora.rac02.gsd application ONLINE ONLINE rac02
ora.rac02.ons application ONLINE ONLINE rac02
ora.rac02.vip application ONLINE ONLINE rac02
[root@rac01 bin]# pwd
/u01/app/oracle/crs/bin