Oracle ACFS文件系统支持CentOS

[root@amb01 ~]# cd /u01/app/11.2.0.4/grid/lib/
[root@amb01 lib]# cp -p osds_acfslib.pm osds_acfslib.pm.bak
[root@amb01 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 =~ /^centos-release/) ||        # CentOS hack
       ($release =~ /^oraclelinux-release/)))    # Oracle Linux
       
[root@amb01 ~]# /u01/app/11.2.0.4/grid/bin/acfsload start -s
ACFS-9129: ADVM/ACFS not installed

[root@amb01 ~]# /u01/app/11.2.0.4/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@amb01 ~]# /u01/app/11.2.0.4/grid/bin/acfsload start -s

[root@amb02 bin]# lsmod |grep oracle
oracleacfs           1990406  0 
oracleadvm            250040  0 
oracleoks             427672  2 oracleacfs,oracleadvm
oracleasm              54297  1 

[root@amb01 ~]# vi /etc/init.d/acfsload
#!/bin/sh
# chkconfig: 2345 30 21
# description: Load Oracle ASM volume driver on system startup
ORACLE_HOME=/u01/app/11.2.0.4/grid
export ORACLE_HOME
$ORACLE_HOME/bin/acfsload start -s

[root@amb01 ~]# chmod 755 /etc/init.d/acfsload 
[root@amb01 ~]# chkconfig --add acfsload
[root@amb01 ~]# chkconfig --list |grep acfsload
acfsload        0:off   1:off   2:on    3:on    4:on    5:on    6:off

[root@amb01 ~]# /u01/app/11.2.0.4/grid/bin/crsctl add type ora.registry.acfs.type \
-basetype ora.local_resource.type \
-file /u01/app/11.2.0.4/grid/crs/template/registry.acfs.type 

[root@amb01 ~]# /u01/app/11.2.0.4/grid/bin/crsctl add resource ora.registry.acfs \
-attr ACL=\'owner:root:rwx,pgrp:oinstall:r-x,other::r--\' \
-type ora.registry.acfs.type -f

[root@amb01 ~]# su - grid -c crs_stat | grep acfs 
NAME=ora.registry.acfs
TYPE=ora.registry.acfs.type

[root@amb01 ~]# /sbin/acfsutil registry

[grid@amb01 ~]$ crsctl start resource ora.registry.acfs -n amb01


猜你喜欢

转载自blog.51cto.com/13598811/2319241