Oracle Enterprise Linux 5.9 配置OCFS2共用儲存

來源:互聯網
上載者:User

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單一實例資料庫

  • 1
  • 2
  • 3
  • 4
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.