RHEL/OL5 oracleasm listdisks fails not list LVM-managed ASM devices after reboot (Doc ID 558596.1)

Last updated on JULY 31, 2017

Applies to:

Linux OS - Version 2.6.18 to 2.6.18
Linux x86
Linux x86-64
Currency Check on 03-Sep-2014
**Checked for relevance on 27-Mar-2013***
Linux Kernel - Version:
Linux Kernel - Version: 2.6.18 to 2.6.18


Command /etc/init.d/oracleasm listdisks works on LVM dm-* devices until a reboot/restart. Below is the sequence of actions to reproduce the issue.

Note: this article is only applicable when using ASMLib on LVM-managed devices.


1. Environment 

# uname -a
Linux host 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64  GNU/Linux

# rpm -qa |grep oracleasm

2. Create ASM disk

[root@oel5a ~]#/etc/init.d/oracleasm createdisk DATA2 /dev/oraasm/oraasm-2
Marking disk "/dev/oraasm/oraasm-2" as an ASM disk: 'DATA2

[root@oel5a ~]# /etc/init.d/oracleasm listdisks

3. Restart oracleasm service and the volume DATA2 was gone

[root@oel5a ~]# /etc/init.d/oracleasm restart
Unmounting ASMlib driver filesystem: [ OK ]
Unloading module "oracleasm": [ OK ]
Loading module "oracleasm": [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]

[root@oel5a ~]# /etc/init.d/oracleasm listdisks

[root@oel5a ~]# /sbin/blkid | grep oracleasm
/dev/mapper/oraasm-oraasm-2: LABEL="DATA2" TYPE="oracleasm"
/dev/sdd1: LABEL="VOL1" TYPE="oracleasm"

[root@oel5a ~]# /etc/init.d/oracleasm querydisk /dev/oraasm/oraasm-2
Disk "/dev/oraasm/oraasm-2" is marked an ASM disk with the label "DATA2"

[root@oel5a ~]# more /proc/partitions
major minor #blocks name
253 0 6246400 dm-0
253 1 5644288 dm-1

[root@oel5a ~]# lvdisplay /dev/oraasm/oraasm-2
 --- Logical volume ---
LV Name /dev/oraasm/oraasm-2
VG Name oraasm
LV UUID QzwLLd-DSc3-42aA-b3rb-d9T3-ImmH-P9z51D
LV Write Access read/write
LV Status available
# open 0
LV Size 5.38 GB
Current LE 1378
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1

[root@oel5a ~]# ls -l /dev/dm*
ls: /dev/dm*: No such file or directory



Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms