Unable to instantiate ASM disk

This applies to all release any platform.

Problem while instantiating the ASM disks when doing scandisk on second node in the cluster.

[root@myrac2 ~]# /usr/sbin/oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks…
Scanning system for ASM disks…
Instantiating disk “OCR”
Unable to instantiate disk “OCR”
Instantiating disk “VD”
Unable to instantiate disk “VD”
Instantiating disk “DATA”
Unable to instantiate disk “DATA”
Instantiating disk “FRA”
Unable to instantiate disk “FRA”

Solution:

[root@myrac2 ~]# /usr/sbin/oracleasm configure
ORACLEASM_ENABLED=false
ORACLEASM_UID=
ORACLEASM_GID=
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=””
ORACLEASM_SCANEXCLUDE=””
[root@myrac2 ~]# /usr/sbin/oracleasm configure -i
Configuring the Oracle ASM library driver.

This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets (‘[]’). Hitting ; without typing an
answer will keep that current value. Ctrl-C will abort.

Default user to own the driver interface []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
[root@ms2rac2 ~]# ls -ltr /etc/sysconfig/oracleasm
lrwxrwxrwx 1 root root 24 Dec 11 2008 /etc/sysconfig/oracleasm ->;;; oracleasm-_dev_oracleasm

[root@myrac2 ~]# /usr/sbin/oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks…
Scanning system for ASM disks…
Instantiating disk “OCR”
Instantiating disk “VD”
Instantiating disk “DATA”
Instantiating disk “FRA”

[root@myrac2 ~]# /usr/sbin/oracleasm listdisks
DATA
FRA
OCR
VD

If you still get the following error:

[root@ms2rac2 ~]# /usr/sbin/oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks…
Cleaning disk “FRA”
Cleaning disk “OCR”
Cleaning disk “VD”
Scanning system for ASM disks…
Instantiating disk “CRS”
Instantiating disk “FRA”
Unable to fix permissions on ASM disk “CRS”

Then check the grid and oracle user definition on all nodes.

id oracle

id grid

Check,

ORACLEASM_UID=grid
ORACLEASM_GID=asmadmin

If anything is missing, create it and rescan the disks.

If you are not able to see your ASM disks using oracleasm listdisks after doing oracleasm scandisks then try the following:

Do a listing of the device using ls – ltr command on all the nodes in the cluster.

ls -ltr /dev/device-name

Now scan the problem device(remember at this stage, the ASM disk was created using createdisk command)

/usr/sbin/oracleasm scandisks -v /dev/device-name

This will instantiate the disk.

Note the device name is the one used when creating ASM disk using oracleasm createdisk command.

Now try the listdisks command and it will list the ASM disk ready for creating ASM disk groups using asmca utility.

You can also try
/usr/sbin/oracleasm-discover command to discover all the configured ASM disks.

Lastly if you get the cannot instantiate message during asmdisk creation, check /etc/sysconfig/selinux file and set the below

SELINUX=disabled

Now restart the server.

Advertisements

About mpoojari
Oracle Database/Applications Administrator

3 Responses to Unable to instantiate ASM disk

  1. Suchi says:

    Hi,

    I am getting the same error when try to query disk
    # /usr/sbin/oracleasm querydisk ACFSVOL
    Disk “ACFSVOL” does not exist or is not instantiated

    also from # cd /dev/oracleasm/disks/
    I am not able to view the above disk “ACFSVOL” , while other are there.

    I have configured disk/volumes through openfiler. I can see this disk/volume ACFSVOL in openfiler but through ASM I can’t see… I have installed clustersetup on ACFSVOL.

    I am facing this issue after restart the server. Any idea what are the cause for this error?

    Thanks,
    Suchi

    • mpoojari says:

      Hi Suchi,

      I assume that you have created the ASM disks using /usr/bin/oracleasm createdisk ….command.

      Could you check if /etc/rc.local is read immediately after reboot. You need specify the block devices, permissions in the rc.local file. Please check them.

      Check the status of ASM Service using the command : service oracleasm status

      What can you see in tail -f /var/log/oracleasm ?

      After all nodes have been configured, run “service oracleasm status” on all nodes to verify that the oracleasm service is installed and working properly. To confirm that the service will start at boot, run the following command on all nodes:

      chkconfig oracleasm on

      Run the following command : /etc/init.d/oracleasm configure and check for ORACLEASM_SCANBOOT=TRUE. What are the values for ORACLEASM_UID and ORACLEASM_GID?

      Let me know if this helps.

      Cheers,
      Mohan

  2. adhikarexuss says:

    Hi Mohan,

    Is it possible to change the ORACLEASM_UID and ORACLEASM_GID?
    I made a mistake by putting the ORACLEASM_UID = oracle and ORACLEASM_GID = oinstall.
    where as the value should be grid and asmadmin..

    Thank you in advance for your reply.

    Regards,
    Adhika

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: