我们都知道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
以上的相关内容就是对配置 Oracle 自动存储管理 (ASM)的介绍,望你能有所收获。
【编辑推荐】