Home  >  Article  >  Database  >  解决 ADVM/ACFS is not supported on centos-release-5-

解决 ADVM/ACFS is not supported on centos-release-5-

WBOY
WBOYOriginal
2016-06-07 16:35:321183browse

从Oracle11.2开始,ASM不仅是一个磁盘组,他还提供了了一个卷管理器,称为ADVM(asm dynamic volume manager)。ADVM向用户提供卷管理服务,并提供标准的磁盘设备驱动程序。利用ADVM,可以在卷组中创建一个或多个卷,每个卷对应操作系统中的一个设备文件,这

从Oracle11.2开始,ASM不仅是一个磁盘组,他还提供了了一个卷管理器,称为ADVM(asm dynamic volume manager)。ADVM向用户提供卷管理服务,并提供标准的磁盘设备驱动程序。利用ADVM,可以在卷组中创建一个或多个卷,每个卷对应操作系统中的一个设备文件,这些卷是可以动态扩展的,就像操作系统中的卷或者利用第三方软件创建的卷一样,应用程序也可以对ADVM卷中的数据进行读写操作。
在ADVM卷中可以创建ACFS文件系统,ACFS是一种跨平台的、可扩展的集群文件系统,多个节点可以同时访问asfs中的文件。ACFS不仅可以作为oracle数据库软件的安装路径,还可以用来存储数据库中的警告文件和跟踪文件,还可以存储诸如视频、声音、图像、文本等类型的文件。

但是在CentOS5.8上面安装rac的时候,却发现ADVM/ACFS is not supported on centos-release-5-8.el5.centos

这是由于oracle软件对系统版本做了限制,解决方法如下:

可以看到报错:
[root@rac1 ~]# /opt/app/grid/bin/acfsload start -s
ADVM/ACFS is not supported on centos-release-5-8.el5.centos

1、备份要修改的文件,两个节点都要做

[root@rac1 ~]# cd /opt/app/grid/lib

[root@rac1 lib]# cp -p osds_acfslib.pm osds_acfslib.pm.orig

2、修改文件osds_acfslib.pm,同样两个节点都做

replace

if (($release =~ /enterprise-release-5/) ||
($release =~ /redhat-release-5/))
with

if (($release =~ /enterprise-release-5/) ||
($release =~ /redhat-release-5/) ||
($release =~ /centos-release-5/))

3、把支持ADVM/ACFS相关的module放在系统module目录下,两个节点都做

[root@rac1 ~]# mkdir /lib/modules/2.6.18-348.12.1.el5/extra/usm
[root@rac1 ~]# cd?/u01/app/11.2.0/grid/install/usm/EL5/x86_64/2.6.18-8/2.6.18-8.el5-x86_64/bin/
[root@rac1 bin]# cp *ko /lib/modules/2.6.18-348.12.1.el5/extra/usm/

4、安装ADVM/ACFS驱动

[root@rac1 ~]# cd /opt/app/grid/bin
[root@rac1 bin]# ./acfsdriverstate -orahome /opt/app/grid version
acfsdriverstate: ACFS-9129: ADVM/ACFS not installed

安装网上说的方法无法安装,下面尝试以下安装方式:

[root@rac1 ~]# cd /opt/app/grid/bin

[root@rac1 bin]#./acfsroot install

CRS-10001:ACFS-9300: ADVM/ACFS distribution files found.
CRS-10001:ACFS-9307: Installing requested ADVM/ACFS software.
CRS-10001:ACFS-9308: Loading installed ADVM/ACFS drivers.
CRS-10001:ACFS-9321: Creating udev for ADVM/ACFS.
CRS-10001:ACFS-9323: Creating module dependencies – this may take some time.
CRS-10001:ACFS-9327: Verifying ADVM/ACFS devices.
CRS-10001:ACFS-9309: ADVM/ACFS installation correctness verified.

说明安装成功。

5、启动服务

[root@rac1 ~]# /opt/app/grid/bin/acfsload start -s

[root@rac2 ~]# /opt/app/grid/bin/acfsload start -s
6、在所有的节点上,检查kernel是否成功的加载了相关的驱动

[root@rac1 ~]# lsmod | grep oracle
oracleacfs 877320 4
oracleadvm 221760 8
oracleoks 276880 2 oracleacfs,oracleadvm
oracleasm 84136 1

来源:http://blog.csdn.net/miyatang/article/details/6652642

无觅相关文章插件,快速提升流量

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn