在安裝ORACLE RAC的Grid Infrastructure時,在節點1運行/u01/app/11.2.0/grid/root.sh正常,當在節點2運行/u01/app/11.2.0/grid/root.sh時發生報錯:
[root@RAC02 tmp]# /u01/app/11.2.0/grid/root.sh Performing root user operation for Oracle 11g The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /u01/app/11.2.0/grid Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ... Creating /etc/oratab file... Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root script. Now product-specific root actions will be performed. Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params Creating trace directory User ignored Prerequisites during installation Installing Trace File Analyzer OLR initialization - successful Adding Clusterware entries to upstart CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac01, number 1, and is terminating An active cluster was found during exclusive startup, restarting to join the cluster Start of resource "ora.crsd" failed CRS-2800: Cannot start resource 'ora.asm' as it is already in the INTERMEDIATE state on server 'rac02' CRS-4000: Command Start failed, or completed with errors. Failed to start Oracle Grid Infrastructure stack Failed to start Cluster Ready Services at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 1353. /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/rootcrs.pl execution failed
根據上面報錯,可以看到是因為在啟動ora.asm磁盤時發生了錯誤,因此對比兩個節點的asm磁盤權限,發現以下問題:
節點1:
[root@RAC01 app]# ls -l /dev/asm* brw-rw---- 1 oracle oinstall 8, 16 Feb 6 05:26 /dev/asm-disk1 brw-rw---- 1 oracle oinstall 8, 32 Feb 6 05:26 /dev/asm-disk2 brw-rw---- 1 oracle oinstall 8, 48 Feb 6 05:26 /dev/asm-disk3 brw-rw---- 1 oracle oinstall 8, 64 Feb 6 02:59 /dev/asm-disk4
節點2:
[root@RAC02 app]# ls -l /dev/asm* brw-rw----. 1 oracle oinstall 8, 16 Feb 6 05:26 /dev/asm-disk1 brw-rw----. 1 oracle oinstall 8, 32 Feb 6 05:26 /dev/asm-disk2 brw-rw----. 1 oracle oinstall 8, 48 Feb 6 05:26 /dev/asm-disk3 brw-rw----. 1 oracle oinstall 8, 64 Feb 6 02:59 /dev/asm-disk4
從上面可以看到節點2的asm磁盤權限中多了一個‘.’,這里的點是seLinux的附件權限,但是查看seLinux已經處於Premissive,配置文件中已修改為disabled,因此重啟服務器,再次查看asm權限,發現‘.’消失,再次執行/u01/app/11.2.0/grid/root.sh腳本,無報錯