Heim > Datenbank > MySQL-Tutorial > Hauptteil

Oracle Enterprise Linux 5.9 配置OCFS2共享存储

WBOY
Freigeben: 2016-06-07 17:34:51
Original
1317 Leute haben es durchsucht

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单实例数据库

linux

Verwandte Etiketten:
Quelle:php.cn
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!