Oracle CRS failing to initialize rawdevices in Red Hat Enterprise Linux 5/6

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 5/6
  • Oracle ASM

Issue

  • Not able to add raw devices to CRS/VOTING disk in oracleasm.

    # /etc/init.d/oracleasm createdisk OCR_VOL1 /dev/raw/raw4
    Marking disk "OCR_VOL1" as an ASM disk:            [FAILED]
    
  • asm_disk command is not showing the newly partitioned disk

Resolution

  • Make sure the disk is not mounted or in use.
  • A raw partition can be the entire disk drive or a section of a disk drive. However, the ASM disk cannot be in a partition that includes the partition table because the partition table can be overwritten.
  • Try creating the label again.

Root Cause

  • Basically the label is not created properly, but the metadata still exists on the disk so createdisk will not proceed.
  • Metalink note 820215.1: The disk is in use

Diagnostic Steps

  • I have used the following steps to add/delete disk from ASM:

    # /etc/init.d/oracleasm deletedisk OCR_VOL1 /dev/mapper/oracrs1p2
    Removing ASM disk "OCR_VOL1":                              [  OK  ]
    # /etc/init.d/oracleasm deletedisk OCR_VOL1 /dev/raw/raw4
    Removing ASM disk "OCR_VOL1":                              [  OK  ]
    # /etc/init.d/oracleasm scandisks
    Scanning the system for Oracle ASMLib disks:              [  OK  ]
    #
    # /etc/init.d/oracleasm listdisks
    #
    # /etc/init.d/oracleasm createdisk OCR_VOL1 /dev/raw/raw4
    Marking disk "OCR_VOL1" as an ASM disk:                    [FAILED]
    
  • Component
  • acl

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.