Load ACFS Modules on CentOS 5

if you manually load ACFS modules on CentOS 5, you will get this error

[root@guang ~]# /u01/app/11.2.0/grid/bin/acfsload start -s
ADVM/ACFS is not supported on centos-release-5-5.el5.centos

The program acfsload will make a OS check using a perl module $ORACLE_HOME/lib/osds_acfslib.pm from Grid Infrastructure home.

At line 280-287, it checks OS and its release:

280 if (($release =~ /enterprise-release-5/) ||
281          ($release =~ /redhat-release-5/))
282   {
283     # Redhat 5
284     $supported = 1;
285     # EL5 is a sub-dirictory in the install path
286     $vers = "EL5";
287   }

Since Centos 5 is compatible with Redhat 5, we can bypass the check by adding centos-release-5 to osds_acfslib.pm. We will change the code as ‘grid’ user (the owner of Grid Infrastructure).

[grid@guang ~]# cd /u01/app/11.2.0/grid/lib

[grid@guang lib]# ls -l osds_acfslib.pm
-rw-r-xr-- 1 grid oinstall 15242 Jul  2  2009 osds_acfslib.pm
[grid@guang lib]# cp osds_acfslib.pm osds_acfslib.pm.ORIG
[grid@guang lib]# vi osds_acfslib.pm

280   if (($release =~ /enterprise-release-5/) ||
281       ($release =~ /redhat-release-5/)  ||
282       ($release =~ /centos-release-5/))
283   {
284     # Redhat 5
285     $supported = 1;
286     # EL5 is a sub-dirictory in the install path
287     $vers = "EL5";
288   }

Now we try to load the ACFS modules again

[root@guang lib]# /u01/app/11.2.0/grid/bin/acfsload start -s
acfsload: ACFS-9129: ADVM/ACFS not installed

as you see, the OS verification is past, but we got another error of “ADVM/ACFS not installed.”

Since Centos 5 is not officially supported, the modules are not copied automatically.
We have to copy the modules manually from Grid infrastructure home to required locations.

[root@guang lib]# mkdir /lib/modules/2.6.18-194.el5/extra/usm
[root@guang lib]# 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@guang bin]# cp *ko /lib/modules/2.6.18-194.el5/extra/usm/

The next step is to record dependencies for the new kernel modules:

[root@guang ~]# depmod

Now try to load the ACFS modules again and it completes successfully.

 [root@guang ~]# /u01/app/11.2.0/grid/bin/acfsload start -s

Check that the modules were successfully loaded on this node

<pre>[root@guang ~]# lsmod | grep oracle
oracleacfs            877320  0
oracleadvm            221760  0
oracleoks             276880  2 oracleacfs,oracleadvm
oracleasm              84136  1

Repeat all above steps in other nodes of the cluster !

Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: