ORACLE RAC部署實錄(一):ORACLE ASMLIB
阿新 • • 發佈:2018-03-17
oracle asm[root@king01 ~]# yum install -y kmod-oracleasm*
[root@king01 ~]# rpm -ivh oracleasmlib-2.0.4-1.el6.x86_64.rpm
[root@king01 ~]# rpm -ivh oracleasm-support-2.1.8-1.el6.x86_64.rpm
[root@king01 ~]# /usr/sbin/oracleasm configure -i
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 []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
[root@king01 ~]# /usr/sbin/oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Configuring "oracleasm" to use device physical block size
Mounting ASMlib driver filesystem: /dev/oracleasm
[root@king01 ~]# /usr/sbin/oracleasm createdisk disk1 /dev/sdb1 Writing disk header: done Instantiating disk: done [root@king01 ~]# /usr/sbin/oracleasm createdisk disk2 /dev/sdc1 Writing disk header: done Instantiating disk: done [root@king01 ~]# /usr/sbin/oracleasm createdisk disk3 /dev/sdd1 Writing disk header: done Instantiating disk: done [root@king01 ~]# /usr/sbin/oracleasm createdisk disk4 /dev/sde1 Writing disk header: done Instantiating disk: done [root@king01 ~]# /usr/sbin/oracleasm createdisk disk5 /dev/sdf1 Writing disk header: done Instantiating disk: done [root@king01 ~]# /usr/sbin/oracleasm scandisks Reloading disk partitions: done Cleaning any stale ASM disks... Scanning system for ASM disks... [root@king01 ~]# /usr/sbin/oracleasm listdisks DISK1 DISK2 DISK3 DISK4 DISK5
[root@king02 ~]# yum install -y kmod-oracleasm* [root@king02 ~]# rpm -ivh oracleasmlib-2.0.4-1.el6.x86_64.rpm [root@king02 ~]# rpm -ivh oracleasm-support-2.1.8-1.el6.x86_64.rpm [root@king02 ~]# /usr/sbin/oracleasm configure -i 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 []: grid Default group to own the driver interface []: asmadmin Start Oracle ASM library driver on boot (y/n) [n]: y Scan for Oracle ASM disks on boot (y/n) [y]: y Writing Oracle ASM library driver configuration: done [root@king02 ~]# /usr/sbin/oracleasm init Creating /dev/oracleasm mount point: /dev/oracleasm Loading module "oracleasm": oracleasm Configuring "oracleasm" to use device physical block size Mounting ASMlib driver filesystem: /dev/oracleasm
[root@king02 ~]# /usr/sbin/oracleasm scandisks Reloading disk partitions: done Cleaning any stale ASM disks... Scanning system for ASM disks... Instantiating disk "DISK1" Instantiating disk "DISK2" Instantiating disk "DISK3" Instantiating disk "DISK4" Instantiating disk "DISK5" [root@king02 ~]# /usr/sbin/oracleasm listdisks DISK1 DISK2 DISK3 DISK4 DISK5
ORACLE RAC部署實錄(一):ORACLE ASMLIB