============================================================
Linux平台 Oracle? Database 11g Release 2 (11.2.0.2) RAC for RedHat6.1虚拟机实施实录
之
Oracle RAC 11.2.0.2 Grid 安装先决条件检查之ASM checks
2012/4/22 02:13
============================================================
问题描述
在使用vmware虚拟机(7.0)RedHat Linux6.1环境下使用ASM配置Oracle Database 11g release 2 (11.2.0.2 64-bit) RAC 的实施过程中,进行
11.2.0.2 Grid 安装时,到先决条件检查这一步出现几个失败项,本文简要描述Device checks for ASM 失败的的解决办法,如图:
Device Checks for ASM - This is a pre-check to verify if the specified devices meet the requirements for configuration through the Oracle Universal Storage Manager Configuration Assistant.
Operation Failed on Nodes: [rhel6_2, rhel6_1] List of errors:
-
PRVF-7017 :
Package cvuqdisk not installed - Cause: - Action:PRVF-7017 :
Package cvuqdisk not installed - Cause: - Action:
Verification result of failed node: rhel6_2
List of errors:
-
Unable to determine the sharedness of /dev/raw/raw3 on nodes: rhel6_1,rhel6_2 - Cause: Cause Of Problem Not Available - Action: User Action Not Available
-
PRVF-9993 :
Permissions of device "/dev/raw/raw4" did not match the expected permissions. [Expected = "0660"; Found = "{0640=[rhel6_1, rhel6_2]}"] - Cause: Permissions of the device listed was different than the required permissions. - Action: Change the permissions on the device listed or specify a different device.-
PRVF-9993 :
Permissions of device "/dev/raw/raw3" did not match the expected permissions. [Expected = "0660"; Found = "{0640=[rhel6_1, rhel6_2]}"] - Cause: Permissions of the device listed was different than the required permissions. - Action: Change the permissions on the device listed or specify a different device.Back to Top
Verification result of failed node: rhel6_1
List of errors:
-
Unable to determine the sharedness of /dev/raw/raw3 on nodes: rhel6_1,rhel6_2 - Cause: Cause Of Problem Not Available - Action: User Action Not Available
-
PRVF-9993 :
Permissions of device "/dev/raw/raw4" did not match the expected permissions. [Expected = "0660"; Found = "{0640=[rhel6_1, rhel6_2]}"] - Cause: Permissions of the device listed was different than the required permissions. - Action: Change the permissions on the device listed or specify a different device.-
PRVF-9993 :
Permissions of device "/dev/raw/raw3" did not match the expected permissions. [Expected = "0660"; Found = "{0640=[rhel6_1, rhel6_2]}"] - Cause: Permissions of the device listed was different than the required permissions. - Action: Change the permissions on the device listed or specify a different device.Back to Top
解决办法
根据其提示,报错原因一是缺少cvuqdisk包;二是磁盘权限问题,则
1、安装cvuqdisk包,其实cvuqdisk包在grid的安装包里面自带,进入grid软件包目录下的rpm目录即可找到,安装即可
注意:如果报smartctl找不到 ,则需要先安装smartmontools 之后再安装cvuqdisk,smartmontools 包Linux系统光盘自带;
2、修改raw设备挂载权限,根据提示,将权限640修改为660然后重新挂载即可:
[01:52:06root@rhel6_2 rpm]>ls -l /dev/raw*
total 0
crw-r----- 1 ora11 oinstall 162, 1 Apr 22 12:49 raw1
crw-r----- 1 ora11 oinstall 162, 2 Apr 22 12:49 raw2
crw-r----- 1 ora11 oinstall 162, 3 Apr 22 12:49 raw3
crw-r----- 1 ora11 oinstall 162, 4 Apr 22 12:49 raw4
crw-rw---- 1 root disk 162, 0 Apr 22 12:49 rawctl
将以下文件中的640修改为660,然后重新start_udev即可
[01:52:06root@rhel6_2 rpm]>cat /etc/udev/rules.d/60-raw.rules
# This file and interface are deprecated.
# Applications needing raw device access should open regular
# block devices with O_DIRECT.
#
# Enter raw device bindings here.
#
# An example would be:
# ACTION=="add", KERNEL=="sda", RUN+="/bin/raw /dev/raw/raw1 %N"
# to bind /dev/raw/raw1 to /dev/sda, or
# ACTION=="add", ENV{MAJOR}=="8", ENV{MINOR}=="1", RUN+="/bin/raw /dev/raw/raw2 %M %m"
# to bind /dev/raw/raw2 to the device with major 8, minor 1.
ACTION=="add",KERNEL=="sde1",RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add",KERNEL=="sdg1",RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add",KERNEL=="sdh1",RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add",KERNEL=="sdi1",RUN+="/bin/raw /dev/raw/raw4 %N"
KERNEL=="raw[1-4]", OWNER="ora11", GROUP="oinstall", MODE="660"
[01:52:06root@rhel6_2 rpm]>start_udev
Starting udev: [ OK ]
[01:52:06root@rhel6_2 rpm]>ls -l /dev/raw*
total 0
crw-rw---- 1 ora11 oinstall 162, 1 Apr 22 01:22 raw1
crw-rw---- 1 ora11 oinstall 162, 2 Apr 22 01:22 raw2
crw-rw---- 1 ora11 oinstall 162, 3 Apr 22 01:22 raw3
crw-rw---- 1 ora11 oinstall 162, 4 Apr 22 01:22 raw4
crw-rw---- 1 root disk 162, 0 Apr 22 01:22 rawctl
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21162451/viewspace-721948/ ,如需转载,请注明出处,否则将追究法律责任。