安装grid时找不到ASM共享磁盘

简介:  解决办法:查看oracleasmlib库文件是否存在[root@t_rac_one:~]# rpm -ql oracleasmlib-2.
  • \
     

    解决办法:

    查看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.el5.x86_64.rpm(注如果你的系统是64位的一定要装64位的rpm)

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

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

     

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

    total 0

    drwxr-x--- 2 root  507 80 2011-06-23 23:26 bin

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

     

    \
     

    重新配置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 <ENTER> 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

     www.it165.net

    \
     

    方法一:

    [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

     

    \
     

    方法二:

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

    Dropping Oracle ASMLib disks:                      www.it165.net                   done

    Shutting down the Oracle ASMLib driver:                               done

    Initializing the Oracle ASMLib driver:                                done

    Scanning the system for Oracle ASMLib disks:                          done

     

    \
     

    运行结果:
     

    \
     

    特别提示:

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

     

    \


目录
相关文章
|
1天前
|
Oracle 关系型数据库
oracle asm 磁盘显示offline
oracle asm 磁盘显示offline
55 2
|
12月前
创建asm disk 磁盘组出错! ORA-15018 And ORA-15107 (Doc ID 2678808.1)
ORA-15018: diskgroup cannot be created ORA-15107: missing or invalid ASM disk name
|
1天前
|
存储 Oracle 关系型数据库
RAC创建ASM磁盘组时配置多路径和UDEV
RAC创建ASM磁盘组时配置多路径和UDEV
137 5
|
1天前
|
文字识别 运维 Oracle
asm 磁盘故障处理日志
asm 磁盘故障处理日志
26 2
|
1天前
|
存储 Oracle 关系型数据库
【数据库数据恢复】Oracle数据库ASM磁盘组掉线的数据恢复案例
oracle数据库ASM磁盘组掉线,ASM实例不能挂载。数据库管理员尝试修复数据库,但是没有成功。
【数据库数据恢复】Oracle数据库ASM磁盘组掉线的数据恢复案例
|
12月前
RAC 增加4块 asm 磁盘
增加磁盘之前的asm状态
|
12月前
|
Oracle 关系型数据库 测试技术
GoldenGate 对asm磁盘的访问的两种方式:asm实例连接和API(dblogreader)两种方式的对比
GoldenGate在抽取数据的时候要读取online redo里的数据,online redo很多时候是储存在asm磁盘里,对asm磁盘的访问有两种方式
110 0
|
12月前
|
监控
监控ASM磁盘IO(iostat)
找到ASM磁盘对应的OS设备
195 0
|
SQL Oracle 关系型数据库
Oracle ASM磁盘和磁盘组的常用SQL语句
Oracle ASM磁盘和磁盘组的常用SQL语句
194 0
|
文字识别 Oracle 关系型数据库
11.2.0.4单实例ASM安装报错ohasd failed to line 73
11.2.0.4单实例ASM安装报错ohasd failed to line 73
133 0