Friday, July 10, 2015

ASM DISK CREATION IS FAILED

Instantiating disk: failed or Initializing the Oracle ASMLib driver: [FAILED]
[root@linux01 ~]# oracleasm createdisk DISK1 /dev/sdb1
Writing disk header: done
Instantiating disk: failed
Clearing disk header: done
[root@linux01 ~]#
 [root@linux01 ~]# /etc/init.d/oracleasm disable
Writing Oracle ASM library driver configuration: done
Dropping Oracle ASMLib disks: [ OK ]
Shutting down the Oracle ASMLib driver: [ OK ]
[root@linux01 ~]#
[root@linux01 ~]#
[root@linux01 ~]#
[root@linux01 ~]# /etc/init.d/oracleasm enable
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [FAILED]
[root@linux01 ~]#
This may be due to wrong oracleasm rpm installed. We have to install oracleasm rpm based on kernel version.
[root@linux01 ~]# rpm -qa | grep oracleasm
oracleasmlib-2.0.4-1.el5
oracleasm-2.6.18-164.15.1.el5-2.0.5-1.el5
oracleasm-support-2.1.8-1.el5
[root@linux01 ~]#

[root@linux01 Desktop]# uname -r
2.6.18-164.el5
[root@linux01 Desktop]# uname -a
Linux linux01.localdomain 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

Here kernel version is different . we have to downloadd correct rpm.
http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html

[root@linux01 Desktop]# rpm -Uvh oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpm
warning: oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing… ########################################### [100%]
1:oracleasm-2.6.18-164.el########################################### [100%]
[root@linux01 Desktop]#
[root@linux01 Desktop]#
[root@linux01 Desktop]# /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 [grid]:grid
Default group to own the driver interface [asmadmin]:asmadmin
Start Oracle ASM library driver on boot (y/n) [y]:
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
[root@linux01 Desktop]#
[root@linux01 Desktop]#
[root@linux01 Desktop]# /etc/init.d/oracleasm disable
Writing Oracle ASM library driver configuration: done
Dropping Oracle ASMLib disks: [ OK ]
Shutting down the Oracle ASMLib driver: [ OK ]
[root@linux01 Desktop]#
[root@linux01 Desktop]#
[root@linux01 Desktop]# /etc/init.d/oracleasm enable
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
[root@linux01 Desktop]#
Now i created the disks for ASM:

[root@linux01 Desktop]# /usr/sbin/oracleasm createdisk DISK1 /dev/sdb1
Writing disk header: done
Instantiating disk: done
[root@linux01 Desktop]#
[root@linux01 Desktop]# /usr/sbin/oracleasm createdisk DISK2 /dev/sdc1
Writing disk header: done
Instantiating disk: done
[root@linux01 Desktop]#
[root@linux01 Desktop]# /usr/sbin/oracleasm createdisk DISK3 /dev/sdd1
Writing disk header: done
Instantiating disk: done
[root@linux01 Desktop]#

Note: Any online course like RAC/DG/RMAN/PT/Goldengate , please visit www.amktechs.com

No comments:

Post a Comment

Share your knowledge it really improves, don't show off...