虽然我并不推荐你使用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.
Leave a Reply