Wednesday, December 31, 2008

Install asmlib on RHEL5

[root@prod-oranode-210 oracleasm]# rpm -Uvh oracleasmlib-2.0.3-1.el5.x86_64.rpm
Preparing... ########################################### [100%]
package oracleasmlib-2.0.3-1.el5 is already installed
[root@prod-oranode-210 oracleasm]# rpm -Uvh oracleasm-support-2.1.2-1.el5.x86_64.rpm
Preparing... ########################################### [100%]
1:oracleasm-support ########################################### [100%]
[root@prod-oranode-210 oracleasm]# rpm -Uvh oracleasm-2.6.18-92.1.17.el5-2.0.5-1.el5.x86_64.rpm
Preparing... ########################################### [100%]
1:oracleasm-2.6.18-92.1.1########################################### [100%]
[root@prod-oranode-210 oracleasm]# /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
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 ]


dd if=/dev/zero of=/dev/asm_oradate_211.1 bs=8192 count=5000
dd if=/dev/zero of=/dev/asm_oradate_211.2 bs=8192 count=5000
dd if=/dev/zero of=/dev/asm_oradate_211.3 bs=8192 count=5000
dd if=/dev/zero of=/dev/asm_oradate_211.4 bs=8192 count=5000
dd if=/dev/zero of=/dev/asm_oradate_211.5 bs=8192 count=5000
dd if=/dev/zero of=/dev/asm_oradate_211.6 bs=8192 count=5000
dd if=/dev/zero of=/dev/asm_oradate_211.7 bs=8192 count=5000


/usr/sbin/asmtool -C -l /dev/oracleasm -n ASM_DISK211_01 -s /dev/emcpowera -a force=yes
/usr/sbin/asmtool -C -l /dev/oracleasm -n ASM_DISK211_02 -s /dev/emcpowerb -a force=yes
/usr/sbin/asmtool -C -l /dev/oracleasm -n ASM_DISK211_03 -s /dev/emcpowerc -a force=yes
/usr/sbin/asmtool -C -l /dev/oracleasm -n ASM_DISK211_04 -s /dev/emcpowerd -a force=yes
/usr/sbin/asmtool -C -l /dev/oracleasm -n ASM_DISK211_05 -s /dev/emcpowere -a force=yes
/usr/sbin/asmtool -C -l /dev/oracleasm -n ASM_DISK211_06 -s /dev/emcpowerf -a force=yes
/usr/sbin/asmtool -C -l /dev/oracleasm -n ASM_DISK211_07 -s /dev/emcpowerg -a force=yes