Friday, April 10, 2015

[INS-30508] Invalid ASM disks

A test system was failing with [INS-30508] Invalid ASM disks when GI was being installed (same error observed on both 11.2.0.4 and 12.1.0.2).

The ASM block device permission were set on /etc/rc.local instead of via udev rules.
ls -l /dev/sd*1
brw-rw----. 1 grid asmadmin 8, 17 Mar 27 15:34 /dev/sdb1
brw-rw----. 1 grid asmadmin 8, 33 Mar 27 15:34 /dev/sdc1
But these permissions are changed to ownership of root when the "change discovery path" is run.
ls -l /dev/sd*1
brw-rw----. 1 root disk 8, 17 Mar 27 15:40 /dev/sdb1
brw-rw----. 1 root disk 8, 33 Mar 27 15:40 /dev/sdc1


It seems permission is changed at the end of the discovery. The installation log has the kfod output.
INFO: Executing [/tmp/OraInstall2015-03-27_03-43-42PM/ext/bin/kfod, nohdr=true, verbose=true, disks=all, status=true, op=disks, asm_diskstring='/dev/sd*']
 with environment variables {XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt, SYSFONT=latarcyrheb-sun16, LANG=en_US.UTF-8, _=/home/grid/grid/install/.oui, GS_LIB=, KDE_MULTIHEAD=false, G_BROKEN_FILENAMES=1, SSH_AGENT_PID=11532, HOME=/home/grid, QT_PLUGIN_PATH=/home/grid/.kde/lib64/kde4/plugins/:/usr/lib64/kde4/plugins/, WINDOWID=2097177, LD_LIBRARY_PATH=/tmp/OraInstall2015-03-27_03-43-42PM/ext/bin/../lib, KDE_SESSION_VERSION=4, SSH_ASKPASS=/usr/bin/ksshaskpass, SSH_AUTH_SOCK=/tmp/ssh-TgemA11531/agent.11531, KONSOLE_DBUS_SERVICE=:1.29, CVS_RSH=ssh, GPG_AGENT_INFO=/tmp/gpg-KYVdjy/S.gpg-agent:11557:1, SHLVL=5, XCURSOR_THEME=default, LANGUAGE=, HISTCONTROL=ignoredups, KDE_FULL_SESSION=true, KDE_IS_PRELINKED=1, PROFILEHOME=/home/grid, MODULEPATH=/usr/share/Modules/modulefiles:/etc/modulefiles, QTLIB=/usr/lib64/qt-3.3/lib, LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:, KDEDIRS=/usr, LC_ALL=, HISTSIZE=1000, LOADEDMODULES=, module=() {  eval `/usr/bin/modulecmd bash $*`
}, TERM=xterm, KDE_SESSION_UID=502, DISPLAY=:1, PWD=/home/grid/grid, USER=grid, NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat, QTINC=/usr/lib64/qt-3.3/include, CLASSPATH=, XDG_DATA_DIRS=/usr/share/kde-settings/kde-profile/default/share:/usr/local/share:/usr/share, HOSTNAME=rhel6m1.domain.net, MODULESHOME=/usr/share/Modules, SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/11585,unix/unix:/tmp/.ICE-unix/11585, GI_HOME=/opt/app/oracle/product/11.2.0/grid_1, LESSOPEN=|/usr/bin/lesspipe.sh %s, ORACLE_HOME=/tmp/OraInstall2015-03-27_03-43-42PM/ext/bin, LOGNAME=grid, SHELL=/bin/bash, COLORFGBG=15;0, DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-FHqO2yewGg,guid=022c95b15b2c5a6396b3e9b9000004cd, XDG_SESSION_COOKIE=e7248f2c4d732e53900d83b20000000c-1427470249.835456-1664171820, GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/grid/.gtkrc-2.0::/home/grid/.kde/share/config/gtkrc-2.0, KONSOLE_DBUS_SESSION=/Sessions/1, MAIL=/var/spool/mail/grid, VNCDESKTOP=rhel6m1.domain.net:1 (grid), QTDIR=/usr/lib64/qt-3.3, JAVA_HOME=, XDG_MENU_PREFIX=kde4-, GTK_RC_FILES=/etc/gtk/gtkrc:/home/grid/.gtkrc::/home/grid/.kde/share/config/gtkrc, PATH=/usr/bin:/usr/ccs/bin:/opt/app/oracle/product/11.2.0/grid_1/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/grid/bin:/home/grid/grid/install}
INFO: Starting Output Reader Threads for process /tmp/OraInstall2015-03-27_03-43-42PM/ext/bin/kfod
INFO: Parsing 10236 CANDIDATE /dev/sdb1 grid     asmadmin
INFO: The process /tmp/OraInstall2015-03-27_03-43-42PM/ext/bin/kfod exited with code 0
INFO: Waiting for output processor threads to exit.
INFO: Parsing 10236 CANDIDATE /dev/sdc1 grid     asmadmin
From this output it seems that kfod discovers the candidate disks and they appear on the OUI. But since the permission has changed at the end of the command clicking next after selecting disks for the ASM diskgroup results in OUI giving the [INS-30508] Invalid ASM disks error.
One of the workaround is to change the permission manually and click the next button or better option is to have udev rules created instead of putting permissions on /etc/rc.local.

Useful metalink notes
[INS-30508] Invalid ASM disks [ID 1941922.1]
Oracle Universal Installer (OUI) in silent mode fails with INS-30508 [ID 987393.1]