Discussion:
Oracle ASM Problem
(too old to reply)
BS
2006-08-15 21:58:18 UTC
Permalink
I have installed Centos and trying to install 10gR2. Wile adding the
disks to the ASM, I get the error as below

[***@whp-lindbmon ~]# /etc/init.d/oracleasm createdisk vol1 /dev/sda10

Marking disk "/dev/sda10" as an ASM disk: Error opening manager: No
such device or address


Any pointers?? The partition sda10 is there.


[***@whp-lindbmon ~]# fdisk -l /dev/sda


Disk /dev/sda: 73.4 GB, 73406742528 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes


Device Boot Start End Blocks Id System
/dev/sda1 * 1 14 112423+ 83 Linux
/dev/sda2 15 406 3148740 83 Linux
/dev/sda3 407 667 2096482+ 82 Linux swap
/dev/sda4 668 8924 66324352+ 5 Extended
/dev/sda5 668 1320 5245191 83 Linux
/dev/sda6 1321 1842 4192933+ 83 Linux
/dev/sda7 1843 2364 4192933+ 83 Linux
/dev/sda8 2365 2756 3148708+ 83 Linux
/dev/sda9 2757 3017 2096451 83 Linux
/dev/sda10 3018 3516 4008186 83 Linux
/dev/sda11 3517 4015 4008186 83 Linux
/dev/sda12 4016 4514 4008186 83 Linux
[***@whp-lindbmon ~]#


[***@whp-lindbmon ~]# ls -tlr /dev/sda*
brw-rw---- 1 root disk 8, 1 Aug 15 06:42 /dev/sda1
brw-rw---- 1 root disk 8, 2 Aug 15 06:42 /dev/sda2
brw-rw---- 1 root disk 8, 4 Aug 15 06:42 /dev/sda4
brw-rw---- 1 root disk 8, 3 Aug 15 06:42 /dev/sda3
brw-rw---- 1 root disk 8, 6 Aug 15 06:42 /dev/sda6
brw-rw---- 1 root disk 8, 7 Aug 15 06:42 /dev/sda7
brw-rw---- 1 root disk 8, 5 Aug 15 06:42 /dev/sda5
brw-rw---- 1 root disk 8, 8 Aug 15 06:42 /dev/sda8
brw-rw---- 1 root disk 8, 9 Aug 15 06:42 /dev/sda9
brw-rw---- 1 root disk 8, 11 Aug 15 06:42 /dev/sda11
brw-rw---- 1 root disk 8, 10 Aug 15 06:42 /dev/sda10
brw-rw---- 1 root disk 8, 12 Aug 15 06:42 /dev/sda12
brw-rw---- 1 root disk 8, 0 Aug 15 06:42 /dev/sda
Andreas Piesk
2006-08-15 22:14:46 UTC
Permalink
Post by BS
Marking disk "/dev/sda10" as an ASM disk: Error opening manager: No
such device or address
Any pointers?? The partition sda10 is there.
re-read the error message, the manager cannot be found.
did you configure and start asmlib?

regards,
-ap
BS
2006-08-15 22:41:12 UTC
Permalink
Post by Andreas Piesk
Post by BS
Marking disk "/dev/sda10" as an ASM disk: Error opening manager: No
such device or address
Any pointers?? The partition sda10 is there.
re-read the error message, the manager cannot be found.
did you configure and start asmlib?
regards,
-ap
Yes

[***@whp-lindbmon software]# /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 []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: [ OK ]
Creating /dev/oracleasm mount point: [ OK ]
Loading module "oracleasm": [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]
Fabrizio Magni
2006-08-16 05:44:49 UTC
Permalink
Post by BS
I have installed Centos and trying to install 10gR2. Wile adding the
disks to the ASM, I get the error as below
Marking disk "/dev/sda10" as an ASM disk: Error opening manager: No
such device or address
Any pointers?? The partition sda10 is there.
Disk /dev/sda: 73.4 GB, 73406742528 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 14 112423+ 83 Linux
/dev/sda2 15 406 3148740 83 Linux
/dev/sda3 407 667 2096482+ 82 Linux swap
/dev/sda4 668 8924 66324352+ 5 Extended
/dev/sda5 668 1320 5245191 83 Linux
/dev/sda6 1321 1842 4192933+ 83 Linux
/dev/sda7 1843 2364 4192933+ 83 Linux
/dev/sda8 2365 2756 3148708+ 83 Linux
/dev/sda9 2757 3017 2096451 83 Linux
/dev/sda10 3018 3516 4008186 83 Linux
/dev/sda11 3517 4015 4008186 83 Linux
/dev/sda12 4016 4514 4008186 83 Linux
Have you issued the command:

partprobe

or rebooted the machine after creating the devices?

Can you access them with a dd?

dd if=/dev/zero of=/dev/sda10 count=100 bs=4096

Regards
--
Fabrizio Magni

***@mycontinent.com

replace mycontinent with europe
BS
2006-08-16 15:28:34 UTC
Permalink
Post by Fabrizio Magni
partprobe
or rebooted the machine after creating the devices?
Can you access them with a dd?
dd if=/dev/zero of=/dev/sda10 count=100 bs=4096
Regards
--
Fabrizio Magni
replace mycontinent with europe
Yes I did rebooted the machine after creating the partitions and I'm
able to use the partitions as well.

