Custom Search . . .

Sunday, March 22, 2009

"Marking disk "VOL1" as an ASM disk: [FAILED]"


Kernel : 2.6.9-42.EL-2.0.3

OS : Red Hat Enterprise Linux 4 AS

Database: 10.2.0.1


While doing ASM Configuraion, I got below error message

"Marking disk "VOL1" as an ASM disk: [FAILED]"

Not able to create ASM Disk's


[oracle@localhost ~]$ su - root

Password:

[root@localhost Desktop]# uname -r

2.6.9-42.0.0.0.1.ELhugemem

[root@localhost ~]#

[root@localhost ~]# cd Desktop/

[root@localhost Desktop]# ls -lrt

total 8

drwx------ 2 root root 4096 Mar 22 04:15 Trash

[root@localhost Desktop]# cd /home/oracle/Desktop/

[root@localhost Desktop]# ls -lrt

total 268

drwx------ 2 oracle oinstall 4096 Mar 22 14:20 Trash

-rw-r--r-- 1 oracle oinstall 4298 Mar 22 14:20 Home.desktop

-rw-r--r-- 1 oracle oinstall 82256 Mar 22 14:40 oracleasm-support-2.1.2-1.el4.i386.rpm

-rw-r--r-- 1 oracle oinstall 12948 Mar 22 14:40 oracleasmlib-2.0.2-1.i386.rpm

-rw-r--r-- 1 oracle oinstall 127412 Mar 22 14:41 oracleasm-2.6.9-42.EL-2.0.3-1.i686.rpm

[root@localhost Desktop]#

[root@localhost Desktop]# rpm -Uvh oracleasm-2.6.9-42.EL-2.0.3-1.i686.rpm \

> oracleasmlib-2.0.2-1.i386.rpm \

> oracleasm-support-2.1.2-1.el4.i386.rpm

Preparing... ########################################### [100%]

1:oracleasm-support ########################################### [ 33%]

2:oracleasm-2.6.9-42.EL ########################################### [ 67%]

3:oracleasmlib ########################################### [100%]

[root@localhost Desktop]#

[root@localhost Desktop]# /etc/init.d/oracleasm scandisks

Scanning the system for Oracle ASMLib disks: [ OK ]

[root@localhost Desktop]#

[root@localhost 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 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 ]

[root@localhost Desktop]#

[root@localhost Desktop]# /etc/init.d/oracleasm start

Initializing the Oracle ASMLib driver: [ OK ]

Scanning the system for Oracle ASMLib disks:

^[[A

[ OK ]

[root@localhost Desktop]#

[root@localhost Desktop]# /etc/init.d/oracleasm start

Initializing the Oracle ASMLib driver: [ OK ]

Scanning the system for Oracle ASMLib disks: [ OK ]

[root@localhost Desktop]#

[root@localhost 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@localhost Desktop]#

[root@localhost Desktop]# /etc/init.d/oracleasm createdisk /dev/sda6

Action "createdisk" requires two arguments

[root@localhost Desktop]#

[root@localhost Desktop]# /etc/init.d/oracleasm createdisk VOL1 /dev/sda6

Marking disk "VOL1" as an ASM disk: [FAILED]

6 comments:

Unknown said...

check permissions on /dev/sda6 and give rw to others

Anonymous said...

check /var/log/oracleasm for error messages

Raveesh said...

did you find a solution for this ? i am having the same issue.

Babu said...

Please read complete thread, you will get solution for your problem

Thanks

shirley said...

hi...I have the same problem.. When I create my asm1 disk failed.. Unable to query file "/dev/dm-2p1": No such file or directory
/etc/init.d/oracleasm createdisks asm2 /dev/dm-2p1
Marking disk "ASM2" as an ASM disk: [FAILED]
but when create without partition is ok why??
/etc/init.d/oracleasm createdisks asm2 /dev/dm-2
Marking disk "ASM2" as an ASM disk: [OK]

Vignesh said...

Babu where is the solution?
Plz provide link..