Wednesday, April 20, 2016

PRVG-10122 : ASMLib configuration value set to configuration parameter "ORACLEASM_UID" on the node "XXXXXX" does not match with cluster nodes

Checking ASMLib configuration.
  Node Name                             Status                
  ------------------------------------  ------------------------
  rac1                                  (failed) ASMLib configuration is incorrect.
  rac2                                  (failed) ASMLib configuration is incorrect.

ERROR:
PRVG-10122 : ASMLib configuration value set to configuration parameter "ORACLEASM_UID" on the node "rac1" does not match with cluster nodes
PRVG-10122 : ASMLib configuration value set to configuration parameter "ORACLEASM_GID" on the node "rac1" does not match with cluster nodes
PRVG-10122 : ASMLib configuration value set to configuration parameter "ORACLEASM_ENABLED" on the node "rac1" does not match with cluster nodes
PRVG-10122 : ASMLib configuration value set to configuration parameter "ORACLEASM_UID" on the node "rac2" does not match with cluster nodes
PRVG-10122 : ASMLib configuration value set to configuration parameter "ORACLEASM_GID" on the node "rac2" does not match with cluster nodes
PRVG-10122 : ASMLib configuration value set to configuration parameter "ORACLEASM_ENABLED" on the node "rac2" does not match with cluster nodes
Result: Check for ASMLib configuration failed.


There are few things we can do. First is run oracleasm configure on both nodes and see what are you getting.

In my case I was getting same results, not much help !

[root@rac1 ~]# oracleasm configure
ORACLEASM_ENABLED=true
ORACLEASM_UID=oracle
ORACLEASM_GID=dba
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=""
ORACLEASM_SCANEXCLUDE=""
ORACLEASM_USE_LOGICAL_BLOCK_SIZE="false"
[root@rac1 ~]#

[root@rac2 ~]# oracleasm configure
ORACLEASM_ENABLED=true
ORACLEASM_UID=oracle
ORACLEASM_GID=dba
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=""
ORACLEASM_SCANEXCLUDE=""
ORACLEASM_USE_LOGICAL_BLOCK_SIZE="false"
[root@rac2 ~]#


Next steps is cat oracleasm

[root@rac1 ~]# cat /etc/sysconfig/oracleasm
#
# This is a configuration file for automatic loading of the Oracle
# Automatic Storage Management library kernel driver.  It is generated
# By running /etc/init.d/oracleasm configure.  Please use that method
# to modify this file
#

# ORACLEASM_ENABLED: 'true' means to load the driver on boot.
ORACLEASM_ENABLED=false

# ORACLEASM_UID: Default UID owning the /dev/oracleasm mount point.
ORACLEASM_UID=

# ORACLEASM_GID: Default GID owning the /dev/oracleasm mount point.
ORACLEASM_GID=

# ORACLEASM_SCANBOOT: 'true' means fix disk perms on boot
ORACLEASM_SCANBOOT=true

# ORACLEASM_USE_LOGICAL_BLOCK_SIZE: 'true' means use the logical block
# size reported by the underlying disk instead of the physical. The
# default is 'false'
ORACLEASM_USE_LOGICAL_BLOCK_SIZE=false
[root@rac1 ~]#

[root@rac2 ~]# cat /etc/sysconfig/oracleasm
#
# This is a configuration file for automatic loading of the Oracle
# Automatic Storage Management library kernel driver.  It is generated
# By running /etc/init.d/oracleasm configure.  Please use that method
# to modify this file
#

# ORACLEASM_ENABLED: 'true' means to load the driver on boot.
ORACLEASM_ENABLED=true

# ORACLEASM_UID: Default user owning the /dev/oracleasm mount point.
ORACLEASM_UID=oracle

# ORACLEASM_GID: Default group owning the /dev/oracleasm mount point.
ORACLEASM_GID=dba

# ORACLEASM_SCANBOOT: 'true' means scan for ASM disks on boot.
ORACLEASM_SCANBOOT=true

# ORACLEASM_SCANORDER: Matching patterns to order disk scanning
ORACLEASM_SCANORDER=""

# ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan
ORACLEASM_SCANEXCLUDE=""

# ORACLEASM_USE_LOGICAL_BLOCK_SIZE: 'true' means use the logical block size
# reported by the underlying disk instead of the physical. The default
# is 'false'
ORACLEASM_USE_LOGICAL_BLOCK_SIZE=false

[root@rac2 ~]#



Looks like node rac1 has some issues as it is missing the values.

List oracleasm under /etc/sysconfig

[root@rac1 ~]# cd /etc/sysconfig/
[root@rac1 sysconfig]#
[root@rac1 sysconfig]# ls -lah oracle*
-rw-r--r--. 1 root root 772 Feb  9  2013 oracleasm
-rw-r--r--. 1 root root 973 Apr 20 10:36 oracleasm-_dev_oracleasm
lrwxrwxrwx. 1 root root  24 Apr 20 09:29 oracleasm.rpmsave -> oracleasm-_dev_oracleasm
[root@rac1 sysconfig]#



[root@rac2 ~]#  cd /etc/sysconfig/
[root@rac2 sysconfig]#
[root@rac2 sysconfig]# ls -lah oracle*
lrwxrwxrwx. 1 root root  24 Apr 20 10:40 oracleasm -> oracleasm-_dev_oracleasm
-rw-r--r--. 1 root root 973 Apr 20 10:41 oracleasm-_dev_oracleasm
[root@rac2 sysconfig]#


Perform below:

[root@rac1 sysconfig]# mv oracleasm oracleasm.old
[root@rac1 sysconfig]# ln -s oracleasm-_dev_oracleasm oracleasm

[root@rac1 sysconfig]# ls -lah oracle*
lrwxrwxrwx. 1 root root  24 Apr 20 12:59 oracleasm -> oracleasm-_dev_oracleasm
-rw-r--r--. 1 root root 973 Apr 20 10:36 oracleasm-_dev_oracleasm
-rw-r--r--. 1 root root 772 Feb  9  2013 oracleasm.old
lrwxrwxrwx. 1 root root  24 Apr 20 09:29 oracleasm.rpmsave -> oracleasm-_dev_oracleasm
[root@rac1 sysconfig]#


[root@rac1 ~]# cat /etc/sysconfig/oracleasm
#
# This is a configuration file for automatic loading of the Oracle
# Automatic Storage Management library kernel driver.  It is generated
# By running /etc/init.d/oracleasm configure.  Please use that method
# to modify this file
#

# ORACLEASM_ENABLED: 'true' means to load the driver on boot.
ORACLEASM_ENABLED=true

# ORACLEASM_UID: Default user owning the /dev/oracleasm mount point.
ORACLEASM_UID=oracle

# ORACLEASM_GID: Default group owning the /dev/oracleasm mount point.
ORACLEASM_GID=dba

# ORACLEASM_SCANBOOT: 'true' means scan for ASM disks on boot.
ORACLEASM_SCANBOOT=true

# ORACLEASM_SCANORDER: Matching patterns to order disk scanning
ORACLEASM_SCANORDER=""

# ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan
ORACLEASM_SCANEXCLUDE=""

# ORACLEASM_USE_LOGICAL_BLOCK_SIZE: 'true' means use the logical block size
# reported by the underlying disk instead of the physical. The default
# is 'false'
ORACLEASM_USE_LOGICAL_BLOCK_SIZE=false

[root@rac1 ~]#


we can also remove oracleasm.old and oracleasm.rpmsave

The issue is fixed now.

No comments: