系统相关
首页 > 系统相关> > Centos6.9安装ACFS

Centos6.9安装ACFS

作者:互联网

安装完oracle 11GR2的RAC后,使用asmca打开图形化界面后,发现Volumes和ASM Cluster File System两个选项卡不能用

 

 

原因是因为ACFS不支持CentOS

解决方法

1.查看ACFS是否支持当前操作系统

[grid@rac02 ~]$ acfsdriverstate -orahome $ORACLE_HOME supported

2.修改osds_acfslib.pm文件(RAC所有节点)

# cp -p osds_acfslib.pm osds_acfslib.pm.bak
# 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 Linux
       ($release =~ /^oraclelinux-release/)))    # Oracle Linux
-----------------------------------------------------------------------------

3.安装acfs(RAC所有节点)

# cd /grid/home/bin/
# ./acfsload start -s
----------------------------------------------------
ACFS-9129: ADVM/ACFS not installed 
----------------------------------------------------
# ./acfsroot install
# ./acfsload start -s
# lsmod |grep oracle
----------------------------------------------------
oracleacfs           1990406  2 
oracleadvm            250040  6 
oracleoks             427672  2 oracleacfs,oracleadvm
----------------------------------------------------

4.添加ora.registry.acfs到ocr中(任一节点即可)

# /grid/home/bin/crsctl add type ora.registry.acfs.type -basetype ora.local_resource.type  -file /grid/home/crs/template/registry.acfs.type
# /grid/home/bin/crsctl add resource ora.registry.acfs -attr ACL=\'owner:root:rwx,pgrp:oinstall:r-x,other::r--\' -type ora.registry.acfs.type -f
# su - grid -c crs_stat | grep acfs
----------------------------------------------------
NAME=ora.registry.acfs
TYPE=ora.registry.acfs.type
----------------------------------------------------
#/sbin/acfsutil registr

5.创建Volumes

[grid@rac01 ~]$ export DISPLAY=10.206.132.253:0.0
$ asmca

 

 

 

 

6.创建ASM Cluster File System并挂载

两个节点创建目录

# mkdir /oggdata
# chown -R oracle.oinstall /oggdata/

挂载

 

 

点击OK后报错

ASM Cluster File System creation on /dev/asm/ogg_vol-471 failed with the following message:
mkfs.acfs: ACFS-01010: Volume already contains an ACFS file system.  To reformat the volume, reissue mkfs.acfs with the -f option.
mkfs.acfs: ACFS-01004: /dev/asm/ogg_vol-471 was not formatted.

此时点击Show Command,手动挂载

# /sbin/mkfs -t acfs /dev/asm/ogg_vol-471
# /sbin/acfsutil registry -a -f /dev/asm/ogg_vol-471 /oggdata
报错
------------------------------------------------------------------------------------
[root@rac01 ~]# /sbin/mkfs -t acfs /dev/asm/ogg_vol-471
mkfs.acfs: version                   = 11.2.0.4.0
mkfs.acfs: on-disk version           = 39.0
mkfs.acfs: volume                    = /dev/asm/ogg_vol-471
mkfs.acfs: ACFS-01010: Volume already contains an ACFS file system.  To reformat the volume, reissue mkfs.acfs with the -f option.
mkfs.acfs: ACFS-01004: /dev/asm/ogg_vol-471 was not formatted.
[root@rac01 ~]# /sbin/acfsutil registry -a -f /dev/asm/ogg_vol-471 /oggdata
acfsutil registry: ACFS-03161: Device : /dev/asm/ogg_vol-471 : Mount Point : /oggdata already exis
------------------------------------------------------------------------------------

已经有文件系统且注册,此时直接挂载即可(两个节点都要执行)

# mount.acfs -o all

查看挂载目录信息

# /sbin/acfsutil info fs

参考:https://blog.csdn.net/shiyu1157758655/article/details/62215468



 

标签:ACFS,vol,mkfs,Centos6.9,registry,release,安装,acfs
来源: https://www.cnblogs.com/monkey6/p/12704786.html