oracle 共享磁盘目录,在安装grid时找不到ASM共享磁盘

791bec724fc20708062e4bed793a2583.png

解决办法:

查看oracleasmlib库文件是否存在

[root@t_rac_one:~]# rpm -ql oracleasmlib-2.0.4-1.SLE10

/opt/oracle/extapi

/opt/oracle/extapi/64

/opt/oracle/extapi/64/asm

/opt/oracle/extapi/64/asm/orcl

/opt/oracle/extapi/64/asm/orcl/1

/opt/oracle/extapi/64/asm/orcl/1/libasm.so

/usr/sbin/oracleasm-discover

[root@t_rac_one:/]# cd/opt/oracle

[root@t_rac_one:/opt/oracle]# ls

bin

发现这些文件己丢失或被意外删除,因此需要重新安装。

[root@t_rac_one:~]# rpm -qa | grep -i oracleasmlib

oracleasmlib-2.0.4-1.SLE10

[root@t_rac_one:~]# rpm -e oracleasmlib-2.0.4-1.SLE10

清除残留的目录结构

[root@t_rac_one:/opt]# rm -rf oracle/

[root@t_rac_one:~]# rpm -ivh oracleasmlib-2.0.4-1.sle10.x86_64.rpm

Preparing...########################################### [100%]

1:oracleasmlib########################################### [100%]

[root@t_rac_one:/opt/oracle]# ls -l

total 0

drwxr-x--- 2 root507 80 2011-06-23 23:26 bin

drwxr-xr-x 3 root root 72 2011-07-06 04:31 extapi

418b1af0e4849e69da96dfc38b505993.png

重新配置oracleasm,配置完后重启oraclasm或scandisks

[root@t_rac_one:/opt/oracle]# /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 [grid]:

Default group to own the driver interface [asmadmin]:

Start Oracle ASM library driver on boot (y/n) [y]:

Scan for Oracle ASM disks on boot (y/n) [y]:

Writing Oracle ASM library driver configuration: done

Initializing the Oracle ASMLib driver:done

Scanning the system for Oracle ASMLib disks:done

[root@t_rac_one:/opt/oracle]# /etc/init.d/oracleasm enable

Writing Oracle ASM library driver configuration: done

Initializing the Oracle ASMLib driver:done

Scanning the system for Oracle ASMLib disks:done

a796d2c15416b5f2713c332feb738c0d.png

方法一:

[root@t_rac_one:/opt/oracle]# /etc/init.d/oracleasm scandisks

Scanning the system for Oracle ASMLib disks:done

[root@t_rac_one:/opt/oracle]# /etc/init.d/oracleasm listdisks

CRSVOL1

DATAVOL1

FRAVOL1

c9cd7caccd359ef51c2b5db76bc9569f.png

方法二:

[root@t_rac_one:/opt/oracle]# /etc/init.d/oracleasm restart

Dropping Oracle ASMLib disks:done

Shutting down the Oracle ASMLib driver:done

Initializing the Oracle ASMLib driver:done

Scanning the system for Oracle ASMLib disks:done

fe373cd331222e81a19e09069e6f91eb.png

运行结果:

6ea8056893a66e0e3b99dbdc0353daae.png

特别提示:

oracleasmlib默认安装到/opt/oracle目录,请确保该目录访问权限配置正确,且各节点都保持一致,如下:

7cbc1688a6f9c8f796cf21d50af88778.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值