Oracle Linux 配置 UDEV SCSI Rules 說明

來源:互聯網
上載者:User

Oracle RAC中ASM 的配置可以有2種方式實現:raw和asmlib。 在實際的維護中,更推薦使用raw。

使用raw又有兩種方法:使用multipath和UDEV。在RedHat 平台下參考:

Redhat 5.4 +ASM + RAW+ Oracle 10g RAC 安裝文檔

對於ASMLIB,參考:

RAW+ASM 的RAC 安裝文檔

這篇看一下Oracle Linux 系統下UDEV的配置。

參考文檔:

http://www.oracle-base.com/articles/linux/UdevScsiRulesConfigurationInOracleLinux5and6.php

http://www.oracle-base.com/articles/11g/OracleDB11gR2RACInstallationOnOracleLinux6UsingVirtualBox.php

我這裡的實驗平台是Oracle Linux 6.1+Virtual Box。

Oracle Virtual Box 安裝使用 說明 

一.準備工作

1.1   建立共用磁碟

這裡直接使用VirtualBox命令來建立。 建立之前需要先關閉虛擬機器。

1.1.1 建立共用目錄sharedisk

F:\VBox\sharedisk

1.1.2 建立虛擬介質

C:\Users\Administrator.DavidDai>cdF:\VBox\sharedisk

C:\Users\Administrator.DavidDai>F:

F:\VBox\sharedisk>VBoxManage createhd --filename asm01.vdi --size 5120 --format VDI --variant Fixed

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

Disk image created. UUID:83552343-5254-4fe0-8f4d-949389a4d528

F:\VBox\sharedisk>VBoxManage createhd --filename asm02.vdi --size 5120 --format VDI --variant Fixed

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

Disk image created. UUID:b96d5ecb-168a-4eaf-851e-0f21961dae4e

 

F:\VBox\sharedisk>VBoxManage createhd --filename asm03.vdi --size 5120 --format VDI --variant Fixed

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

Disk image created. UUID:fd7bba6c-9530-433f-a7e0-24d470ba1fb9

 

F:\VBox\sharedisk>VBoxManage createhd --filename asm04.vdi --size 5120 --format VDI --variant Fixed

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

Disk image created. UUID:3239ed0d-bd0b-4124-a389-db21ecbb15db

 

 

1.1.3 將虛擬介質匹配到虛擬機器上

 

F:\VBox\sharedisk>VBoxManage storageattach OraLinuxRAC1 --storagectl "SATA 控制器" --port 1 --device 0 --type hdd --medium asm01.vdi --mtype shareable

 

F:\VBox\sharedisk>VBoxManage storageattach OraLinuxRAC1 --storagectl "SATA 控制器" --port 2 --device 0 --type hdd --medium asm02.vdi --mtype shareable

 

F:\VBox\sharedisk>VBoxManage storageattach OraLinuxRAC1 --storagectl "SATA 控制器" --port 3 --device 0 --type hdd --medium asm03.vdi --mtype shareable

 

F:\VBox\sharedisk>VBoxManage storageattach OraLinuxRAC1 --storagectl "SATA 控制器" --port 4 --device 0 --type hdd --medium asm04.vdi --mtype shareable

 

幾點注意的地方:

(1)    控制器名稱

我這裡寫的是:"SATA控制器",因為我的虛擬機器是中文顯示的,如:

 


如果是英語的,這裡名稱就要寫成:"SATA Controller",如:

F:\VBox\sharedisk>VBoxManagestorageattach OraLinuxRAC1 --storagectl "SATA Controller" --port 1--device 0 --type hdd --medium asm04.vdi --mtype shareable

 

(2)storageattach 對應的是VM中顯示的虛擬機器的名稱,我這裡OraLinuxRAC1.

 

(3)如果要將磁碟加到其他的節點上,只需要更改這裡的虛擬機器名稱即可。如:

F:\VBox\sharedisk>VBoxManagestorageattach OraLinuxRAC2 --storagectl "SATA 控制器" --port 1 --device 0 --typehdd --medium asm04.vdi --mtype shareable

  • 1
  • 2
  • 3
  • 下一頁

聯繫我們

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