asmca无法创建ASM磁盘

本文详细解析了 Oracle Grid Infrastructure 的配置过程及常见故障处理方法,包括安装脚本执行流程、配置成功标志、故障排查步骤以及启动服务的命令。通过分析脚本输出,了解如何判断配置是否成功,并在遇到启动失败时,通过执行特定命令来启动服务。
摘要由CSDN通过智能技术生成

现象

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

clipboard

 

分析

如图所示,报错说是 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

    以启动服务

转载于:https://www.cnblogs.com/perfei/p/4798286.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值