1、asmlib创建ASM磁盘错误
# /etc/init.d/oracleasm createdisk VOL1 /dev/sdc3
Marking disk "VOL1" as an ASM disk: [FAILED]
2、查看错误日志
# less /var/log/oracleasm
Disk "VOL1" does not exist or is not instantiated
Writing disk header: done
Instantiating disk: oracleasm-instantiate-disk: Unable to open manager: No such file or directory
failed
Clearing disk header: done
怀疑没有configure和enable
# /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]:
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Dropping Oracle ASMLib disks: [ OK ]
Shutting down the Oracle ASMLib driver: [ OK ]
# /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 ]
可以正常创建asm磁盘了
# /etc/init.d/oracleasm createdisk VOL1 /dev/sdc3
Marking disk "VOL1" as an ASM disk: [ OK ]
[root@rac2 local]# /etc/init.d/oracleasm enable
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [FAILED]
查看/var/log/oracleasm信息
Loading module "oracleasm": failed
Unable to load module "oracleasm"
发现是Oracleasm和操作系统版本不一致导致,重装asm rpm包可解决。
如有错误,欢迎指正