Oracle ASM 和Oracle緊密集成的緣由
作者:佚名
下面的文章主要是描述如何對Oracle ASM 自動存儲管理進行配置,以及在實際的相關(guān)操作中的代碼的示例,以下就是詳細內(nèi)容的介紹。
我們都知道Oracle ASM 和 Oracle 數(shù)據(jù)庫是緊密集成的,并且和 Oracle 數(shù)據(jù)管理的相關(guān)工具套件一起配合工作。它可以是簡化的數(shù)據(jù)庫存儲管理,并且可以提供原始磁盤 I/O 的相關(guān)性能。
配置 ASMLib。以 root 用戶身份在兩個節(jié)點上配置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 ]
創(chuàng)建Oracle ASM 磁盤。以 root 用戶身份在任何一個節(jié)點上創(chuàng)建 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
以上的相關(guān)內(nèi)容就是對配置 Oracle 自動存儲管理 (ASM)的介紹,望你能有所收獲。
【編輯推薦】
責任編輯:佚名
來源:
互聯(lián)網(wǎng)