I have a problem with my 12.2 GI installation: oracleasm is not finding the virtual disks after a reboot. This is only a proof-of-concept on a laptop, so I am using virtual disks (created as zero filled files on my local file system) with losetup. The virtual disks are available as loop devices upon boot via losetup commands in /etc/rc.d/rc.local. The ASMLib driver is loaded and /dev/oracleasm is mounted. There are no errors in /var/log/oracleasm. I have all 3 ASMLib RPMs installed (see below). oracleasm is enabled and configured to scan on boot (see below). Everything works great except that I have to manually issue the scandisks command after each reboot. And of course, I have to restart ASM after issuing the scandisks command so that it can use the ASM disks.
OEL 7: 4.1.12-94.3.5.el7uek.x86_64
Oracle GI 12.2.0..1.0
oracleasm version 2.1.9
RPMs:
oracleasm-support-2.1.8-3.1.el7.x86_64
oracleasmlib-2.0.12-1.el7.x86_64
kmod-oracleasm-2.0.8-17.0.1.el7.x86_64
[root@]# oracleasm configure
ORACLEASM_ENABLED=true
ORACLEASM_UID=oracle
ORACLEASM_GID=dba
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER="loop"
ORACLEASM_SCANEXCLUDE=""
ORACLEASM_USE_LOGICAL_BLOCK_SIZE="false"
[root@]#
Output of /var/log/oracleasm: Note that the read-label error is expected. Also note that there are no errors, it just doesn't find the disks:
Unloading module "oracleasm": oracleasm
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Configuring "oracleasm" to use device physical block size
Mounting ASMlib driver filesystem: /dev/oracleasm
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
oracleasm-read-label: Unable to open device "/dev/sr0": No medium found
And here is the output of a manual execution of oracleasm scandisks:
[root@ ~]# oracleasm listdisks
[root@ ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "DATA1"
Instantiating disk "DATA2"
Instantiating disk "DATA3"
Instantiating disk "DATA4"
Instantiating disk "REDO1"
Instantiating disk "REDO2"
Instantiating disk "FRA1"
Instantiating disk "FRA2"
[root@ ~]# oracleasm listdisks
DATA1
DATA2
DATA3
DATA4
FRA1
FRA2
REDO1
REDO2
[root@ ~]#
Any help is appreciated. Thanks.
Brett