您的位置:首页 > 其它

asmca无法创建ASM磁盘

2015-09-10 16:22 369 查看

现象

grid用户使用asmca无法创建asm磁盘,如下图





分析

如图所示,报错说是 Grid Infrastructure 出了问题。那么 Grid Infrastructure 是什么 ?

在安装 Grid 时,会执行一个脚本 /u01/app/11.2.0/grid/root.sh ,该脚本执行内容如下

Performing root user operation for Oracle 11g

The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME=  /u01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node data successfully pinned.
Adding Clusterware entries to upstart

data     2015/09/10 16:06:10     /u01/app/11.2.0/grid/cdata/data/backup_20150910_160610.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server


注意最后一句,Grid Infrastructure 配置成功。该脚本所配置的内容就是 Grid Infrastructure 。该部分出问题时,该脚本都会给出提示,比如,

如果“Adding Clusterware entries to upstart”没有启动成功,那么脚本就会给出以下提示

To configure Grid Infrastructure for a Stand-Alone Server run the following command as the root user:

/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl

To configure Grid Infrastructure for a Cluster execute the following command:

/u01/app/11.2.0/grid/crs/config/config.sh

This command launches the Grid Infrastructure Configuration Wizard. The wizard also supports silent operation, and the parameters can be passed through the response file that is available in the installation media.


意思是如果安装步骤没有问题,只是启动由于某种原因没有成功时,

单机可以执行 /u01/app/11.2.0/grid/crs/install/roothas.pl

集群可以执行 /u01/app/11.2.0/grid/crs/config/config.sh

以启动服务

解决方法

1. 检查确认安装过程是否正确

2. 检查集群服务是否正常启动,如果没有

单机执行 /u01/app/11.2.0/grid/crs/install/roothas.pl

集群执行 /u01/app/11.2.0/grid/crs/config/config.sh

以启动服务
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: