oracle 11g R2 RAC落设备问题

[复制链接]
查看11 | 回复8 | 2013-12-20 06:00:12 | 显示全部楼层 |阅读模式
最近在搭Oracle 11g R2 RAC,现在卡在创建ASM磁盘组这里。系统上创建了磁盘组,但是Grid安装程序找不到。
[oracle@node2 ~]$ sudo raw -qa
/dev/raw/raw2:bound to major 8, minor 1
[oracle@node2 ~]$ /etc/init.d/oracleasm listdisks
DISK1
系统上能找到,但是安装程序搜不到。更改搜索路径为/dev/raw/*也搜不到。后来ll后发现/dev/raw/raw2所有者为root
[oracle@node2 ~]$ ll /dev/raw
总计 0
crw------- 1 root root 162, 2 12-03 10:13 raw2
[oracle@node2 ~]$ sudo chown -R oracle:dba /dev/raw/raw2
[oracle@node2 ~]$ ll /dev/raw
总计 0
crw------- 1 oracle dba 162, 2 12-03 10:13 raw2
更改为oracle:dba后还是搜不到。。

求教,谢谢~~~~~~~


回复

使用道具 举报

千问 | 2013-12-20 06:00:12 | 显示全部楼层
找到一个可能的原因,网上说可能是asmlib安装不正确,起默认安装目录/opt/oracle下应该有bin目录,但是我这里丢失。
但是重新安装后依然没有bin目录。。
oracleasm-2.6.18-348.el5-2.0.5-1.el5.x86_64.rpm
oracleasmlib-2.0.4-1.el5.x86_64.rpm
oracleasm-support-2.1.8-1.el5.x86_64.rpm
[root@node2 Desktop]# uname -a
Linux node2 2.6.18-348.el5 #1 SMP Tue Jan 8 17:53:53 EST 2013 x86_64 x86_64 x86_64 GNU/Linux

回复

使用道具 举报

千问 | 2013-12-20 06:00:12 | 显示全部楼层
本帖最后由 东东堂 于 2013-12-3 12:43 编辑
用哪个用户安装的grid?
asm_diskstring设置的是多少?
回复

使用道具 举报

千问 | 2013-12-20 06:00:12 | 显示全部楼层
东东堂 发表于 2013-12-3 12:43
用哪个用户安装的grid?
asm_diskstring设置的是多少?

oracle用户安装的。看之前的版本好像都需要grid用户,但是我在11g R2的文档中特一找乐,没有说需要创建oracle之外的用户
回复

使用道具 举报

千问 | 2013-12-20 06:00:12 | 显示全部楼层
本帖最后由 renjixinchina 于 2013-12-3 13:26 编辑
oracle 建议分开用户 没仔细看吧

http://docs.oracle.com/cd/E11882 ... elinux.htm#CWLIN182
If you plan to install Oracle Database or Oracle RAC, then Oracle recommends that you create separate users for the Oracle Grid Infrastructure and the Oracle Database installations. If you use one installation owner, then when you want to perform administration tasks, you must change the value for $ORACLE_HOME to the instance you want to administer (Oracle ASM, in the Oracle Grid Infrastructure home, or the database in the Oracle home), using command syntax such as the following example, where /u01/app/11.2.0/grid is the Oracle Grid Infrastructure home:
回复

使用道具 举报

千问 | 2013-12-20 06:00:12 | 显示全部楼层
renjixinchina 发表于 2013-12-3 13:26
oracle 建议分开用户 没仔细看吧
http://docs.oracle.com/cd/E11882 ... elinux.htm#CWLIN182
If y ...

。。。还真没注意这里 浮躁了。。。谢谢~我重新配置试试。 对了 我现在能找到盘了,原来他挂在了/dev/oracleasm/disks下面,那我需要更改默认的oracleasm的默认user为grid马?目前是oracle。。我装这个头都装晕了。
回复

使用道具 举报

千问 | 2013-12-20 06:00:12 | 显示全部楼层
看来你的设备字符串有问题,请看使用asmlib后,字符串应该使用的格式.
回复

使用道具 举报

千问 | 2013-12-20 06:00:12 | 显示全部楼层
东东堂 发表于 2013-12-3 14:01
看来你的设备字符串有问题,请看使用asmlib后,字符串应该使用的格式.

我后面也怀疑过这个问题,我记得在oracle官网上看到说好像需要用oracle开头还是怎么的,但是在网上搜了很多,他们都没有这个命名问题,所以在安装的时候先按照/dev/oracleasm/disks搜索。。我现在在其他两个节点建立分区,先试试。。。您这个建议记下来了,谢谢前辈~~~
回复

使用道具 举报

千问 | 2013-12-20 06:00:12 | 显示全部楼层
你还是找个好点的安装文档看看在安装把。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行