oracle enterprise linux 5.9 配置ocfs2共享存储
1. 环境准备
1.1. 软件信息
虚拟机:virtualbox 4.2
操作系统:oracle linux server release 5.9
ocfs2:ocfs2-2.6.18-348.el5-1.4.10-1.el5.x86_64.rpm
1.2. 主机配置
1.2.1. hosts文件
[root@skynode1 ~]# more /etc/hosts
# do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
# skynode1
192.168.1.241 skynode1
192.168.1.242 skynode1-vip
# skynode2
192.168.1.245 skynode2
192.168.1.246 skynode2-vip
192.168.1.250 sky-cluster sky-cluster-scan
10.11.11.11 skynode1-priv
10.11.11.12 skynode2-priv
当前主机是模拟rac环境使用,因此我们使用私有网卡,作为ocfs2集群的通信地址。当然生产环境当中是不能这么做的,这样会给私有网卡带来严重的性能压力。建议添加单独的网卡来作为ocfs2集群的通信网卡。
1.2.2. 磁盘空间
添加一块独立的磁盘用于ocfs2集群测试
1.3. 安装ocfs2
操作系统安装好以后,默认已经安装了ocfs2-tools,需要手工进行ocfs2的安装。每个使用ocfs2共享文件系统的节点都需要安装。
[oracle@skynode1 ~]$ rpm -qa | grep ocfs
ocfs2-tools-1.8.0-10.el5
选择使用yum的方式进行ocfs2安装。
[root@skynode1 server]# yum list | grep ocfs2
this system is not registered with uln.
you can use up2date --register to register.
uln support will be disabled.
ocfs2-tools.x86_64 1.8.0-10.el5 installed
ocfs2-2.6.18-348.el5.x86_64 1.4.10-1.el5 oel5
ocfs2-2.6.18-348.el5debug.x86_64 1.4.10-1.el5 oel5
ocfs2-2.6.18-348.el5xen.x86_64 1.4.10-1.el5 oel5
ocfs2-tools-devel.x86_64 1.8.0-10.el5 oel5
[root@skynode1 server]# yum install ocfs2-2.6.18-348.el5.x86_64
loaded plugins: rhnplugin, security
this system is not registered with uln.
you can use up2date --register to register.
uln support will be disabled.
setting up install process
resolving dependencies
--> running transaction check
---> package ocfs2-2.6.18-348.el5.x86_64 0:1.4.10-1.el5 set to be updated
--> finished dependency resolution
dependencies resolved
===================================================================
package arch version repository size
===================================================================
installing:
ocfs2-2.6.18-348.el5 x86_64 1.4.10-1.el5 oel5 323 k
transaction summary
===================================================================
install 1 package(s)
upgrade 0 package(s)
total download size: 323 k
is this ok [y/n]: y
downloading packages:
running rpm_check_debug
running transaction test
finished transaction test
transaction test succeeded
running transaction
installing : ocfs2-2.6.18-348.el5 1/1
installed:
ocfs2-2.6.18-348.el5.x86_64 0:1.4.10-1.el5
complete!
没有太多的依赖关系,,安装很顺利。
注意:
新版本的oel系统中,已经不再提供ocfs2-console这个图形化工具进行ocfs的配置。
ocfs2-tools 是一个字符界面工具。因此我们通过ocfs2-tools命令行进行ocfs2集群的配置。
user's guide for release 1.6
ocfs2-tools (cli) and ocfs2console (gui).
其他节点选择rpm方式直接安装
[root@skynode2 ~]# rpm -ivh ocfs2-2.6.18-348.el5-1.4.10-1.el5.x86_64.rpm
warning: ocfs2-2.6.18-348.el5-1.4.10-1.el5.x86_64.rpm: header v3 dsa signature: nokey, key id 1e5e0159
preparing... ########################################### [100%]
1:ocfs2-2.6.18-348.el5 ########################################### [100%]推荐阅读:
linux上oracle 11g安装步骤图文详解
linux操作系统中oracle 11g数据库安装过程图文详解
centos 5.6 上安装 oracle 11g r2 单实例数据库详解
oracle vm虚拟机中安装oracle clusterware 11g步骤
vm虚拟机下在linux上安装oracle 11g单实例数据库