日期:2014-05-16 浏览次数:20484 次
Part 1 : Install The ASMLib Drivers
Cheking The Kernel Version
[root@vasm ~]# uname -a Linux vasm 2.6.32-200.13.1.el5uek #1 SMP Wed Jul 27 21:02:33 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
Installing the ASMLib Drivers
[root@vasm ~]# rpm -Uvh oracleasm-support-2.1.8-1.el5.x86_64.rpm oracleasmlib-2.0.4-1.el5.x86_64.rpm oracleasm-2.6.18-274.el5-2.0.5-1.el5.x86_64.rpm warning: oracleasm-support-2.1.8-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159 Preparing... ########################################### [100%] 1:oracleasm-support ########################################### [ 33%] 2:oracleasm-2.6.18-274.el########################################### [ 67%] 3:oracleasmlib ########################################### [100%]
Part 2 : Configure ASMLib
Configure ASMLib
Once ASMLib is installed we can execute it’s executable ‘oracleasm’ located at /etc/init.d, it will return a list of available commands.
[root@vasm ~]# /etc/init.d/oracleasm Usage: /etc/init.d/oracleasm {start|stop|restart|enable|disable|configure|createdisk|deletedisk|querydisk|listdisks|scandisks|status}
ASMLib configure command
[root@vasm ~]# /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 <ENTER> 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 []: oinstall 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 Initializing the Oracle ASMLib driver: [ OK ] Scanning the system for Oracle ASMLib disks: [ OK ]
[root@vasm ~]# /etc/init.d/oracleasm status Checking if ASM is loaded: yes Checking if /dev/oracleasm is mounted: yes
We have a set of 16 LUN’s ready, we will create 4 ASM disks on LUN’s sdb1,sdc1,sdd1 and sde1
[root@vasm ~]# /etc/init.d/