Grid Install ASM Disk Issue

Today I was installing Grid Infrastructure on a fresh VM, something I’ve done plenty of times. All was going fine until I started the GUI for the install and it couldn’t see my disks. That was odd as I’d definitely configured them correctly using ORACLEASM:

[root ~]# oracleasm listdisks
ASMDISK_T01_2G_0001
ASMDISK_T01_2G_0002
ASMDISK_T01_500G_0001
ASMDISK_T01_500G_0002
ASMDISK_T01_990G_0001

Ok. Now what? Permissions?

[root ~]# ls -lrt /dev/sd*
brw-rw----. 1 root disk 8,  0 Feb  7 15:49 /dev/sda
brw-rw----. 1 root disk 8,  2 Feb  7 15:49 /dev/sda2
brw-rw----. 1 root disk 8,  1 Feb  7 15:49 /dev/sda1
brw-rw----. 1 root disk 8, 80 Feb  7 15:49 /dev/sdf
brw-rw----. 1 root disk 8, 64 Feb  7 15:49 /dev/sde
brw-rw----. 1 root disk 8, 48 Feb  7 15:49 /dev/sdd
brw-rw----. 1 root disk 8, 16 Feb  7 15:49 /dev/sdb
brw-rw----. 1 root disk 8, 32 Feb  7 15:49 /dev/sdc
brw-rw----. 1 root disk 8, 96 Feb  7 15:49 /dev/sdg
brw-rw----. 1 root disk 8, 65 Feb  7 15:49 /dev/sde1
brw-rw----. 1 root disk 8, 33 Feb  7 15:49 /dev/sdc1
brw-rw----. 1 root disk 8, 17 Feb  7 15:49 /dev/sdb1
brw-rw----. 1 root disk 8, 81 Feb  7 15:49 /dev/sdf1
brw-rw----. 1 root disk 8, 49 Feb  7 15:49 /dev/sdd1

Ah, ok. Well that’s not what it was. So let’s change the ASM disks (sdb1-sdf1) to grid:asmadmin ownership and restart the installer.

Same error. No disks. Hmmm. Permissions are being changed back by the installer itself! Time for UDEV then. Or not.

When Googling the error I came across a lot of blogs explaining how to use udev to override the permissions and wondered why would Oracle change the permissions if you were meant to change them back? So rather than just following the guides I did a bit more digging.

If you have used ASMlib to create the disks, disks with correct permissions of grid:asmdba will be located in:

/dev/oracleasm/disks

Just change the discovery path in the ASM GUI to find your missing disks without having to mess around with udev rules!

Enjoy!

Leave a Reply