因为oracle 11gr2 asm要求安装grid infra,就下载了asm包
rpm -Uvh oracleasm*之后,创建asm磁盘时报如下错误:
[root@ora11g soft]# oracleasm createdisk data1 /dev/sdc1
Writing disk header: done
Instantiating disk: failed
Clearing disk header: done
原因:oracleasm configure不正确的造成的,除了/etc/init.d/oracleasm之外,还有一个在/usr/sbin/目录下,默认就调用了这个oracleasm,所以执行oracleasm configure没有任何输出反馈。
所以只要调用/etc/init.d/oracleasm就可以了。
[root@ora11g sbin]# /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 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]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
[root@ora11g sbin]# oracleasm createdisk DATADISK1 /dev/sdc1
Writing disk header: done
Instantiating disk: done
阅读(3392) | 评论(1) | 转发(0) |