[***@whp-lindbmon software]# dd if=/dev/zero of=/dev/sda10 count=100
bs=4096
100+0 records in
100+0 records out
[***@whp-lindbmon software]#
Fabrizio Magni
2006-08-16 20:18:12 UTC
Permalink
Post by BS
Yes I did rebooted the machine after creating the partitions and I'm
able to use the partitions as well.
bs=4096
100+0 records in
100+0 records out
After the dd have you retried the create disk operation?

The error you reported is strange. I checked the asmlib sources.
It seems from an old asmlib version (1.x). Which version of ASMlib are
you using?

What happen if you try to create a disk group in your ASM without
exploiting ASMlib?

Regards
--
Fabrizio Magni

***@mycontinent.com

replace mycontinent with europe
BS
2006-08-17 14:48:00 UTC
Permalink
It might be the wrong version that I had but it was not the version 1
of ASM. Here is how I fixed it.

[***@whp-lindbmon software]# rpm -qa | grep -i asm
oracleasm-2.6.9-22.EL-2.0.0-1
oracleasmlib-2.0.1-1
oracleasm-support-2.0.1-1
oracleasm-2.6.9-11.0.0.10.3.EL-2.0.0-1
oracleasm-2.6.9-34.EL-2.0.1-1
[***@whp-lindbmon software]# rpm -e oracleasm-2.6.9-22.EL-2.0.0-1
[***@whp-lindbmon software]# rpm -e oracleasmlib-2.0.1-1
[***@whp-lindbmon software]# rpm -e oracleasm-support-2.0.1-1
error: Failed dependencies:
oracleasm-support >= 2.0.0 is needed by (installed)
oracleasm-2.6.9-11.0.0.10.3.EL-2.0.0-1.i686
oracleasm-support >= 2.0.0 is needed by (installed)
oracleasm-2.6.9-34.EL-2.0.1-1.i686
[***@whp-lindbmon software]# rpm -e
oracleasm-2.6.9-11.0.0.10.3.EL-2.0.0-1.i686
[***@whp-lindbmon software]# rpm -e oracleasm-2.6.9-34.EL-2.0.1-1.i686
[***@whp-lindbmon software]# rpm -e oracleasm-support-2.0.1-1
warning: /etc/sysconfig/oracleasm saved as
/etc/sysconfig/oracleasm.rpmsave
[***@whp-lindbmon software]# rpm -qa | grep -i asm
[***@whp-lindbmon software]# ps -ef | grep -i asm
root 5301 2963 0 09:17 pts/1 00:00:00 grep -i asm
[***@whp-lindbmon software]# uname -r
2.6.9-34.0.2.EL
[***@whp-lindbmon software]# ls -trl *asm*
-rw-r--r-- 1 oracle dba 22662 Aug 17 09:32
oracleasm-support-2.0.3-1.i386.rpm
-rw-r--r-- 1 oracle dba 12948 Aug 17 09:32
oracleasmlib-2.0.2-1.i386.rpm
-rw-r--r-- 1 oracle dba 128136 Aug 17 09:32
oracleasm-2.6.9-34.0.2.ELsmp-2.0.2-1.i686.rpm
-rw-r--r-- 1 oracle dba 121497 Aug 17 09:32
oracleasm-2.6.9-34.0.2.ELhugemem-2.0.2-1.i686.rpm
-rw-r--r-- 1 oracle dba 125671 Aug 17 09:32
oracleasm-2.6.9-34.0.2.EL-2.0.2-1.i686.rpm
[***@whp-lindbmon software]# rpm -ivh
oracleasm-support-2.0.3-1.i386.rpm
Preparing... ###########################################
[100%]
1:oracleasm-support ###########################################
[100%]
[***@whp-lindbmon software]# rpm -ivh
oracleasm-2.6.9-34.0.2.EL-2.0.2-1.i686.rpm
Preparing... ###########################################
[100%]
1:oracleasm-2.6.9-34.0.2.###########################################
[100%]
[***@whp-lindbmon software]# rpm -ivh oracleasmlib-2.0.2-1.i386.rpm
Preparing... ###########################################
[100%]
1:oracleasmlib ###########################################
[100%]
[***@whp-lindbmon software]# rpm -ivh
oracleasm-2.6.9-34.0.2.ELsmp-2.0.2-1.i686.rpm
Preparing... ###########################################
[100%]
1:oracleasm-2.6.9-34.0.2.###########################################
[100%]
[***@whp-lindbmon software]# rpm -ivh
oracleasm-2.6.9-34.0.2.ELhugemem-2.0.2-1.i686.rpm
Preparing... ###########################################
[100%]
1:oracleasm-2.6.9-34.0.2.###########################################
[100%]
[***@whp-lindbmon software]#
[***@whp-lindbmon software]#
[***@whp-lindbmon software]#
[***@whp-lindbmon software]#
[***@whp-lindbmon software]#
[***@whp-lindbmon software]# /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 []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: [ OK ]
Loading module "oracleasm": [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]
[***@whp-lindbmon software]#
[***@whp-lindbmon software]#
[***@whp-lindbmon software]#
[***@whp-lindbmon software]# /etc/init.d/oracleasm createdisk VOL1
/dev/sda10
Marking disk "/dev/sda10" as an ASM disk: [ OK ]
[***@whp-lindbmon software]# /etc/init.d/oracleasm createdisk VOL2
/dev/sda11
Marking disk "/dev/sda11" as an ASM disk: [ OK ]
[***@whp-lindbmon software]# /etc/init.d/oracleasm createdisk VOL3
/dev/sda12
Marking disk "/dev/sda12" as an ASM disk: [ OK ]
[***@whp-lindbmon software]#

and I was back in business...

Loading...