Thursday, July 20, 2023

ORACLEASM: Instantiating disk: failed

 

ORACLEASM: Instantiating disk: failed

Check the ASM Driver configuration

 

[root@vm224 ~]# oracleasm configure

ORACLEASM_ENABLED=true

ORACLEASM_UID=oracle

ORACLEASM_GID=oinstall

ORACLEASM_SCANBOOT=true

ORACLEASM_SCANORDER=""

ORACLEASM_SCANEXCLUDE=""

ORACLEASM_USE_LOGICAL_BLOCK_SIZE="false"

[root@vm224 ~]#

 

If its new disk then clear the header,

 

[root@vm224 ~]#

[root@vm224 ~]# dd if=/dev/zero of=/dev/sdb1 bs=8192 count=12800

12800+0 records in

12800+0 records out

104857600 bytes (105 MB) copied, 2.05425 s, 51.0 MB/s

 Note: it will lose the disk data.  If its existing disk then use below approach

 

[root@vm224 ~]# which oracleasm

/usr/sbin/oracleasm

 

[root@vm224 ~]# oracleasm createdisk ASMDISK_01 /dev/sdb1

Writing disk header: done

Instantiating disk: failed

Clearing disk header: done

 Enable and disable the Oracle ASMLib driver

 Disabling :

 

[root@vm224 ~]# /etc/init.d/oracleasm disable

Writing Oracle ASM library driver configuration: done

Dropping Oracle ASMLib disks:                              [  OK  ]

Shutting down the Oracle ASMLib driver:                    [  OK  ]

 

Enabling :

 

[root@vm224 ~]# /etc/init.d/oracleasm enable

Writing Oracle ASM library driver configuration: done

Initializing the Oracle ASMLib driver:                     [  OK  ]

Scanning the system for Oracle ASMLib disks:               [  OK  ]

 Try recreating ASM Disks


[root@vm224 ~]# oracleasm createdisk ASMDISK_01 /dev/sdb1

Writing disk header: done

Instantiating disk: done

 Scan the ASM disks

 

[root@vm224 ~]# oracleasm listdisks

ASMDISK_01

  

[root@vm224 ~]# oracleasm scandisks

Reloading disk partitions: done

Cleaning any stale ASM disks...

Scanning system for ASM disks...

No comments:

Post a Comment