10.0.0.1 10.0.0.2
6、配置RHCS
webdb1 webdb2
6.1 仅在webdb1上以root用户运行:system-config-cluster & 出现如下图所示。
第一次运行,由于还没有/etc/cluster/cluster.conf这个文件,所有会出现下面这个
提示框,点击”Create New Configuration”,创建一个新的/etc/cluster/cluster.conf文件。如果删除/etc/cluster/cluster.conf文件,再次运行system-config-cluster还会出现这个提示框。
6.2 做完上面步骤,就会出现下面对话框。这里选择“DLM”。
6.3 点击“Cluster”,在点击“Edit Cluster Properties”
(图一)
6.4 编辑集群的名字
6.5 添加节点
先点左右”cluster nodes” 再点右下角 ”Add a Cluster Node” 给节点命名
6.6 配置fence
在(图一)点击Fence devices出现下图:
在下拉菜单中选择Manual Fencing,再填上name ora_fence.
6.7 为每个节点配置Fence设备
先点击左边 “webdb1” ,再点击右下角 “Manage Fencing For This Node”
6.8 点击”Add a New Fence Level”
6.9 先点击 “Fence-Level-1” 再点击 “Add a New Fence to this Level”
6.10 选择ora_fence,再选择OK
6.11同理配置webdb2在Fence设备 至此我们rhcs就配置完成了。
注:传统的RHCS配置还包括Failover Domains, Resources, Services.因我们用到的是一个叫oracledb.sh的脚本来完成集群配置,所以这里就没有配置它们。
四、oracle安装
1. 安装前的准备,分别在webdb1,webdb2上进行配置。
1.1 stop all cluster daemons and services
1.2 Create an Oracle user. The installation will not work if run as root.
# useradd oracle # passwd oracle
The oracle UIDs and GIDs must be the same on all cluster nodes. Makesure they match by looking at /etc/passwd and /etc/groups. If the UID/GIDs do not match, Oracle will not run. The password should be the same for the Oracle user on all nodes as well.
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库RHCS+ORACLE10G安装(2)在线全文阅读。
相关推荐: