Oracle ACFS檔案系統支援CentOS
阿新 • • 發佈:2018-11-20
[[email protected] ~]# cd /u01/app/11.2.0.4/grid/lib/ [[email protected] lib]# cp -p osds_acfslib.pm osds_acfslib.pm.bak [[email protected] 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 [[email protected] ~]# /u01/app/11.2.0.4/grid/bin/acfsload start -s ACFS-9129: ADVM/ACFS not installed [[email protected] ~]# /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. [[email protected] ~]# /u01/app/11.2.0.4/grid/bin/acfsload start -s [[email protected] bin]# lsmod |grep oracle oracleacfs 1990406 0 oracleadvm 250040 0 oracleoks 427672 2 oracleacfs,oracleadvm oracleasm 54297 1 [[email protected] ~]# 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 [[email protected] ~]# chmod 755 /etc/init.d/acfsload [[email protected] ~]# chkconfig --add acfsload [[email protected] ~]# chkconfig --list |grep acfsload acfsload 0:off 1:off 2:on 3:on 4:on 5:on 6:off [[email protected] ~]# /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 [[email protected] ~]# /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 [[email protected] ~]# su - grid -c crs_stat | grep acfs NAME=ora.registry.acfs TYPE=ora.registry.acfs.type [[email protected] ~]# /sbin/acfsutil registry [[email protected] ~]$ crsctl start resource ora.registry.acfs -n amb01