New Oracleasm Libraries not detecting ASM drives consistently
rh2281Nov 17 2008 — edited Nov 18 2008Has anyone run into problems with the new Oracle ASMLib not detecting ASM drives on load and on scandisks commands? My /etc/sysconfig/oracleasm is the standard defaults that I used with the previous version of ASMLib, i.e. I do not specify the exclude or scanorder.
I have noticed that if I run scandisk while specifying the LUN in question, then ASMLib will detect the drive properly. I have also noticed that if I run the "scandisks" multiple times (100's), then it will at times find the proper ASM disks. I have played with various settings in the /etc/sysconfig/oracleasm file as well with no luck on getting consistent ASMLib detection.
The workaround I have for now is to put a "oracleasm scandisks /dev/sd*1" into my /etc/rc.d/rc.local file.
System is HP BL460c running Red Hat 5.2 with QLogic Driver version 8.01.07.25-fo
----------- some screen output -----------------------
[root@ipht01 ~]# rpm -qa | grep oracleasm
oracleasm-support-2.1.0-1.el5
oracleasmlib-2.0.3-1.el5
oracleasm-2.6.18-92.el5-2.0.5-1.el5
[root@ipht01 ~]# oracleasm listdisks
[root@ipht01 ~]# oracleasm querydisk /dev/sdb1
Device "/dev/sdb1" is marked an ASM disk with the label "WIND_ASMDISK001"
[root@ipht01 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[root@ipht01 ~]# oracleasm listdisks
[root@ipht01 ~]# oracleasm querydisk /dev/sdb1
Device "/dev/sdb1" is marked an ASM disk with the label "WIND_ASMDISK001"
[root@ipht01 ~]# oracleasm exit
Unmounting ASMlib driver filesystem: /dev/oracleasm
Unloading module "oracleasm": oracleasm
[root@ipht01 ~]# oracleasm init
Loading module "oracleasm": oracleasm
Mounting ASMlib driver filesystem: /dev/oracleasm
[root@ipht01 ~]# oracleasm listdisks
[root@ipht01 ~]# oracleasm querydisk /dev/sdb1
Device "/dev/sdb1" is marked an ASM disk with the label "WIND_ASMDISK001"
[root@ipht01 ~]# oracleasm scandisks /dev/sdb1
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "WIND_ASMDISK001"
[root@ipht01 ~]# oracleasm listdisks
WIND_ASMDISK001