Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

asmca did not recognize disks; Plz help me

orawissDec 6 2010 — edited Dec 7 2010
Hello,

I am following Tim article to install Oracle RAC 11gR2 in VirtualBox,

So :

- Oracle version 11gR2 (RAC)
- OS : Oracle Enterprise Linux
- 2 Nodes (orac1 and orac2)

All steps went well, no errors, no warnings , nothing wrong appeared, until I get an error in the database configuration step (In the installation of the database).

The Oracle Database configuration Assistant failed with this error :

Could not find ASM configured under /u01/app/11.2.0/grid. Use ASMCA to configure ASM

With Oracle system user , I run ASMCA to comfigure ASM, but the problem that ASM did not recognize my disks: means when using ASMCA , and when I want to create the disk group, the disks are not visible , I have also tried to enter the disrectoiry path (/dev) but, disks still not recognized....
5 disks should be recognize by ASMCA ; /dev/sdb1, /dev/sdc1, /dev/sdd1, /dev/sde1, /dev/sdf1
on orac1 (node1)

[oracle@orac1 ~]$ ls -l /dev/oracleasm/disks/
total 0
brw-rw---- 1 oracle dba 8, 17 Dec  6 19:45 DISK1
brw-rw---- 1 oracle dba 8, 33 Dec  6 19:44 DISK2
brw-rw---- 1 oracle dba 8, 49 Dec  6 19:43 DISK3
brw-rw---- 1 oracle dba 8, 65 Dec  6 19:43 DISK4
brw-rw---- 1 oracle dba 8, 81 Dec  6 19:45 DISK5
[oracle@orac1 ~]$ /usr/sbin/oracleasm listdisks
DISK1
DISK2
DISK3
DISK4
DISK5
[oracle@orac1 ~]$ /usr/sbin/oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[oracle@orac1 ~]$ ls -ld /dev/sd*
brw-r----- 1 root   disk     8,  0 Dec  6 19:36 /dev/sda
brw-r----- 1 root   disk     8,  1 Dec  6 19:38 /dev/sda1
brw-r----- 1 root   disk     8,  2 Dec  6 19:36 /dev/sda2
brw-r----- 1 root   disk     8, 16 Dec  6 19:36 /dev/sdb
brwxrwxrwx 1 oracle oinstall 8, 17 Dec  6 19:39 /dev/sdb1
brw-r----- 1 root   disk     8, 32 Dec  6 19:36 /dev/sdc
brwxrwxrwx 1 oracle oinstall 8, 33 Dec  6 19:39 /dev/sdc1
brw-r----- 1 root   disk     8, 48 Dec  6 19:36 /dev/sdd
brwxrwxrwx 1 oracle oinstall 8, 49 Dec  6 19:39 /dev/sdd1
brw-r----- 1 root   disk     8, 64 Dec  6 19:36 /dev/sde
brwxrwxrwx 1 oracle oinstall 8, 65 Dec  6 19:39 /dev/sde1
brw-r----- 1 root   disk     8, 80 Dec  6 19:36 /dev/sdf
brwxrwxrwx 1 oracle oinstall 8, 81 Dec  6 19:39 /dev/sdf1
[oracle@orac1 ~]$ 

On orac2 (node 2)

[oracle@orac2 ~]$ ls -l /dev/oracleasm/disks/
total 0
brw-rw---- 1 oracle dba 8, 17 Dec  6 19:49 DISK1
brw-rw---- 1 oracle dba 8, 33 Dec  6 19:39 DISK2
brw-rw---- 1 oracle dba 8, 49 Dec  6 19:39 DISK3
brw-rw---- 1 oracle dba 8, 65 Dec  6 19:39 DISK4
brw-rw---- 1 oracle dba 8, 81 Dec  6 19:39 DISK5
[oracle@orac2 ~]$ /usr/sbin/oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[oracle@orac2 ~]$ /usr/sbin/oracleasm listdisks
DISK1
DISK2
DISK3
DISK4
DISK5
[oracle@orac2 ~]$ ls -ld /dev/sd*
brw-r----- 1 root   disk     8,  0 Dec  6 19:36 /dev/sda
brw-r----- 1 root   disk     8,  1 Dec  6 19:38 /dev/sda1
brw-r----- 1 root   disk     8,  2 Dec  6 19:36 /dev/sda2
brw-r----- 1 root   disk     8, 16 Dec  6 19:36 /dev/sdb
brwxrwxrwx 1 oracle oinstall 8, 17 Dec  6 19:39 /dev/sdb1
brw-r----- 1 root   disk     8, 32 Dec  6 19:36 /dev/sdc
brwxrwxrwx 1 oracle oinstall 8, 33 Dec  6 19:39 /dev/sdc1
brw-r----- 1 root   disk     8, 48 Dec  6 19:36 /dev/sdd
brwxrwxrwx 1 oracle oinstall 8, 49 Dec  6 19:39 /dev/sdd1
brw-r----- 1 root   disk     8, 64 Dec  6 19:36 /dev/sde
brwxrwxrwx 1 oracle oinstall 8, 65 Dec  6 19:39 /dev/sde1
brw-r----- 1 root   disk     8, 80 Dec  6 19:36 /dev/sdf
brwxrwxrwx 1 oracle oinstall 8, 81 Dec  6 19:39 /dev/sdf1
[oracle@orac2 ~]$ 
I have used the following steps mentioned in Tim 's article : http://www.oracle-base.com/articles/11g/OracleDB11gR2RACInstallationOnOEL5UsingVirtualBox.php

Extract from Tim 's article :
Start the "rac1" virtual machine by clicking the "Start" button on the toolbar. When the server has started, log in as the root user so you can configure the shared disks. The current disks can be seen by issuing the following commands.

    # cd /dev
    # ls sd*
    sda  sda1  sda2  sdb  sdc  sdd  sde  sdf
    #

Use the "fdisk" command to partition the disks sdb to sdf. The following output shows the expected fdisk output for the sdb disk.

    # fdisk /dev/sdb
    Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
    Building a new DOS disklabel. Changes will remain in memory only,
    until you decide to write them. After that, of course, the previous
    content won't be recoverable.


    The number of cylinders for this disk is set to 1305.
    There is nothing wrong with that, but this is larger than 1024,
    and could in certain setups cause problems with:
    1) software that runs at boot time (e.g., old versions of LILO)
    2) booting and partitioning software from other OSs
       (e.g., DOS FDISK, OS/2 FDISK)
    Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

    Command (m for help): n
    Command action
       e   extended
       p   primary partition (1-4)
    p
    Partition number (1-4): 1
    First cylinder (1-1305, default 1):
    Using default value 1
    Last cylinder or +size or +sizeM or +sizeK (1-1305, default 1305):
    Using default value 1305

    Command (m for help): p

    Disk /dev/sdb: 10.7 GB, 10737418240 bytes
    255 heads, 63 sectors/track, 1305 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1        1305    10482381   83  Linux

    Command (m for help): w
    The partition table has been altered!

    Calling ioctl() to re-read partition table.
    Syncing disks.
    #

In each case, the sequence of answers is "n", "p", "1", "Return", "Return", "p" and "w".

Once all the disks are partitioned, the results can be seen by repeating the previous "ls" command.

    # cd /dev
    # ls sd*
    sda  sda1  sda2  sdb  sdb1  sdc  sdc1  sdd  sdd1  sde  sde1  sdf  sdf1
    #

Determine your current kernel.

    uname -rm
    2.6.18-164.el5 x86_64
    #

Download the appropriate ASMLib RPMs from OTN. In this case we installed the last two from the media, so we just need the first package. For RHEL we would need all three of the following:

    * oracleasmlib-2.0.4-1.el5.x86_64.rpm
    * oracleasm-support-2.1.3-1.el5.x86_64.rpm
    * oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpm

Install the packages using the following command.

    rpm -Uvh oracleasm*.rpm

Configure ASMLib using the following command.

    # 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 <ENTER> without typing an
    answer will keep that current value.  Ctrl-C will abort.

    Default user to own the driver interface []: oracle
    Default group to own the driver interface []: dba
    Start Oracle ASM library driver on boot (y/n) [n]: y
    Scan for Oracle ASM disks on boot (y/n) [y]: 
    Writing Oracle ASM library driver configuration: done
    #

Load the kernel module using the following command.

    # /usr/sbin/oracleasm init
    Loading module "oracleasm": oracleasm
    Mounting ASMlib driver filesystem: /dev/oracleasm
    # 

If you have any problems, run the following command to make sure you have the correct version of the driver.

    # /usr/sbin/oracleasm update-driver

Mark the five shared disks as follows.

    # /usr/sbin/oracleasm createdisk DISK1 /dev/sdb1
    Writing disk header: done
    Instantiating disk: done
    # /usr/sbin/oracleasm createdisk DISK2 /dev/sdc1
    Writing disk header: done
    Instantiating disk: done
    # /usr/sbin/oracleasm createdisk DISK3 /dev/sdd1
    Writing disk header: done
    Instantiating disk: done
    # /usr/sbin/oracleasm createdisk DISK4 /dev/sde1
    Writing disk header: done
    Instantiating disk: done
    # /usr/sbin/oracleasm createdisk DISK5 /dev/sdf1
    Writing disk header: done
    Instantiating disk: done
    # 

It is unnecessary, but we can run the "scandisks" command to refresh the ASM disk configuration.

    # /usr/sbin/oracleasm scandisks
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    #

We can see the disk are now visible to ASM using the "listdisks" command.

    # /usr/sbin/oracleasm listdisks
    DISK1
    DISK2
    DISK3
    DISK4
    DISK5
    #

The shared disks are now configured for the grid infrastructure.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 4 2011
Added on Dec 6 2010
40 comments
5,872 views