REDHAT AS5虚拟机 安装oracle 10g rac (三)

描述REDHAT AS5虚拟机上安装oracle 10g RAC的过程[@more@]

5 配置OCFS

ocr、vote采用ocfs

5.1 需要的软件

http://oss.oracle.com/projects/ocfs2/ 下载

ocfs2-2.6.18-164.el5-1.4.7-1.el5.i686.rpm

ocfs2-tools-1.4.4-1.el5.i386.rpm

ocfs2console-1.4.4-1.el5.i386.rpm

安装

查看包安装目录:

rpm -ql ocfs2console-1.4.4-1.el5

查看命令所在目录:

which ocfs2console

5.2 配置ocfs文件系统

rac1上:

执行 # ocfs2console --开启图形化窗口

Cluster -> configure nodes 添加:

名称 ip 端口

Rac1 192.168.0.2 7777

Rac2 192.168.0.3 7777

rac2上同样执行:ocfs2console

rac1rac2ocfs配置文件:

/etc/ocfs2/cluster.conf

node:

ip_port = 7777

ip_address = 192.168.0.2

number = 0

name = rac1

cluster = ocfs2

node:

ip_port = 7777

ip_address = 192.168.0.3

number = 1

name = rac2

cluster = ocfs2

cluster:

node_count = 2

name = ocfs2

5.3 配置o2cb

rac1rac2上:

/etc/init.d/o2cb unload

/etc/init.d/o2cb configure

Load O2CB driver on boot (y/n) [n]: y

Cluster stack backing O2CB [o2cb]:

Cluster to start on boot (Enter "none" to clear) [ocfs2]:

Specify heartbeat dead threshold (>=7) [31]: 61

Specify network idle timeout in ms (>=5000) [30000]:

Specify network keepalive delay in ms (>=1000) [2000]:

Specify network reconnect delay in ms (>=2000) [2000]:

Writing O2CB configuration: OK

Loading filesystem "configfs": OK

Mounting configfs filesystem at /sys/kernel/config: OK

Loading filesystem "ocfs2_dlmfs": OK

Mounting ocfs2_dlmfs filesystem at /dlm: OK

Starting O2CB cluster ocfs2: OK

5.4 格式化文件系统

1) 检查o2cb在两个节点上都已联机

在两个节点上执行:

/etc/init.d/o2cb status

Driver for "configfs": Loaded

Filesystem "configfs": Mounted

Driver for "ocfs2_dlmfs": Loaded

Filesystem "ocfs2_dlmfs": Mounted

Checking O2CB cluster ocfs2: Online

Heartbeat dead threshold = 31

Network idle timeout: 30000

Network keepalive delay: 2000

Network reconnect delay: 2000

Checking O2CB heartbeat: Not active

在一个节点上执行:# ocfs2console

Task -> format

5.5 挂载文件系统

在两个节点上执行:

# mkdir /vote

# mkdir /ocr

# mount -t ocfs2 -o datavolume,nointr /dev/sdb1 /vote

# mount -t ocfs2 -o datavolume,nointr /dev/sdc1 /ocr

# vi /etc/fstab

/dev/sdb1 /vote ocfs2 _netdev,datavolume,nointr 0 0

/dev/sdc1 /ocr ocfs2 _netdev,datavolume,nointr 0 0

出现错误:mount.ocfs2: Transport endpoint is not connected while mounting /dev/sdb1 on /vote.

解决:保证rac1rac2o2cb status的输出一样。如果不一致,配置成一样。

/etc/init.d/o2cb configure

Umount /vote; umount /ocr

停止两个节点上的 ocfs2o2cb服务。

/etc/init.d/ocfs2 stop

/etc/init.d/o2cb stop

启动两个节点上的 ocfs2o2cb服务:

/etc/init.d/ocfs2 start

/etc/init.d/o2cb start

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

转载于:http://blog.itpub.net/56630/viewspace-1035694/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值