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]#

Similar Messages

  • 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

  • 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

  • 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

  • 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!!

  • 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

  • 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

  • Grid 11.2.0.2  install on OEL 6.3 fails

    Grid Single node (not doing RAC) 11.2.0.2 (latest download available from otn) install fails during ./root.sh execution
    Fails with
    Creating OCR keys for user 'grid', privgrp 'oinstall'..
    Operation successful.
    CRS-4664: Node node1 successfully pinned.
    Adding daemon to inittab
    ohasd failed to start: Inappropriate ioctl for device
    ohasd failed to start: Inappropriate ioctl for device at /ocw/grid/crs/install/roothas.pl line 296.
    Oracle root script execution aborted!
    Perl link is there, there is no privilege issue in the /tmp directories as suggested by MOS ID 1069182.1
    Fresh new install of OEL6.3 UEK, preinstall completed no issues, oracleasm config, createdisk...no issues; however
    running oracleasm update-driver - says there is no driver for kernel 2.6.39-200.24.1.el6uek.x68_64
    I tried the suggestions in one of the threads where a initctl is added to the perl script...that also produced a fail
    Any help...?
    ron.
    Edited by: rmueller on Feb 3, 2013 9:12 PM

    Hi,
    have you tried disabling SE-Linux and the firewall. Just to make sure?
    Also: With the UEK kernel, the asmlib drivers (kernel dependent part) are already included in the kernel (the reason why updatedriver won't work).
    You only need the support and the asmlib rpm.
    Regards
    Sebastian

  • 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

  • Asm createdisk error in root.sh

    I get the following error in root.sh during RAC install
    DiskGroup OCR creation failed with the following message:
    ORA-15018: diskgroup cannot be created
    ORA-15072: command requires at least 1 regular failure groups, discovered only 0
    Configuration of ASM failed, see logs for details
    Did not succssfully configure and start ASM
    CRS-2500: Cannot stop resource 'ora.crsd' as it is not running
    CRS-4000: Command Stop failed, or completed with errors.
    Command return code of 1 (256) from command: /opt/app/11.2.0/grid/bin/crsctl stop resource ora.crsd -init
    Stop of resource "ora.crsd -init" failed
    In /opt/app/11.2.0/grid/cfgtoollogs/crsconfig/rootcrs_gaalt-ota-odc.log ....
    2010-07-02 06:31:21: Successfully created CRS resources for cluster daemon and ASM
    2010-07-02 06:31:21: Checking if initial configuration has been performed
    2010-07-02 06:31:21: Starting CSS in exclusive mode
    2010-07-02 06:31:47: CRS-2672: Attempting to start 'ora.gipcd' on 'gaalt-ota-odc'
    2010-07-02 06:31:47: CRS-2672: Attempting to start 'ora.mdnsd' on 'gaalt-ota-odc'
    2010-07-02 06:31:47: CRS-2676: Start of 'ora.gipcd' on 'gaalt-ota-odc' succeeded
    2010-07-02 06:31:47: CRS-2676: Start of 'ora.mdnsd' on 'gaalt-ota-odc' succeeded
    2010-07-02 06:31:47: CRS-2672: Attempting to start 'ora.gpnpd' on 'gaalt-ota-odc'
    2010-07-02 06:31:47: CRS-2676: Start of 'ora.gpnpd' on 'gaalt-ota-odc' succeeded
    2010-07-02 06:31:47: CRS-2672: Attempting to start 'ora.cssdmonitor' on 'gaalt-ota-odc'
    2010-07-02 06:31:47: CRS-2676: Start of 'ora.cssdmonitor' on 'gaalt-ota-odc' succeeded
    2010-07-02 06:31:47: CRS-2672: Attempting to start 'ora.cssd' on 'gaalt-ota-odc'
    2010-07-02 06:31:47: CRS-2672: Attempting to start 'ora.diskmon' on 'gaalt-ota-odc'
    2010-07-02 06:31:47: CRS-2676: Start of 'ora.diskmon' on 'gaalt-ota-odc' succeeded
    2010-07-02 06:31:47: CRS-2676: Start of 'ora.cssd' on 'gaalt-ota-odc' succeeded
    2010-07-02 06:31:47: Querying for existing CSS voting disks
    2010-07-02 06:31:47: Performing initial configuration for cluster
    2010-07-02 06:31:48: Start of resource "ora.ctssd -init" Succeeded
    2010-07-02 06:31:48: Configuring ASM via ASMCA
    2010-07-02 06:31:48: Executing as grid: /opt/app/11.2.0/grid/bin/asmca -silent -diskGroupName OCR -diskList ORCL:OCR -redundancy EXTERNAL -configureLocalASM
    2010-07-02 06:31:48: Running as user grid: /opt/app/11.2.0/grid/bin/asmca -silent -diskGroupName OCR -diskList ORCL:OCR -redundancy EXTERNAL -configureLocalASM
    2010-07-02 06:31:48: Invoking "/opt/app/11.2.0/grid/bin/asmca -silent -diskGroupName OCR -diskList ORCL:OCR -redundancy EXTERNAL -configureLocalASM" as user "grid"
    2010-07-02 06:31:56: Configuration of ASM failed, see logs for details
    2010-07-02 06:31:56: Did not succssfully configure and start ASM
    2010-07-02 06:31:56: Exiting exclusive mode
    2010-07-02 06:31:57: Command return code of 1 (256) from command: /opt/app/11.2.0/grid/bin/crsctl stop resource ora.crsd -init
    2010-07-02 06:31:57: Stop of resource "ora.crsd -init" failed
    2010-07-02 06:31:57: Failed to stop CRSD
    2010-07-02 06:32:32: Initial cluster configuration failed. See /opt/app/11.2.0/grid/cfgtoollogs/crsconfig/rootcrs_gaalt-ota-odc.log for details
    [root@GAALT-OTA-ODC oracledisks]#
    So I tried the command manually , first I started CSS in exclusive mode and then ran the command from the logs above.....
    crsctl start resource ora.cssd -init -env CSSD_MODE=-X
    Then....
    [grid@GAALT-OTA-ODC ~]$ /opt/app/11.2.0/grid/bin/asmca -silent -diskGroupName OCR -diskList ORCL:OCR -redundancy EXTERNAL -configureLocalASM
    Error...
    DiskGroup OCR creation failed with the following message:
    ORA-15018: diskgroup cannot be created
    ORA-15072: command requires at least 1 regular failure groups, discovered only 0
    I think the issue lies somewhere in my oracleasm OCR disk creation step. The create command during root.sh works when I delete the disk and use oracleasm to recreate it locally . But then the create fails on the other node. In other words the node that uses oracleasm scandisks to pick up OCR will always fail with the error above
    In other words, if I run "/usr/sbin/oracleasm createdisk OCR /dev/asm/OCR " on node1, root.sh wll fail with the above error on node2. Even though scandisks detects the OCR on node2
    If I run this command on node2 first, root.sh will fail on node1 . Even though scandisks detects the OCR on node1
    This is a nightmare would appreciate some advice on diagnosing where the problem is with my configuration of ASM before I roll back the root.sh again !
    Thanks

    Thanks Sebastian
    I tried this but I also needed to recreate the OCR disk as root.sh throws an error that it is already created, so i ran a dd on the device , then deleted OCR using oraclasm
    Then I tried to recreate on first node and got
    /usr/sbin/oracleasm createdisk OCR /dev/mapper/mpath3
    Unable to open device "/dev/mapper/mpath3": Device or resource busy
    Tried it on other node and it worked
    I rolled back root.sh and then ran it again and it thows the following error
    DiskGroup OCR creation failed with the following message:
    ORA-15018: diskgroup cannot be created
    ORA-15017: diskgroup "OCR" cannot be mounted
    ORA-15003: diskgroup "OCR" already mounted in another lock name space
    I decided to reboot the machines to get around the busy device. Once rebooted I was able to run oracleasm createdisk without any errors. root.sh also did not throw errors but I am not 100% confident that the root.sh was ok on the second node. Anyway I have lost my install GUI during reboot so could not complete the install anyway
    So now I will deinstall everything and start again , and I will update the forum to if there was no issue and problem resolved
    Thanks a lot for the pointers and your time

  • ASM Disk creation failed

    Dear Team,
                             I am using OEL 6.0 32 bit in Virtual Machine.I have installed all ASMlib rpm whatever required & SELINUX also DISABLE.But when I am trying to create ASM disk its giving below error.Please help me How can overcome this issue.
    [root@rac1 ~]# oracleasm createdisk ASM01 /dev/sdb1
    Writing disk header: done
    Instantiating disk: failed
    Clearing disk header: done
    [root@rac1 ~]#
    Regards,
    Praveen

    Did you configure the ASM lib ?
    /etc/init.d/oracleasm configure
    [root@node2 ~]# /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
    Scan for Oracle ASM disks on boot (y/n) [y]:
    Writing Oracle ASM library driver configuration: done
    Initializing the Oracle ASMLib driver:                     [  OK  ]
    Scanning the system for Oracle ASMLib disks:               [  OK  ]
    [root@node2 ~]# /usr/sbin/oracleasm createdisk DISK101 /dev/sdc1
    Writing disk header: done
    Instantiating disk: done

  • ASM creation problem Initializing the Oracle ASMLib driver:  failed

    hi
    oel 5.6 64bit
    db 11gR2 64bit
    [root@rac-1 ASM]# rpm -qa | grep ora
    oracleasm-2.6.18-164.el5xen-2.0.5-1.el5
    libtheora-1.0alpha7-1
    oracleasm-2.6.18-164.el5debug-2.0.5-1.el5
    oracleasm-2.6.18-164.el5-2.0.5-1.el5
    oracle-logos-4.9.17-10
    oracle-validated-1.1.0-7.el5
    oraclelinux-release-5-6.0.1
    oracleasm-support-2.1.4-1.el5
    [root@rac-1 ASM]# rpm -qa | grep asm
    nasm-0.98.39-3.2.2
    oracleasm-2.6.18-164.el5xen-2.0.5-1.el5
    oracleasm-2.6.18-164.el5debug-2.0.5-1.el5
    oracleasm-2.6.18-164.el5-2.0.5-1.el5
    oracleasm-support-2.1.4-1.el5
    [root@rac-1 ASM]#
    [root@rac-1 ASM]# oracleasm configure
    ORACLEASM_ENABLED=true
    ORACLEASM_UID=oracle
    ORACLEASM_GID=asmadmin
    ORACLEASM_SCANBOOT=true
    ORACLEASM_SCANORDER=""
    ORACLEASM_SCANEXCLUDE=""
    [root@rac-1 ASM]# service oracleasm restart
    Dropping Oracle ASMLib disks:                              [  OK  ]
    Shutting down the Oracle ASMLib driver:                    [  OK  ]
    Initializing the Oracle ASMLib driver:                     [FAILED]
    [root@rac-1 ASM]#can anyone help??

    hi
    just another confirmation i need :
    i have some raw devices using /etc/rawdevices file and losetup to /dev/loop(n); can you say what are the udev rules to set so that all the permission and loop(n) devices come up before ASMLib driver initialization ?? eg.
    http://www.idevelopment.info/data/Oracle/DBA_tips/Automatic_Storage_Management/ASM_20.shtml
    [root@rac-1 ~]# oracleasm listdisks
    VOL1
    [root@rac-1 ~]# oracleasm createdisk VOL2 /dev/loop1
    Unable to access device "/dev/loop1"
    [root@rac-1 ~]# losetup /dev/loop1 /oracle_ASM_SWAP/ASM/ASM_FILE1
    [root@rac-1 ~]# oracleasm createdisk VOL2 /dev/loop1
    Writing disk header: done
    Instantiating disk: done
    [root@rac-1 ~]# losetup /dev/loop2 /oracle_ASM_SWAP/ASM/ASM_FILE2
    [root@rac-1 ~]# oracleasm createdisk VOL3 /dev/loop3
    Unable to access device "/dev/loop3"
    [root@rac-1 ~]# oracleasm createdisk VOL3 /dev/loop2
    Writing disk header: done
    Instantiating disk: done
    [root@rac-1 ~]# losetup /dev/loop3 /oracle_ASM_SWAP/ASM/ASM_FILE3
    [root@rac-1 ~]# oracleasm createdisk VOL4 /dev/loop3
    Writing disk header: done
    Instantiating disk: done
    [root@rac-1 ~]# losetup /dev/loop4 /oracle_ASM_SWAP/ASM/ASM_FILE4
    [root@rac-1 ~]# oracleasm createdisk VOL5 /dev/loop5
    Unable to access device "/dev/loop5"
    [root@rac-1 ~]# oracleasm createdisk VOL5 /dev/loop4
    Writing disk header: done
    Instantiating disk: done
    [root@rac-1 ~]# losetup /dev/loop5 /oracle_ASM_SWAP/ASM/ASM_FILE5
    [root@rac-1 ~]# oracleasm createdisk VOL6 /dev/loop5
    Writing disk header: done
    Instantiating disk: done
    [root@rac-1 ~]# oracleasm listdisks
    VOL1
    VOL2
    VOL3
    VOL4
    VOL5
    VOL6
    [root@rac-1 ~]#http://admindba.com/forum.php?gcm=2&grid=115612
    assigning to /etc/rc.local making the disk available only VOL1 not others.
    can i still use ADVM ??
    [oracle@rac-1 dbs]$ . ~/.orcl_ASM.profile
    [oracle@rac-1 dbs]$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 4 11:34:51 2011
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> !
    [oracle@rac-1 dbs]$ ls
    hc_orcl.dat   init.ora      lkORCL     spfileorcl.ora
    init+ASM.ora  initorcl.ora  orapworcl
    [oracle@rac-1 dbs]$ exit
    SQL> startup
    ORA-01078: failure in processing system parameters
    ORA-29701: unable to connect to Cluster Synchronization Service
    SQL> startup pfile='/oracle_db/oracle/product/11.2.0/dbhome_1/dbs/init+ASM.ora';
    ORA-29701: unable to connect to Cluster Synchronization Service
    ORA-01078: failure in processing system parameters
    SQL> Disconnected
    [oracle@rac-1 dbs]$ cd /oracle_db/oracle/product/11.2.0/dbhome_1/bin/l
    lbuilder      ldapcompare   ldapsearch    loadpsp       lxchknlb
    lcsscan       ldapdelete    ldifmigrator  loadpspO      lxegen
    ldapadd       ldapmoddn     linkshlib     lsnodes       lxinst
    ldapaddmt     ldapmodify    lmsgen        lsnrctl
    ldapbind      ldapmodifymt  loadjava      lsnrctl0
    [oracle@rac-1 dbs]$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 4 11:47:18 2011
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> create spfile from pfile='/oracle_db/oracle/product/11.2.0/dbhome_1/dbs/init+ASM.ora';
    File created.
    SQL> startup
    ORA-29701: unable to connect to Cluster Synchronization Service
    SQL> Disconnected
    [oracle@rac-1 dbs]$ vi .orcl_ASM.profile
    [oracle@rac-1 dbs]$ vi .orcl_ASM.profile
    [oracle@rac-1 dbs]$ . .orcl_ASM.profile
    [oracle@rac-1 dbs]$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 4 11:50:29 2011
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup mount
    ORA-29701: unable to connect to Cluster Synchronization Service
    SQL> Disconnected
    [oracle@rac-1 dbs]$ ls
    hc_orcl.dat   init.ora      lkORCL     spfile+ASM.ora
    init+ASM.ora  initorcl.ora  orapworcl  spfileorcl.ora
    [oracle@rac-1 dbs]$ vi init+ASM.ora
    [oracle@rac-1 dbs]$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 4 11:51:25 2011
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL>  create spfile from pfile='/oracle_db/oracle/product/11.2.0/dbhome_1/dbs/init+ASM.ora';
    File created.
    SQL> startup mount
    ORA-29701: unable to connect to Cluster Synchronization Service
    SQL>how to get rid of ORA-29071 for this new ASM instance creation??
    http://www.oracledba.org/10g/asm/asm_install.html
    this is 10g related.
    kind regards

  • Bit locker drive encryption failed due to power failer and hard disk corrupted

    I ran Bitlocker drive ecryption drive D. My pc is windows 7 ultimate, while it was in progress of 1% due to power failer the encryption failed, when power resume the drive didn't showed the file format nor the size but it shows the size in disk management.
    It showed like this in My computer
    I do Have the recovery code password and back of recovery password so I ran the "manage-bde-_unlock D:-rp[my code ]
    and my pc got hang  no other option rather than to press the restart button. 
    then I used commang "repair-bde -force D:I:-rp[my rp] and following info showed but it stucked in 1% about 8 hours, and there was no increase in the pecentage
    I also connected the hardisk to mac but all othe partation showed but didn't showed the encrypted one.
    I had lots of memorable picture and other backups so any one kindly help me to get out of this problem. Thanks for help

    Hi,
    The BitLocker encryption and decryption processes can be interrupted by turning the computer off, and it will resume where it left off the next time Windows starts. This is true even if the power is suddenly unavailable.
    Bitlocker-repair (repair-bde)  tool
    can't repair a drive that failed during the encryption or decryption process.
    In addition, could you please explain a bit for what drive you are trying to deal with? external one?
    When you first restart your PC, have you seen any signs that indicate that the encryption is in process?
    Regarding your scenario, please take a look to see if the following articles could help here:
    Scenario 11: Recovering Data Protected by BitLocker Drive Encryption (Windows 7)
    Besides, when running manage-bde command, did we followed the steps mentioned in the below article?
    Scenario 14: Using a Data Recovery Agent to Recover BitLocker-Protected Drives (Windows 7)
    Best regards
    Michael Shao
    TechNet Community Support

Maybe you are looking for