Are LOFI devices supported for ASM disks in 11.2.0.4, Solaris? (Doc ID 1920358.1)

Last updated on OCTOBER 31, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Oracle Solaris on x86-64 (64-bit)
Oracle Solaris on SPARC (64-bit)

Goal

 Are LOFI devices supported for ASM disks in 11.2.0.4?

Any attempt to install 11.2.0.4 GI cannot complete since ASM disks (configured from lofi devices) are not discovered .

1) ASM disks have been created as follows, using oracle user

mkdir -p /u02/oradata/+ASM/raw_device_fakes
cd /u02/oradata/+ASM/raw_device_fakes

# generate  10GB files...
dd if=/dev/zero of=asm_disk_01 bs=1024 count=10485760
dd if=/dev/zero of=asm_disk_02 bs=1024 count=10485760

-- as root
chown -R oracle:dba /u02
chmod -R 775 /u02
lofiadm -a /u02/oradata/+ASM/raw_device_fakes/asm_disk_01
lofiadm -a /u02/oradata/+ASM/raw_device_fakes/asm_disk_02

# ls -l /dev/lofi/*
lrwxrwxrwx   1 root     root          29 Jul 16 17:35 /dev/lofi/1 -> ../../devices/pseudo/lofi@0:1
lrwxrwxrwx   1 root     root          29 Jul 16 17:35 /dev/lofi/2 -> ../../devices/pseudo/lofi@0:2

# ls -lL /dev/lofi/*
brw-------   1 root     sys      124,  1 Jul 16 17:35 /dev/lofi/1
brw-------   1 root     sys      124,  2 Jul 16 17:35 /dev/lofi/2

mkdir /asmdisks
chown oracle:dba /asmdisks

mknod /asmdisks/vdisk1 c 124 1
mknod /asmdisks/vdisk2 c 124 2

chown oracle:dba /asmdisks/vdisk*

ls -lhR /asmdisks*
crwxrwxr-x   1 oracle   dba      124,  1 Jul 17 16:14 vdisk1
crwxrwxr-x   1 oracle   dba      124,  2 Jul 17 16:14 vdisk2


2) GUI/ASMCA cannot discover disks. Also KFOD reports the below errors

./kfod status=TRUE asm_diskstring='/asmdisks/vdisk*' disk=all dscvgroup=TRUE
KFOD-00301: Unable to contact Cluster Synchronization Services (CSS). Return code 2 from kgxgncin.
KFOD-00311: Error scanning device /asmdisks/vdisk1
ORA-27094: raw volume used can damage partition table
KFOD-00311: Error scanning device /asmdisks/vdisk2
ORA-27094: raw volume used can damage partition table

 

Solution

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