我們都知道Oracle ASM 和 Oracle 數據庫是緊密集成的,並且和 Oracle 數據管理的相關工具套件一起配合工作。它可以是簡化的數據庫存儲管理,並且可以提供原始磁盤 I/O 的相關性能。
配置 ASMLib。以 root 用戶身份在兩個節點上配置Oracle ASMLib。
- # /etc/init.d/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 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) [n]: y
- Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
- Writing Oracle ASM library driver configuration: [ OK ]
- Loading module "Oracleasm": [ OK ]
- Mounting ASMlib driver filesystem: [ OK ]
- Scanning system for ASM disks: [ OK ]
創建Oracle ASM 磁盤。以 root 用戶身份在任何一個節點上創建 ASM 磁盤。
- # /etc/init.d/Oracleasm createdisk VOL1 /dev/sdc1
- Marking disk "/dev/sdc1" as an ASM disk: [ OK ]
- # /etc/init.d/Oracleasm createdisk VOL2 /dev/sdd1
- Marking disk "/dev/sdd1" as an ASM disk: [ OK ]
- # /etc/init.d/Oracleasm createdisk VOL3 /dev/sde1
- Marking disk "/dev/sde1" as an ASM disk: [ OK ]
- Verify that the ASM disks are visible from every node.
- # /etc/init.d/Oracleasm scandisks
- Scanning system for ASM disks: [ OK ]
- # /etc/init.d/Oracleasm listdisks
- VOL1
- VOL2
- VOL3
- VOL4