Mani's Blog

October 10, 2012

Oracle ASM disk creation failed. Marking disk “%s” as an ASM disk: [FAILED]

Filed under: ASM,Database,Oracle — mani @ 10:21 pm

We have a RAC database, we are converting to Non-RAC (Stand-alone) DB, and also need to migrate data off SAN storage.  I ran into this error while I am creating ASM disk ( after adding 2 new local disks).

Here is the error I ran into.

# /etc/init.d/oracleasm createdisk asm_ssd1 /dev/sdz1
Marking disk “asm_ssd1” as an ASM disk:                    [FAILED]

As soon the disk has been added to system, is configured via multipath and created device under /dev/mapper.  As I don’t want to use via multipath device, so what I did was.

1. Grabbed device id by ls -lrt /dev/disk/by-id

2. Added this device id in backlist block of /etc/multipath.conf file

devnode_blacklist {
wwid 3600508e000000000d02538430ed9c60b
wwid 35000c5003192cd97
wwid 35000c500333728e3
devnode “^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*”
devnode “^hd[a-z]”
devnode “^cciss!c[0-9]d[0-9]*”
}

3. run /etc/init.d/multipathd restart

Now I am able to create ASM disk properly.

# /etc/init.d/oracleasm createdisk asm_ssd1 /dev/sdz1
Marking disk “asm_ssd1” as an ASM disk:                    [  OK  ]
# /etc/init.d/oracleasm createdisk asm_ssd2 /dev/sdaa1
Marking disk “asm_ssd2” as an ASM disk:                    [  OK  ]

Now I can see newly added disks.
# /etc/init.d/oracleasm listdisks
ASM_DATA01
ASM_DATA02
ASM_REDO01
ASM_SSD1
ASM_SSD2

Advertisements

Blog at WordPress.com.