Friday, July 10, 2015

ASM disk creation --device or resource busy

 /etc/init.d/oracleasm createdisk -- Device or resource busy
+++++++++++++++++++++++++++++++++++++++++++++

Hi ,
Some times while creating ASM disks, it will show resource busy.

[Linux01 root]# /etc/init.d/oracleasm configure
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 <ENTER> without typing an
answer will keep that current value.  Ctrl-C will abort.
 Default user to own the driver interface [ grid]: grid
Default group to own the driver interface [oinstall]: asmadmin
Start Oracle ASM library driver on boot (y/n) [y]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver:                    [  OK  ]
Scanning the system for Oracle ASMLib disks:    [  OK  ]
[linux01 root]# /etc/init.d/oracleasm disable
Writing Oracle ASM library driver configuration: done
Dropping Oracle ASMLib disks:                              [  OK  ]
Shutting down the Oracle ASMLib driver:            [  OK  ]
[linux01 root]# /etc/init.d/oracleasm enable
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver:                     [  OK  ]
Scanning the system for Oracle ASMLib disks:     [  OK  ]
 ALL ASM DRIVERS LOOKS FINE.
[linux01 root]# /etc/init.d/oracleasm createdisk DISK1 /dev/sdb1
Marking disk "DISK1" as an ASM disk:                       [FAILED]

Now we can check in below file

[linux01 root]# vi /var/log/oracleasm
xxxxx 
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Unable to open device "/dev/sdb1": Device or resource busy
Unable to open device "/dev/sdb1": Device or resource busy

SOLUTION:

[linux01 root]# /usr/sbin/asmtool -C -l /dev/oracleasm -n DISK1 -s /dev/sdb1 -a force=yes
 [linux01 root]# /etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks:               [  OK  ]      
[linux01 root]# /etc/init.d/oracleasm listdisks
DISK1
[linux01 root]# /usr/sbin/asmtool -C -l /dev/oracleasm -n DISK2 -s /dev/sdc1 -a force=yes
[linux01 root]# /etc/init.d/oracleasm listdisks
DISK1
DISK2

Rest nodes, please scan it

[linux02 root]# /etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks:               [  OK  ]
 [linux02 root]# /etc/init.d/oracleasm listdisks
DISK1
DISK2

any comment, send a mail to enquiry@amktechs.com


Note: For RAC/DG/PT/RMAN/GOldenGate  classes visit www.amktechs.com

3 comments:

  1. by executing the above commands the disk will be created but the thing is after restarting the system the system is not able to boot will get black screen with grub option please help me to solve this thanks in Advance

    ReplyDelete
    Replies
    1. Please share all steps which you implemented and also message logs files

      Delete
  2. Hi This is Ranjeet

    I am getting error "Unable to open device "/dev/data1": Device or resource busy" i tried the steps which you have shared but getting same issue..

    Please help me out...

    ReplyDelete

Share your knowledge it really improves, don't show off...