Home > ASM > Not able to discover DISKS using oracleasm-discover

Not able to discover DISKS using oracleasm-discover

July 8, 2013

Today i was doing RAC 11GR2 installation and not able to view any of the DISKS groups during the installation. Little back ground of the issue was.

Initially it was decided to install grid and oracle DB through “oracle” user and disks groups have been configured for “oracle” users. Now in the last minute it was decided to use two users i.e. standard method. grid for GRID INFRA and oracle for ORACLE DB.

as a part of trouble shooting i was trying to execute below command and it is getting failed.

$ /usr/sbin/oracleasm-discover

Using ASMLib from /opt/oracle/extapi/64/asm/orcl/1/libasm.so
[ASM Library – Generic Linux, version 2.0.4 (KABI_V2)]
$

I understood that this because of grid is not having permission on disk files.  please find the below output.

[root@lstgiamdb1 disks]# ls -ltr
total 0
brw-rw—- 1 oracle dba 253, 10 Jun 14 01:39 DATA1
brw-rw—- 1 oracle dba 253, 11 Jun 14 01:39 DATA2
brw-rw—- 1 oracle dba 253, 12 Jun 14 01:39 DATA3
brw-rw—- 1 oracle dba 253, 13 Jun 14 01:39 DATA4
brw-rw—- 1 oracle dba 253, 14 Jun 14 01:39 DATA5
brw-rw—- 1 oracle dba 253, 15 Jun 14 01:39 FRA1
brw-rw—- 1 oracle dba 253, 16 Jun 14 01:39 FRA2
brw-rw—- 1 oracle dba 253, 17 Jun 14 01:39 FRA3
brw-rw—- 1 oracle dba 253, 18 Jun 14 01:39 FRA4
brw-rw—- 1 oracle dba 253, 19 Jun 14 01:39 FRA5
brw-rw—- 1 oracle dba 253, 20 Jun 14 01:39 REDO1
brw-rw—- 1 oracle dba 253, 21 Jun 14 01:39 REDO2
[root@lstgiamdb1 disks]#

Now i change the boot properties to GRID user as below.(On both nodes)

[root@lstgiamdb1 oracleasm]# oracleasm configure
ORACLEASM_ENABLED=true
ORACLEASM_UID=oracle
ORACLEASM_GID=dba
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=”dm”
ORACLEASM_SCANEXCLUDE=”sd”
ORACLEASM_USE_LOGICAL_BLOCK_SIZE=”false”
[root@lstgiamdb1 oracleasm]# oracleasm configure -i
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]:grid
Default group to own the driver interface [dba]: 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
[root@lstgiamdb1 oracleasm]# 

Now I  did “oracleasm scandisks” on (Both nodes).

 

[root@lstgiamdb1 oracleasm]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks…
Scanning system for ASM disks…
[root@lstgiamdb1 oracleasm]#

 Now I checked from grid user i.e. tried to discover the disks and was able to…..

Please find the output here with attached.

[grid@lstgiamdb1 ~]$ /usr/sbin/oracleasm-discover
Using ASMLib from /opt/oracle/extapi/64/asm/orcl/1/libasm.so
[ASM Library – Generic Linux, version 2.0.4 (KABI_V2)]
Discovered disk: ORCL:DATA1 [209715200 blocks (107374182400 bytes), maxio 512]
Discovered disk: ORCL:DATA2 [209715200 blocks (107374182400 bytes), maxio 512]
Discovered disk: ORCL:DATA3 [209715200 blocks (107374182400 bytes), maxio 512]
Discovered disk: ORCL:DATA4 [209715200 blocks (107374182400 bytes), maxio 512]
Discovered disk: ORCL:DATA5 [209715200 blocks (107374182400 bytes), maxio 512]
Discovered disk: ORCL:FRA1 [209715200 blocks (107374182400 bytes), maxio 512]
Discovered disk: ORCL:FRA2 [209715200 blocks (107374182400 bytes), maxio 512]
Discovered disk: ORCL:FRA3 [209715200 blocks (107374182400 bytes), maxio 512]
Discovered disk: ORCL:FRA4 [209715200 blocks (107374182400 bytes), maxio 512]
Discovered disk: ORCL:FRA5 [209715200 blocks (107374182400 bytes), maxio 512]
Discovered disk: ORCL:REDO1 [209715200 blocks (107374182400 bytes), maxio 512]
Discovered disk: ORCL:REDO2 [209715200 blocks (107374182400 bytes), maxio 512]
[grid@lstgiamdb1 ~]$

 

 

Advertisements
Categories: ASM
%d bloggers like this: