Oracleasm createdisk failed

I am using 11.2.0.1.0 on RHEL5. There is a database that is running on ASM. Database is properly working. Now I want to create additional asm disks . And, for I have configured new loop back devices. oracelasm craetedisk comamnd fails by saying:
[oracle@host1 ~]$ oracleasm createdisk ASMDISK08 /dev/xvd8
Writing disk header: done
Instantiating disk: failed
Clearing disk header: done
[root@host1 ~]# ls -l /dev/xvd*
lrwxrwxrwx 1 root root 10 Oct 25 15:38 /dev/xvd1 -> /dev/loop1
lrwxrwxrwx 1 root root 11 Oct 25 15:38 /dev/xvd10 -> /dev/loop10
lrwxrwxrwx 1 root root 11 Oct 25 15:38 /dev/xvd11 -> /dev/loop11
lrwxrwxrwx 1 root root 11 Oct 25 15:38 /dev/xvd12 -> /dev/loop12
lrwxrwxrwx 1 root root 11 Oct 25 15:38 /dev/xvd13 -> /dev/loop13
lrwxrwxrwx 1 root root 10 Oct 25 15:38 /dev/xvd2 -> /dev/loop2
lrwxrwxrwx 1 root root 10 Oct 25 15:38 /dev/xvd3 -> /dev/loop3
lrwxrwxrwx 1 root root 10 Oct 25 15:38 /dev/xvd4 -> /dev/loop4
lrwxrwxrwx 1 root root 10 Oct 25 15:38 /dev/xvd5 -> /dev/loop5
lrwxrwxrwx 1 root root 10 Oct 25 15:38 /dev/xvd6 -> /dev/loop6
lrwxrwxrwx 1 root root 10 Oct 25 15:38 /dev/xvd7 -> /dev/loop7
lrwxrwxrwx 1 root root 10 Oct 25 15:38 /dev/xvd8 -> /dev/loop8
lrwxrwxrwx 1 root root 10 Oct 25 15:38 /dev/xvd9 -> /dev/loop9
[root@host1 ~]# ls -l /dev/loop[1-9]
brw-rw-rw- 1 oracle oinstall 7, 1 Oct 25 15:37 /dev/loop1
brw-rw-rw- 1 oracle oinstall 7, 2 Oct 25 15:37 /dev/loop2
brw-rw-rw- 1 oracle oinstall 7, 3 Oct 25 15:37 /dev/loop3
brw-rw-rw- 1 oracle oinstall 7, 4 Oct 25 15:37 /dev/loop4
brw-rw-rw- 1 oracle oinstall 7, 5 Oct 25 15:37 /dev/loop5
brw-rw-rw- 1 oracle oinstall 7, 6 Oct 25 15:37 /dev/loop6
brw-rw-rw- 1 oracle oinstall 7, 7 Oct 25 15:37 /dev/loop7
brw-rw-rw- 1 oracle oinstall 7, 8 Oct 25 15:38 /dev/loop8
brw-rw-rw- 1 oracle oinstall 7, 9 Oct 25 15:38 /dev/loop9
[root@host1 ~]# getenforce
Disabled
SQL> startup
ASM instance started
Total System Global Area 284565504 bytes
Fixed Size 1336036 bytes
Variable Size 258063644 bytes
ASM Cache 25165824 bytes
ASM diskgroups mounted
ASM diskgroups volume enabled
Any idea? where is the issue?
Thanks and regards

duplicate post
oracleasm createdisk failed
Edited by: rcc50886 on Oct 29, 2012 11:39 AM

Similar Messages

  • Oracleasm createdisk fails

    Hi All,
    I'm trying to create asm disk.
    This is my device (750GB) fdisk configuration before i format it using mkfs.ocfs2
    [root@linux02 ~]# fdisk -l /dev/sdb1
    Disk /dev/sdb1: 750.1 GB, 750153729024 bytes
    255 heads, 63 sectors/track, 91200 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/sdb1p1 1 123 987966 83 Linux
    /dev/sdb1p2 124 6203 48837600 83 Linux
    /dev/sdb1p3 6204 12283 48837600 83 Linux
    /dev/sdb1p4 12284 24442 97667167+ 83 Linux
    When i come to create an ASM partition on /dev/sdb1p2 it gives me the foolowing error
    [root@linux01 ~]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1
    Marking disk "/dev/sdb1" as an ASM disk: asmtool: Unable to clear device "/dev/sdb1": Input/output error
    FAILED]
    When i tried to create an asm disk on the whole disk it gives me
    [root@linux02 ~]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1
    Marking disk "/dev/sdb1" as an ASM disk: asmtool: Unable to clear device "/dev/sdb1": Input/output error
    FAILED]
    What should i do?!!
    Please Help me Guys.

    Hi,
    I tried to do on p1 partition but it also did not work. orcfs2 was running so it was locking the partition (i figure it out). I made stop for ocfs2 then created the disk using oraclasm on sdb1 and it did not work on sdb1px (I don't know why!!!).
    Now if i go to fdisk -l /dev/sdb1 it does not recognize the partition table.
    [root@linux01 /]# fdisk -l
    Disk /dev/sda: 80.0 GB, 80032038912 bytes
    255 heads, 63 sectors/track, 9730 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 13 104391 83 Linux
    /dev/sda2 14 9730 78051802+ 8e Linux LVM
    Disk /dev/sdb: 750.1 GB, 750156374016 bytes
    255 heads, 63 sectors/track, 91201 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/sdb1 1 91201 732572001 83 Linux
    but when i execute this:
    [root@linux01 /]# fdisk -l /dev/sdb1
    Disk /dev/sdb1: 750.1 GB, 750153729024 bytes
    255 heads, 63 sectors/track, 91200 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk /dev/sdb1 doesn't contain a valid partition table
    What is missing here?!!!

  • /etc/init.d/oracleasm createdisk FAILED

    Hi DBAs,
    We got this error when creating asm disk using /etc/init.d/oracleasm create disk. The disks are HDS and EMC Powerpath. Any advices are greatly appreciated.
    Below are the steps we've done:
    [root@host1]# /etc/init.d/oracleasm createdisk ocrdisk1 /dev/raw/raw1
    Marking disk "ocrdisk1" as an ASM disk: [FAILED]
    cat /etc/sysconfig/rawdevices
    # raw device bindings
    # format: <rawdev> <major> <minor>
    # <rawdev> <blockdev>
    # example: /dev/raw/raw1 /dev/sda1
    # /dev/raw/raw2 8 5
    /dev/raw/raw1 /dev/emcpowerb
    [root@host1]# /sbin/service rawdevices restart
    Assigning devices:
    /dev/raw/raw1 --> /dev/emcpowerz
    /dev/raw/raw1: bound to major 120, minor 16
    done
    [root@host1]# set -o vi
    [root@host1]# /etc/init.d/oracleasm createdisk ocrdisk1 /dev/raw/raw1
    Marking disk "ocrdisk1" as an ASM disk: [FAILED]

    Thanks for sharing the solution ..
    Please mark the thread as answered.
    Regards
    Rajesh

  • Installing ASM on linux : /etc/init.d/oracleasm createdisk VOL1 [failed]

    Hi all,
    Oracle unbreakable linux
    oracle 10.2.0.1
    I got this error while mark ing the disks for use by ASMLib
    /etc/init.d/oracleasm createdisk VOL1 [failed]
    I already performed the steps mentioned below
    uname -rm
    Ex:
    # uname -rm
    2.6.9-22.ELsmp i686
    The example shows that this is a 2.6.9-22 kernel for an SMP (multiprocessor) box using Intel i686 CPUs.
    Use this information to find the correct ASMLib packages on OTN:
    1. Point your Web browser to http://www.oracle.com/technology/tech/linux/asmlib/index.html
    2. Select the link for your version of Linux.
    3. Download the oracleasmlib and oracleasm-support packages for your version of Linux
    4. Download the oracleasm package corresponding to your kernel. In the example above, the oracleasm-2.6.9-22.ELsmp-2.0.0-1.i686.rpm package was used.
    Next, install the packages by executing the following command as root:
    rpm -Uvh oracleasm-kernel_version-asmlib_version.cpu_type.rpm \
    oracleasmlib-asmlib_version.cpu_type.rpm \
    oracleasm-support-asmlib_version.cpu_type.rpm
    Ex:
    # rpm -Uvh \
    > oracleasm-2.6.9-22.ELsmp-2.0.0-1.i686.rpm \
    > oracleasmlib-2.0.1-1.i386.rpm \
    > oracleasm-support-2.0.1-1.i386.rpm
    Preparing... ########################################### [100%]
    1:oracleasm-support ########################################### [ 33%]
    2:oracleasm-2.6.9-22.ELsm########################################### [ 67%]
    3:oracleasmlib ########################################### [100%]
    Configuring ASMLib
    Before using ASMLib, you must run a configuration script to prepare the driver. Run the following command as root, and answer the prompts as shown in the example below.
    # /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 []: oracle
    Default group to own the driver interface []: dba
    Start Oracle ASM library driver on boot (y/n) [n]: y
    Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
    Writing Oracle ASM library driver configuration: [  OK  ]
    Creating /dev/oracleasm mount point: [  OK  ]
    Loading module "oracleasm": [  OK  ]
    Mounting ASMlib driver filesystem: [  OK  ]
    Scanning system for ASM disks: [  OK  ]
    but when i tried this
    /etc/init.d/oracleasm createdisk VOL1 /dev/sda2
    Marking disk "/dev/sda2" as an ASM disk: [  Failed]
    i got this error
    Please give me the solution,
    Thanks

    I have found this on /var/log/oracleasm
    Creating /dev/oracleasm mount point: /dev/oracleasm
    Loading module "oracleasm": oracleasm
    Mounting ASMlib driver filesystem: /dev/oracleasm
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    Unable to open device "/dev/sda2": Device or resource busy
    Unable to open device "/dev/sda1": Device or resource busy
    Unable to open device "/dev/sda": Device or resource busy
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    Unable to open device "/dev/sda2": Device or resource busy
    Unable to open device "/dev/sda1": Device or resource busy
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    Unable to open device "/dev/sda2": Device or resource busy
    Unable to open device "/dev/sda2": Device or resource busy
    Unable to open device "/dev/sda2": Device or resource busy
    Creating /dev/oracleasm mount point: /dev/oracleasm
    Loading module "oracleasm": oracleasm
    Mounting ASMlib driver filesystem: /dev/oracleasm
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    Unable to open device "/dev/sda2": Device or resource busy
    Unable to open device "/dev/sda1": Device or resource busy
    Unable to open device "/dev/sda": Device or resource busy
    Unable to open device "/dev/sda1": Device or resource busy
    Unable to open device "/dev/sda2": Device or resource busy
    Unable to open device "/dev/sda2": Device or resource busy
    Unable to query file "/dev/sda2p1": No such file or directory
    Unable to open device "/dev/sda1": Device or resource busy
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    Unable to open device "/dev/sda2": Device or resource busy
    Unable to open device "/dev/sda1": Device or resource busy
    Unable to open device "/dev/sda": Device or resource busy
    Unable to query file "/dev/sdap1": No such file or directory
    Disk "VOL1" does not exist or is not instantiated
    Unable to query file "/dev/sdap1": No such file or directory
    Unable to query file "/dev/sda2p1": No such file or directory
    Unable to query file "/dev/sdap1": No such file or directory
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-0": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    oracleasm-read-label: Unable to open device "/dev/dm-1": No such file or directory
    Unable to query file "/dev/sda2p2": No such file or directory
    Unable to query file "/dev/sda2p2": No such file or directory
    Unable to query file "/dev/sda2p3": No such file or directory
    Unable to query file "/dev/sda2p4": No such file or directory
    Unable to query file "/dev/sda2p2": No such file or directory
    Unable to query file "/dev/sda2p3": No such file or directory
    Unable to query file "/dev/sda2p4": No such file or directory
    Unable to open device "/dev/sda3": Device or resource busy

  • Createdisk Fails

    [root@rac1 etc]# /sbin/sfdisk -s
    /dev/sda: 20971520
    /dev/sdb: 524288
    /dev/sdc: 3145728
    /dev/sdd: 3145728
    /dev/sde: 2097152
    [root@rac1 etc]#
    [root@rac1 etc]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdc1
    Marking disk "/dev/sdc1" as an ASM disk: Error opening manager: No such device or address
    [FAILED]
    [root@rac1 etc]#

    user551201 wrote:
    [root@rac1 etc]# /sbin/sfdisk -s
    /dev/sda: 20971520
    /dev/sdb: 524288
    /dev/sdc: 3145728
    /dev/sdd: 3145728
    /dev/sde: 2097152i dont see /dev/sdc1 here which you tryied to configure below.
    [root@rac1 etc]#
    [root@rac1 etc]# oracleasm createdisk
    Marking disk "/dev/sdc1" as an ASM disk: Error opening manager: No such device or addressit seems that you are specifying partition that dont exists.
    [FAILED]
    [root@rac1 etc]#

  • Oracleasm Createdisk error

    Hello ,
    I have just been trying to label oracle disk.
    here is the error I get .
    [db]# oracleasm createdisk DNAT01 /dev/sddc1
    Unable to open device "/dev/sddc": Device or resource busy
    I have already tried the solutions that were listed for this problem, but no success.
    SELINUX is already disabled.
    here is some additional info ...
    [db]# oracleasm querydisk /dev/sddc1
    Device "/dev/sddc1" is not marked as an ASM disk
    [db]# oracleasm status
    Checking if ASM is loaded: yes
    Checking if /dev/oracleasm is mounted: yes
    [db]# oracleasm configure
    ORACLEASM_ENABLED=true
    ORACLEASM_UID=oracle
    ORACLEASM_GID=dba
    ORACLEASM_SCANBOOT=true
    ORACLEASM_SCANORDER=""
    ORACLEASM_SCANEXCLUDE=""
    Can someone help he find the solution to this problem? . highly appreciate.
    Linux version is 5.3 .. running oracle 11g R2
    Thanks
    Saad
    Edited by: Saad on Sep 18, 2011 12:45 AM

    This is the metalink note, 1303976.1, I was talking about. This is another way to prove that device is busy, which we have already proved that device is busy (means used by one thing or another). Once you get mkfs working then creatdisk should work with no errors.
    You can double, check that LVM, mount, RAID, MP, or similar thing is not already accessing the disk in question. For MP, you can shutdown another node, pull the cable from 2nd HBA/port and try it again. Due to limited access to your environment and due to lack of any logs, I think the options are just hit and trial and find out what is using that device. There are specific steps to implement mp, and please make sure no other VM or RAID is causing this issue.
    Thanks,
    Rohit Chandok
    http://www.rohitchandok.com

  • Oracleasm createdisk just like pvcreate by LVM?

    Hello
    so before I create ASM diskgroup I need to oracleasm createdisk frist.
    So,Does it like "pvcreate" on LVM ?

    Hi,
    What is your OS?
    The command is for example /etc/init.d/oracleasm createdisk ASMDATA /dev/sdc1, this command will mark partition /dev/sdc1 as an ASM Disk
    Cheers

  • Oracleasm enable failed

    oracle10G RAC is installed on centos5.5.the nodes all is normal. but db2 was abnormal after db2 rebooted.
    db1:crs_stat -t
    Name Type Target State Host
    ora....E1.inst application ONLINE ONLINE db1
    ora....E2.inst application ONLINE OFFLINE
    ora....TEDB.db application ONLINE ONLINE db1
    ora....SM1.asm application ONLINE ONLINE db1
    ora....B1.lsnr application ONLINE ONLINE db1
    ora.db1.gsd application ONLINE ONLINE db1
    ora.db1.ons application ONLINE ONLINE db1
    ora.db1.vip application ONLINE ONLINE db1
    ora....SM2.asm application ONLINE OFFLINE
    ora....B2.lsnr application ONLINE OFFLINE
    ora.db2.gsd application ONLINE OFFLINE
    ora.db2.ons application ONLINE OFFLINE
    ora.db2.vip application ONLINE ONLINE db1
    tail -50 /var/log/oracleasm and show messages:
    Scanning system for ASM disks...
    Disk "VOL1" does not exist or is not instantiated
    Instantiating disk "VOL1"
    oracleasm-instantiate-disk: Unable to open manager: No such device or address
    Unable to instantiate disk "VOL1"
    Disk "VOL2" does not exist or is not instantiated
    Instantiating disk "VOL2"
    Loading module "oracleasm": failed
    db2:crs_stat -t and showmessages:
    Name Type Target State Host
    ora....E1.inst application ONLINE ONLINE db1
    ora....E2.inst application ONLINE OFFLINE db2
    ora....TEDB.db application ONLINE ONLINE db1
    ora....SM1.asm application ONLINE ONLINE db1
    ora....B1.lsnr application ONLINE ONLINE db1
    ora.db1.gsd application ONLINE ONLINE db1
    ora.db1.ons application ONLINE ONLINE db1
    ora.db1.vip application ONLINE ONLINE db1
    ora....SM2.asm application ONLINE ONLINE db2
    ora....B2.lsnr application ONLINE ONLINE db2
    ora.db2.gsd application ONLINE ONLINE db2
    ora.db2.ons application ONLINE ONLINE db2
    ora.db2.vip application ONLINE ONLINE db1
    but /etc/init.d/oracleasm listdisks and show nothing.
    /etc/init.d/oracleasm enable and show messages:Initializing the Oracle ASMLib driver: [FAILED]
    start instance db2 and show messages:
    PRKP-1001:Error starting instance db2 on node gdb2
    CRS-0215:could not start resource 'ora.db.db2.inst'
    [root@DB2 ~]# ls -l /dev/raw
    total 0
    crw-r--r-- 1 oracle oinstall 162, 1 Oct 14 22:29 raw1
    crw-r--r-- 1 oracle oinstall 162, 2 Oct 14 22:29 raw2
    crw-r--r-- 1 oracle oinstall 162, 3 Oct 14 22:29 raw3
    Can anyone point me in the right direction.
    Any help would be greatly appreciated.
    Edited by: 868121 on 2011-10-14 下午5:50

    how u resolved it. can u please eloborate ? i am facing the same problem for instance on node1 on sun solaris having 10grac.
    thanks in advance

  • Oracleasm lib failed to load with "Invalid module format" error

    Hi,
    I'm tring to install the oracleasm lib onto our hardened Redhat EL5 server
    I've download the oracleasm rpm from this page http://www.oracle.com/technology/software/tech/linux/asmlib/rhel5.html.
    We're using Redhat 5 U 2
    [root@PG673 modules]# uname -rm
    2.6.18-92.el5 x86_64
    [root@PG673 modules]#
    The package I downloaded is an exact match with our kernel version
    [root@PG673 modules]# rpm -qa | grep asm
    oracleasm-2.6.18-92.el5-2.0.5-1.el5
    oracleasm-support-2.1.3-1.el5
    oracleasm-support-2.1.3-1.el5
    oracleasm-2.6.18-92.el5-2.0.5-1.el5
    oracleasmlib-2.0.4-1.el5
    oracleasmlib-2.0.4-1.el5
    [root@PG673 modules]#
    RPM installation went well, but when we run the /etc/init.d/oracleasm configure command, we hit the following error
    [root@PG673 other]# /etc/init.d/oracleasm configure
    /etc/init.d/oracleasm: line 207: /usr/sbin/oracleasm: cannot execute binary file
    Later we found out that the oracleasm module haven't been loaded, so we try to load it manually, but we hit the "Invalid module format" error.
    [root@PG673 modules]# modprobe -l | grep asm
    /lib/modules/2.6.18-92.el5/kernel/drivers/addon/oracleasm/oracleasm.ko
    [root@PG673 modules]# modprobe oracleasm
    FATAL: Error inserting oracleasm (/lib/modules/2.6.18-92.el5/kernel/drivers/addon/oracleasm/oracleasm.ko): Invalid module format
    [root@PG673 modules]#
    As I know this error could happen if the driver version is not match with the system kernel version.
    The problem is we're already using an exact match version of driver with our system, I can't think of what to do next in order to proceed the installation.
    Really appreciate if someone could point me a direction.
    Thanks
    Mike

    Hi Mike,
    something looks a bit strange for me. On my OEL 5.4 x64 system i have just the following 3 packages:
    $ rpm -qa | grep asm
    oracleasm-2.6.18-164.el5-2.0.5-1.el5
    oracleasm-support-2.1.3-1.el5
    oracleasmlib-2.0.4-1.el5 Your packages should be I think the following:
    http://oss.oracle.com/projects/oracleasm-support/dist/files/RPMS/rhel5/amd64/2.1.3/oracleasm-support-2.1.3-1.el5.x86_64.rpm
    http://otn.oracle.com/software/tech/linux/asmlib/files/RPMS/rhel5/amd64/2.0.4/oracleasmlib-2.0.4-1.el5.x86_64.rpm
    http://oss.oracle.com/projects/oracleasm/dist/files/RPMS/rhel5/amd64/2.0.5/2.6.18-92.el5/oracleasm-2.6.18-92.el5-2.0.5-1.el5.x86_64.rpm
    Uninstall all asm packages and retry with just those three.
    Good luck!
    Cheers,
    David
    OCP 9i / 10g
    http://www.oratoolkit.ch/knowledge/howto/installation/otn.php

  • Oracleasm disk problem

    Installing:
    oracleasm-2.6.5-7.191-bigsmp-2.0.3-1
    oracleasm-support-2.0.3-1
    oracleasmlib-2.0.2-1
    -> oracleasm configure
    Node1:
    oracleasm scandisks:
    -> lists no disks
    oracleasm createdisk VOL1 /dev/sda3:
    -> Device "/dev/sda3" is already labeled for ASM disk "" failed
    oracleasm createdisk: failed because the the disk seems to have no name
    Background:
    -> sw-upgrade 2-node RAC 10.1.0.4 -> 10.2.0.1 -> Patch 10.2.0.3 (CRS / ASM / DB_1)
    Check:
    /opt/oracle/product/10g/network/admin # /etc/init.d/oracleasm status
    Checking if ASM is loaded: running
    Checking if /dev/oracleasm is mounted: running
    How do I get the existing devices to be recognized as disks?
    Hope for any advice

    Hi Folks,
    I have fixed this issue by formatting partition :)
    1. use fdisk to drop any partitions on the disk
    2. create primary partition
    3. format newly created partition
    e.x.: mkfs.ext3 /dev/sdd1
    4. create oracleasm disk.
    Cheers!!

  • ASMlib cannot write disk label using EMC Powerpath to disk

    We installed ASMlib on OEL5 (64-bit) update 1. We configured successfully. When we are cerating the disk label using EMC powerpath to disk, oracleasm createdisk command gives an error:
    Device "/dev/emcpowerb1" is not a partition
    If we access the device directly without multipathing (like /dev/sdd1), it works successfully. Is this a pwoerpath bug or are we doing something wrong?

    Researched this a little deeper. Another Metalink Note:469163.1 "Oracleasm Createdisk Fails: Device '/dev/emcpoweraxx Is Not A Partition [Failed]" provides a different workaround to this situation:
    1. Do the "/etc/init.d/oracleasm createdisk" operation using the "asmtool" command directly:
    /usr/sbin/asmtool -C -l /dev/oracleasm -n <volume name> -s /dev/<emc device> -a force=yes
    The tool will report:
    asmtool: Device "/dev/<emc device>" is not a partition
    asmtool: Continuing anyway
    2. The permissions of the volume under /dev/oracleasm/disks/ will be "root: root"
    Reboot the system to correct this.
    3. Further use of the device can now be done normally using the powerpath device name
    You may prefer this approach.
    Cheers

  • Oracle Linux 6.2 with RAC 11g cluster install fails on root.sh ioctl

    I have 2 HP Servers I'm trying to install a cluster to.
    I've tried Oracle Linux 6.2 and 6.3 with the same error on both nodes when running the root.sh script.
    I have tried the permissions, run-levels, etc that I have found in the forum and nothing has worked except the deconfigure works great. /u01/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -force
    root.sh Errors:
    Adding daemon to inittab
    CRS-4124: Oracle High Availability Services startup failed.
    CRS-4000: Command Start failed, or completed with errors.
    ohasd failed to start: Inappropriate ioctl for device
    ohasd failed to start at /u01/app/11.2.0/grid/crs/install/rootcrs.pl line 443.
    I can't see whats wrong, I did use ASM to configure iSCSI disks from a storage device which appeared to work correctly:
    # oracleasm listdisks
    VOL1
    VOL2
    VOL3
    VOL5
    # ls /dev/oracleasm/disks/
    VOL1 VOL2 VOL3 VOL5
    When I created the disks with ASM I used multipath successfuly:
    # oracleasm createdisk VOL1 /dev/mapper/23535333762373932
    The other node can see the disks just fine with oracleasm listdisks
    I chose 3 disks for the OCR - VOL1-3
    There was one forum work around to edit the $GRID_HOME/crs/install/s_crsconfig_lib.pm which I did no Oracle Linux 6.3 to no avail. I also tried using NFS mounted volumes for the OCR drives but got the same error.
    Using the install: linux.x64_11gR2_grid

    oracleasm (aka asmlib) may not be supported on RHEL(OEL) 6.x. You do NOT need asmlib and it's days are numbered.
    upon review of this document, even though it was for 10g, it still appears to be relevant
    "10g: Using Openfiler iSCSI with an Oracle RAC database on Linux [ID 371434.1]"
    and
    udev utility can be used for disk mounting consistency between the nodes. It is the preferred tool. Note:371814.1 explains how to use the udev option.
    and
    Can't install GI 11gr2 (11.2.0.3) root.sh fail
    Edited by: onedbguru on Dec 13, 2012 3:40 PM

  • ASM CREATE DISK FAILED

    i am getting this error while trying to create disk
    [root@dbanew sysconfig]# /etc/init.d/oracleasm createdisk VOL1 /dev/sda3
    Marking disk "/dev/sda3" as an ASM disk: asmtool: Unable to clear device "/dev/sda3": Input/output error
    [FAILED]
    [root@dbanew sysconfig]#
    could any please look into this and help me

    try to clear the disk with the command:
    dd if=/dev/zero of=/dev/sda3 bs=4096 count=10000
    and after that do your createdisk. perhaps there are some infos in the diskheader that prevents
    asmlib from doing its work.

  • ASM DG creation fails on sles11_x86_64 with 11gR1

    Hi,
    I have sles11x86_64 installed and using Veritas Volume manager raw disks for ASM but ASM dg creation fails with error mentioned below;
    ls /dev/vx/rdsk/asmdg/asmvol
    /dev/vx/rdsk/asmdg/asmvol
    test:~ # ls -l /dev/vx/rdsk/asmdg/asmvol
    crw-rw---- 1 oracle oinstall 199, 65533 Feb 26 12:08 /dev/vx/rdsk/asmdg/asmvol
    test:~ # su - oracle
    oracle@test:~> bash
    oracle@test:~> export ORACLE_SID=+ASM
    oracle@test:~> export ORACLE_HOME=/oracle/orabin/product/11.1.0/db_1
    oracle@test:~> cd /oracle/orabin/product/11.1.0/db_1/bin
    cat /etc/oratab
    # This file is used by ORACLE utilities. It is created by root.sh
    # and updated by the Database Configuration Assistant when creating
    # a database.
    # A colon, ':', is used as the field terminator. A new line terminates
    # the entry. Lines beginning with a pound sign, '#', are comments.
    # Entries are of the form:
    # $ORACLE_SID:$ORACLE_HOME:<N|Y>:
    # The first and second fields are the system identifier and home
    # directory of the database respectively. The third filed indicates
    # to the dbstart utility that the database should , "Y", or should not,
    # "N", be brought up at system boot time.
    # Multiple entries with the same $ORACLE_SID are not allowed.
    +ASM:/oracle/orabin/product/11.1.0/db_1:N
    test./sqlplus /nolog
    SQL*Plus: Release 11.1.0.6.0 - Production on Fri Feb 26 12:25:32 2010
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SQL> connect /as sysdba
    Connected.
    SQL> select name from v$asm_diskgroup;
    no rows selected
    SQL> select path from v$asm_disk;
    PATH
    /dev/vx/rdsk/asmdg/asmvol
    SQL> create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol';
    create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol'
    ERROR at line 1:
    ORA-15018: diskgroup cannot be created
    ORA-15201: disk /dev/vx/rdsk/asmdg/asmvol contains a valid RDBMS file
    SQL> select name from v$asm_diskgroup;
    no rows selected
    SQL> create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol' -f;
    create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol' -f
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    SQL> create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol' force;
    create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol' force
    ERROR at line 1:
    ORA-15018: diskgroup cannot be created
    ORA-15080: synchronous I/O operation to a disk failed
    ORA-15080: synchronous I/O operation to a disk failed
    ORA-15080: synchronous I/O operation to a disk failed
    ORA-15080: synchronous I/O operation to a disk failed
    SQL> create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol';
    create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol'
    ERROR at line 1:
    ORA-15018: diskgroup cannot be created
    ORA-15201: disk /dev/vx/rdsk/asmdg/asmvol contains a valid RDBMS file
    SQL> create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol' force;
    create diskgroup asm_dg external redundancy disk '/dev/vx/rdsk/asmdg/asmvol' force
    ERROR at line 1:
    ORA-15018: diskgroup cannot be created
    ORA-15080: synchronous I/O operation to a disk failed
    ORA-15080: synchronous I/O operation to a disk failed
    ORA-15080: synchronous I/O operation to a disk failed
    ORA-15080: synchronous I/O operation to a disk failed
    SQL>
    can some body help on this.
    Also wanted to know the background process during ASM creation.
    ~Dhananjay
    Edited by: user9075978 on Feb 26, 2010 4:18 AM

    Force the partition table on the second node to be reread
    # partprobe
    Initialize all shared disks on one node (execute as user root)
    dd if=/dev/zero of=/dev/sdc1 bs=1M count=10
    dd if=/dev/zero of=/dev/sdc2 bs=1M count=10
    dd if=/dev/zero of=/dev/sdc3 bs=1M count=10
    dd if=/dev/zero of=/dev/sdc4 bs=1M count=10
    dd if=/dev/zero of=/dev/sdd1 bs=1M count=10
    dd if=/dev/zero of=/dev/sdd2 bs=1M count=10
    dd if=/dev/zero of=/dev/sdd3 bs=1M count=10
    dd if=/dev/zero of=/dev/sdd4 bs=1M count=10
    dd if=/dev/zero of=/dev/sde1 bs=1M count=10
    dd if=/dev/zero of=/dev/sde2 bs=1M count=10
    dd if=/dev/zero of=/dev/sde3 bs=1M count=10
    dd if=/dev/zero of=/dev/sde4 bs=1M count=10
    dd if=/dev/zero of=/dev/sdf3 bs=1M count=10
    dd if=/dev/zero of=/dev/sdf4 bs=1M count=10
    Install ASM lib (execute as user root) on all cluster nodes
         rpm -i /ptc/oms/asmlib/*
    Configure ASM lib (set driver owner to oracle and group to dba) on all cluster nodes
    /etc/init.d/oracleasm configure
    Label ASM lib disks on one node (execute as user root)
    /etc/init.d/oracleasm createdisk data01 /dev/sdc3
    /etc/init.d/oracleasm createdisk data02 /dev/sdc4
    /etc/init.d/oracleasm createdisk flash01 /dev/sdd3
    /etc/init.d/oracleasm createdisk flash02 /dev/sdd4
    /etc/init.d/oracleasm createdisk flash03 /dev/sde3
    /etc/init.d/oracleasm createdisk flash04 /dev/sde4
    /etc/init.d/oracleasm createdisk flash05 /dev/sdf3
    /etc/init.d/oracleasm createdisk flash06 /dev/sdf4
    Scan and list the disks on the other node (execute as user root)
    /etc/init.d/oracleasm scandisks
    /etc/init.d/oracleasm listdisks
    Set up udev to configure block device permissions (as user root)
    vi /etc/udev/permissions.d/49-oracle.permissions
    sdc1:root:oinstall:0640
    sdd1:root:oinstall:0640
    # Voting
    sdc2:crs:oinstall:0640
    sdd2:crs:oinstall:0640
    sde2:crs:oinstall:0640
    # ASM spfile
    sde1:asm:oinstall:0640
    # ASM devices
    sdc3:asm:oinstall:0640
    sdc4:asm:oinstall:0640
    sdd3:asm:oinstall:0640
    sdd4:asm:oinstall:0640
    sde3:asm:oinstall:0640
    sde4:asm:oinstall:0640
    sdf3:asm:oinstall:0640
    sdf4:asm:oinstall:0640
    Restart the udev service (execute as user root)
    /sbin/udevstart

  • Oracleasm-support-2.1.5-1.el6.x86_64 doesnt work on OL 6.0 UEK

    ASMlib keeps return "Instantiating disk: failed" while trying to create ASM disks. It happens on both Clariion and Symmetrix devices.
    [root@sgelxha198 ~]# uname -a
    Linux sgelxha198 2.6.32-100.28.5.el6.x86_64 #1 SMP Wed Feb 2 18:40:23 EST 2011
    x86_64 x86_64 x86_64 GNU/Linux
    [root@sgelxha198 ~]# cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 6.0 (Santiago)
    [root@sgelxha198 ~]# rpm -aq |grep oracleasm
    oracleasm-support-2.1.5-1.el6.x86_64
    [root@sgelxha198 ~]# syminq |grep mpath
    /dev/mapper/mpatha DGC RAID 5 0531 160018CC 5242880
    /dev/mapper/mpathb DGC RAID 3 0531 170018CD 5242880
    /dev/mapper/mpathc DGC RAID 1 0531 180018CE 5242880
    /dev/mapper/mpathd DGC RAID 10 0531 190018CF 5242880
    /dev/mapper/mpathe DGC VRAID 0531 1A4CE9B7 104857600
    /dev/mapper/mpathf DGC VRAID 0531 1B4CE9B7 104857600
    /dev/mapper/mpathah EMC SYMMETRIX 5875 1600050000 N/A
    /dev/mapper/mpathai EMC SYMMETRIX 5875 1600E44000 5280000
    /dev/mapper/mpathaj EMC SYMMETRIX 5875 1600E45000 5280000
    /dev/mapper/mpathak EMC SYMMETRIX 5875 1600E46000 5280000
    /dev/mapper/mpathal EMC SYMMETRIX 5875 1600E47000 5280000
    /dev/mapper/mpatham EMC SYMMETRIX 5875 1600E48000 5280000
    [root@sgelxha198 ~]# ls -l /dev/mapper/*p1
    lrwxrwxrwx. 1 root root 8 Feb 9 03:13
    /dev/mapper/360060160f6102900507cc7b2c3f5df11p1 -> ../dm-16
    lrwxrwxrwx. 1 root root 8 Feb 9 03:30 /dev/mapper/mpathahp1 -> ../dm-18
    lrwxrwxrwx. 1 root root 8 Feb 9 03:30 /dev/mapper/mpathaip1 -> ../dm-23
    lrwxrwxrwx. 1 root root 8 Feb 9 03:30 /dev/mapper/mpathajp1 -> ../dm-24
    lrwxrwxrwx. 1 root root 8 Feb 9 03:30 /dev/mapper/mpathakp1 -> ../dm-25
    lrwxrwxrwx. 1 root root 8 Feb 9 03:30 /dev/mapper/mpathalp1 -> ../dm-26
    lrwxrwxrwx. 1 root root 8 Feb 9 03:30 /dev/mapper/mpathamp1 -> ../dm-27
    lrwxrwxrwx. 1 root root 7 Feb 9 03:30 /dev/mapper/mpathap1 -> ../dm-8
    lrwxrwxrwx. 1 root root 7 Feb 9 03:30 /dev/mapper/mpathbp1 -> ../dm-9
    lrwxrwxrwx. 1 root root 8 Feb 9 03:30 /dev/mapper/mpathcp1 -> ../dm-10
    lrwxrwxrwx. 1 root root 8 Feb 9 03:30 /dev/mapper/mpathdp1 -> ../dm-12
    lrwxrwxrwx. 1 root root 8 Feb 9 03:30 /dev/mapper/mpathep1 -> ../dm-11
    lrwxrwxrwx. 1 root root 8 Feb 9 03:30 /dev/mapper/mpathfp1 -> ../dm-13
    [root@sgelxha198 log]# oracleasm status
    Checking if ASM is loaded: yes
    Checking if /dev/oracleasm is mounted: yes
    [root@sgelxha198 log]#
    [root@sgelxha198 ~]# oracleasm createdisk cxdisk /dev/mapper/mpathap1
    Writing disk header: done
    Instantiating disk: failed
    Clearing disk header: done
    [root@sgelxha198 ~]# oracleasm createdisk vmaxdisk /dev/mapper/mpathaip1
    Writing disk header: done
    Instantiating disk: failed
    Clearing disk header: done
    mpatha (360060160f6102900505745e1c3f5df11) dm-3 DGC,RAID 5
    size=5.0G features='0' hwhandler='1 alua' wp=rw
    |-+- policy='round-robin 0' prio=50 status=active
    | `- 3:0:0:1 sdj 8:144 active ready running
    `-+- policy='round-robin 0' prio=10 status=enabled
    `- 2:0:0:1 sdb 8:16 active ready running
    [root@sgelxha198 ~]# multipath -ll mpathai
    mpathai (360000970000192602316533030453434) dm-17 EMC,SYMMETRIX
    size=5.0G features='0' hwhandler='0' wp=rw
    `-+- policy='round-robin 0' prio=1 status=active
    |- 2:0:1:1 sdr 65:16 active ready running
    `- 3:0:1:1 sdq 65:0 active ready running

    According to http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html No ASMLIB driver package needs to be installed when using this kernel. Moreover doing a search on ASM related rpm in ULN, I can only get what's shown here:
    [root@sgelxha198 ~]# yum search oracleasm
    Loaded plugins: refresh-packagekit, rhnplugin
    ======================================================== Matched: oracleasm ========================================================
    oracleasm-support.x86_64 : The Oracle Automatic Storage Management support programs.
    I even uninstalled oracleasm-support-2.1.5-1.el6.x86_64 and reinstalled with earlier version (oracleasmlib-2.0.4-1.el5.x86_64.rpm & oracleasm-support-2.1.3-1.el5.x86_64.rpm), but I still get the same result.
    I suspect that the integrated ASMLIB driver doesnt work well.

Maybe you are looking for

  • PR First release by initiator

    PR First release by initiator Using standard <u><b>PR overall release</b></u> Who ever having authorization for PR creation that person will create PR as well as will release it first. If initiator is not released it within 3 days then initiator's su

  • Windows Vista boot-time reads of iTunes media

    I sure hope someone here know SOMETHING about why this happening. I have a few movies in my iTunes library. I never watch them within iTunes, instead I always sync them to my iPod touch to watch them. However, a short time ago, I accidentally double-

  • Apple TV 2.0 Podcast Automatic Download

    Has anyone found away to automatically download the latest versions of selected PodCasts? I'd like to stop syncing my podcasts from my iTunes PC and just use the Apple TV to manage my video podcasts. Apple, PLEASE add this feature to the next version

  • Automatic clearing of 2 accounts

    Hi, is it possible to automatically clear (for ex. in f.13) docs posted on 2 different GL accounts. For ex. we have docs posted on accounts 1001 and 1003, and we want to clear they automatically by WBS el. Any ideas? Best regards.

  • Help me Invoke the Enter Button Action when Node is Editable State

    I want to invoke an Action on press of the Enter Button when the Node is in Editable Mode. Currently in the below code, The message "Ï am here" gets printed on selecting a node and cliking the 'Enter' Key. I want the same message action to be invoked