二:修改osds_acfslib.pm脚本代码,rac2节点做同样的修改
[root@rac1 ~]# cd /u01/app/11.2.0/grid/lib/
[root@rac1 lib]# cp -p osds_acfslib.pm osds_acfslib.pm.bak
[root@rac1 lib]# vi osds_acfslib.pm
if ((defined($release)) && # RedHat or OEL if defined
(($release =~ /^redhat-release/) || # straight RH
($release =~ /^enterprise-release/) || # Oracle Enterprise Linux
($release =~ /^oraclelinux-release/))) # Oracle Linux
{
将上面的代码片段修改如下:
if ((defined($release)) && # Redhat or OEL if defined
(($release =~ /^redhat-release/) || # straight RH
($release =~ /^enterprise-release/) || # Oracle Enterprise Linux
($release =~ /^CentOS-release/) || # CentOS hack
($release =~ /^oraclelinux-release/))) # Oracle Linux
{
三:安装acfs,配置acfs和advm模块启动自动加载,rac2节点做同样的配置
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/acfsload start -s
ACFS-9129: ADVM/ACFS not installed
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/acfsroot install
ACFS-9300: ADVM/ACFS distribution files found.
ACFS-9307: Installing requested ADVM/ACFS software.
ACFS-9308: Loading installed ADVM/ACFS drivers.
ACFS-9321: Creating udev for ADVM/ACFS.
ACFS-9323: Creating module dependencies - this may take some time.
ACFS-9154: Loading 'oracleoks.ko' driver.
ACFS-9154: Loading 'oracleadvm.ko' driver.
ACFS-9154: Loading 'oracleacfs.ko' driver.
ACFS-9327: Verifying ADVM/ACFS devices.
ACFS-9156: Detecting control device '/dev/asm/.asm_ctl_spec'.
ACFS-9156: Detecting control device '/dev/ofsctl'.
ACFS-9309: ADVM/ACFS installation correctness verified.
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/acfsload start -s
[root@rac1 ~]# lsmod |grep oracle
oracleacfs 1670360 1
oracleadvm 260320 5
oracleoks 321904 2 oracleacfs,oracleadvm
[root@rac1 ~]# cat > /etc/init.d/acfsload <<EOF
> #!/bin/sh
> # chkconfig: 2345 30 21
> # description: Load Oracle ASM volume driver on system startup
> ORACLE_HOME=/u01/app/11.2.0/grid
> export ORACLE_HOME
> \$ORACLE_HOME/bin/acfsload start -s
> EOF
[root@rac1 ~]# chmod 755 /etc/init.d/acfsload
[root@rac1 ~]# chkconfig --add acfsload
[root@rac1 ~]# chkconfig --list | grep acfsload
acfsload 0:off 1:off 2:on 3:on 4:on 5:on 6:off