Oracle asmlib 安裝配置及磁碟建立

來源:互聯網
上載者:User

一、 Oracle asmlib 安裝

在oracle.com 上下載合適的驅動程式,版本和作業系統的核心要一致。

目前只有linux 作業系統上有asmlib 包,其他的系統暫時還沒有。asmlib 簡化磁碟管理,取代原來我們在linux 上常用rawdevices 服務。

根據uname –r 檢測結果,下載的驅動程式套件名稱與其一致。務必!!!

[root@db2 ~]# uname -r

2.6.18-238.el5

這裡我最初下載包是2.6.18-238.12.1.el5 ,安裝後初始化配置時失敗。後來又找到一個oracleasm-2.6.18-238.el5-2.0.5-1.el5 的安裝包,安裝成功後才成功。

[root@db2 ~]#  rpm -qa |grep asm

oracleasm-2.6.18-238.el5-2.0.5-1.el5

oracleasmlib-2.0.4-1.el5

oracleasm-2.6.18-238.12.1.el5-2.0.5-1.el5

oracleasm-support-2.1.7-1.el5

oracleasm-2.6.18-238.12.1.el5-debuginfo-2.0.5-1.el5

真正需要安裝的asmlib 包如下:

oracleasm-support-version.arch.rpm

oracleasm-kernel-version.arch.rpm

oracleasmlib- version .arch.rpm

二、Oracle asmlib 配置
在軟體包安裝以後,需要配置才能使其生效。

[root@db2 ~]# oracleasm configure

執行結果如下:

Configuring the Oracle ASM library driver.

This will configure the on-boot properties of the Oracle ASM library
driver.  The following questions will determine whether the driver is
loaded on boot and what permissions it will have.  The current values
will be shown in brackets ('[]').  Hitting <ENTER> without typing an
answer will keep that current value.  Ctrl-C will abort.

Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [y]:
Fix permissions of Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration:           [  OK  ]
Scanning system for ASM disks:                             [  OK  ]

這個指令碼執行完成了四大任務。

1 、建立了設定檔/etc/sysconfig/oracleasm

2 、建立了掛載點/dev/oracleasm

3 、載入oracleasm 核心模組

4 、掛載ASM 函數驅動檔案系統

  • 1
  • 2
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.