zoukankan      html  css  js  c++  java
  • 如何诊断ASMLIB故障

    虽然我并不推荐你使用ASMLIB绑定设备名, 详见这篇文章《Why ASMLIB and why not?》 。  但大概因为介绍ASMLIB的文章远多于UDEV的缘故, 导致有大量对RAC安装配置不太熟悉的朋友仍执意采用ASMLIB,又因为ASMLIB的配置不算太简单所以在实际安装RAC之前的ASMLIB实施过程中有不少人遇到了问题, 其次在ASMLIB的使用过程中麻烦也不少。 这里总结了一下ASMLIB的诊断思路, 如下脚本:  
    cat /etc/sysconfig/oracleasm
    
    
    1) uname -a
    2) rpm -qa | grep ^oracleasm
    3) rpm -V oracleasmlib
    4) multipath -ll
    
    1) output of command line
    
    # rpm -V oracleasm-support
    
    # /etc/init.d/oracleasm scandisks
    
    # /etc/init.d/oracleasm listdisks
    
    # ls -l -R /dev/oracleasm/
    
    # ls -l /etc/sysconfig/oracleasm
    
    # cat /etc/sysconfig/oracleasm
    
    # mount
    
    2) oracleasm log file
    
    /var/log/oracleasm
    
    3) sosreport
    
    By default the "sos" package should be installed into EL4u6 or later.
    (If not, please download the sos package from ULN https://linux.oracle.com)
    
    You just need type command "sosreport" as root user, and press "Enter" or "yes" for all the questions.
    
    The sosreport will run for several minutes, according to different system, the running time might be more longer.
    Once completed, "sosreport" will generate a compressed sosreport-xx-xx.bz2 file under /tmp. 
    
    
    [summary]
    - confirm system build asm disk on muoltipath devices
    - modify /etc/udev/rules.d.90-dm.rules
    - currently both nodes could find the asm disk from scandisks and listdisks
    - sharon.honor will try installer again, if necessary need get help from application(RAC) team
    
    
    1. Reboot the box.
    
    2. Run the following commands
    #fdisk -l
    #multipath -ll
    #blkid
    #cat /etc/sysconfig/oracleasm
    #cat /etc/sysconfig/oracleasm-_dev_oracleasm
    
    #uptime
    #/etc/init.d/oracleasm start
    #/etc/init.d/oracleasm listdisks
    
    #uptime
    #/etc/init.d/oracleasm scandisk
    
    Please also modify the /etc/sysconfig/oracleasm-_dev_oracleasm with below.
    ORACLEASM_SCANORDER="dm"
    ORACLEASM_SCANEXCLUDE="sd"
    
    
    The devices that asmlib will scan is controlled in the /etc/sysconfig/oracleasm file 
    with the "scanorder" and "scanexclude" parameters.
  • 相关阅读:
    OpenStack平台监控脚本-基础版
    制作rpm包,可以免除多次编译安装
    openstack安装指南
    服务器状态持续监控脚本
    搭建OpenStack私有云准备工作
    一键配置openstack-cata版的在线yum源
    openstack的yum源出错,配置openstack-ocata版的在线yum源,openstack的yum源配置
    py小结一
    Windows在cmd界面运行C++程序
    数字三角形「动态规划」
  • 原文地址:https://www.cnblogs.com/macleanoracle/p/2968234.html
Copyright © 2011-2022 走看看