日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

ADVM/ACFS is not supported on centos-release-5-5.el5.centos 解决方法

發布時間:2024/4/15 编程问答 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ADVM/ACFS is not supported on centos-release-5-5.el5.centos 解决方法 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在 http://www.rampant-books.com/t_hunter_using_oracle_acfs_on_linux_part1.htm 看到有此解決辦法,

使用后,此問題是解決了。

自己思考,如果沒有使用ACFS,可能此問題也沒多大影響。(在 ASMCA 中,可以看到可在ASM 基礎上建立ACFS條帶,但我沒建立)

并且在后面看到安裝日志,acfs也是通過的,這個不知為什么。


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

[root@racnode1 ~]# cd /opt/app/grid/lib
[root@racnode1 lib]# cp -p osds_acfslib.pm osds_acfslib.pm.orig

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

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


Next, edit the osds_acfslib.pm Perl module. Search for the string 'support this release' (which was line 278 in my case).

Replace

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

with

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

This will get you past the supported version check; however, if you attempt to load the Oracle ASM volume driver from either Oracle RAC node, you get the following error:

[root@racnode1 ~]# /opt/app/grid/bin/acfsload start -s acfsload: ACFS-9129: ADVM/ACFS not installed

To install ADVM/ACFS, copy the following kernel modules from the Oracle grid infrastructure home to the expected location:

[root@racnode1 ~]# mkdir /lib/modules/2.6.18-194.el5/extra/usm [root@racnode1 ~]# cd /opt/app/grid/install/usm/EL5/x86_64/2.6.18-8/2.6.18-8.el5-x86_64/bin [root@racnode1 bin]# cp *ko /lib/modules/2.6.18-194.el5/extra/usm/[root@racnode2 ~]# mkdir /lib/modules/2.6.18-194.el5/extra/usm [root@racnode2 ~]# cd /opt/app/grid/install/usm/EL5/x86_64/2.6.18-8/2.6.18-8.el5-x86_64/bin [root@racnode2 bin]# cp *ko /lib/modules/2.6.18-194.el5/extra/usm/

Once the kernel modules have been copied, we can verify the ADVM/ACFS installation by running the following from all Oracle RAC nodes:

[root@racnode1 ~]# cd /opt/app/grid/bin [root@racnode1 bin]# ./acfsdriverstate -orahome /opt/app/grid version ACFS-9205: OS/ADVM,ACFS installed version = 2.6.18-8.el5(x86_64)/090715.1 [root@racnode2 ~]# cd /opt/app/grid/bin [root@racnode2 bin]# ./acfsdriverstate -orahome /opt/app/grid version ACFS-9205: OS/ADVM,ACFS installed version = 2.6.18-8.el5(x86_64)/090715.1

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

[root@racnode1 ~]# depmod[root@racnode2 ~]# depmod

Now, running acfsload start -s will complete without any further messages:

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

Check that the modules were successfully loaded on all Oracle RAC nodes:

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

Configure the Oracle ASM volume driver to load automatically on system startup on all Oracle RAC nodes. You will need to create an initialization script (/etc/init.d/acfsload) that contains the runlevel configuration and the acfsload command. Change the permissions on the /etc/init.d/acfsload script to allow it to be executed by root and then create links in the rc2.d, rc3.d, rc4.d, and rc5.d runlevel directories using 'chkconfig --add':

[root@racnode1 ~]# chkconfig --list | grep acfsload[root@racnode2 ~]# chkconfig --list | grep acfsload=======================================================[root@racnode1 ~]# cat > /etc/init.d/acfsload <<EOF #!/bin/sh# chkconfig: 2345 30 21 # description: Load Oracle ASM volume driver on system startup ORACLE_HOME=/u01/app/11.2.0/grid export ORACLE_HOME\$ORACLE_HOME/bin/acfsload start -s EOF[root@racnode2 ~]# cat > /etc/init.d/acfsload <<EOF #!/bin/sh# chkconfig: 2345 30 21 # description: Load Oracle ASM volume driver on system startupORACLE_HOME=/u01/app/11.2.0/grid export ORACLE_HOME\$ORACLE_HOME/bin/acfsload start -s EOF=======================================================[root@racnode1 ~]# chmod 755 /etc/init.d/acfsload[root@racnode2 ~]# chmod 755 /etc/init.d/acfsload=======================================================[root@racnode1 ~]# chkconfig --add acfsload[root@racnode2 ~]# chkconfig --add acfsload=======================================================[root@racnode1 ~]# chkconfig --list | grep acfsload acfsload 0:off 1:off 2:on 3:on 4:on 5:on 6:off[root@racnode2 ~]# chkconfig --list | grep acfsload acfsload 0:off 1:off 2:on 3:on 4:on 5:on 6:off

If the Oracle grid infrastructure 'ora.registry.acfs' resource does not exist, create it. This only needs to be performed from one of the Oracle RAC nodes:

[root@racnode1 ~]# su - grid -c crs_stat | grep acfs[root@racnode2 ~]# su - grid -c crs_stat | grep acfs=======================================================[root@racnode1 ~]# /opt/app/grid/bin/crsctl add type ora.registry.acfs.type \-basetype ora.local_resource.type \-file /u01/app/11.2.0/grid/crs/template/registry.acfs.type[root@racnode1 ~]# /opt/app/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@racnode1 ~]# su - grid -c crs_stat | grep acfs NAME=ora.registry.acfs TYPE=ora.registry.acfs.type[root@racnode2 ~]# su - grid -c crs_stat | grep acfs NAME=ora.registry.acfs TYPE=ora.registry.acfs.type

Next, copy the Oracle ACFS executables to /sbin and set the appropriate permissions. The Oracle ACFS executables are located in the GRID_HOME/install/usm/EL5/<ARCHITECTURE>/<KERNEL_VERSION>/<FULL_KERNEL_VERSION>/bin directory (12 files) and include any file without the *.ko extension:

[root@racnode1 ~]# cd /opt/app/grid/install/usm/EL5/x86_64/2.6.18-8/2.6.18-8.el5-x86_64/bin [root@racnode1 bin]# cp acfs* /sbin; chmod 755 /sbin/acfs* [root@racnode1 bin]# cp advmutil* /sbin; chmod 755 /sbin/advmutil* [root@racnode1 bin]# cp fsck.acfs* /sbin; chmod 755 /sbin/fsck.acfs* [root@racnode1 bin]# cp mkfs.acfs* /sbin; chmod 755 /sbin/mkfs.acfs* [root@racnode1 bin]# cp mount.acfs* /sbin; chmod 755 /sbin/mount.acfs*[root@racnode2 ~]# cd /opt/app/grid/install/usm/EL5/x86_64/2.6.18-8/2.6.18-8.el5-x86_64/bin [root@racnode2 bin]# cp acfs* /sbin; chmod 755 /sbin/acfs* [root@racnode2 bin]# cp advmutil* /sbin; chmod 755 /sbin/advmutil* [root@racnode2 bin]# cp fsck.acfs* /sbin; chmod 755 /sbin/fsck.acfs* [root@racnode2 bin]# cp mkfs.acfs* /sbin; chmod 755 /sbin/mkfs.acfs* [root@racnode2 bin]# cp mount.acfs* /sbin; chmod 755 /sbin/mount.acfs*

As a final step, modify any of the Oracle ACFS shell scripts copied to the /sbin directory (above) to include the ORACLE_HOME for grid infrastructure. The successful execution of these scripts requires access to certain Oracle shared libraries that are found in the grid infrastructure Oracle home. Since many of the Oracle ACFS shell scripts will be executed as the root user account, the ORACLE_HOME environment variable will typically not be set in the shell and will result in the executable to fail. An easy workaround to get past this error is to set the ORACLE_HOME environment variable for the Oracle grid infrastructure home in the Oracle ACFS shell scripts on all Oracle RAC nodes. The ORACLE_HOME should be set at the beginning of the file after the header comments as shown in the following example:

#!/bin/sh # # Copyright (c) 2001, 2009, Oracle and/or its affiliates. All rights reserved. #ORACLE_HOME=/opt/app/gridORA_CRS_HOME=%ORA_CRS_HOME% if [ ! -d $ORA_CRS_HOME ]; thenORA_CRS_HOME=$ORACLE_HOME fi ...

Add the ORACLE_HOME environment variable for the Oracle grid infrastructure home as noted above to the following Oracle ACFS shell scripts on all Oracle RAC nodes:

  • /sbin/acfsdbg
  • /sbin/acfsutil
  • /sbin/advmutil
  • /sbin/fsck.acfs
  • /sbin/mkfs.acfs
  • /sbin/mount.acfs


總結

以上是生活随笔為你收集整理的ADVM/ACFS is not supported on centos-release-5-5.el5.centos 解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 成人综合影院 | 青青操在线 | 国产精品一区二区在线看 | 久久三级视频 | 欧美xxxxxhd| 黄色网在线播放 | 亚洲偷拍一区 | 国产91精品一区二区绿帽 | 中文字幕成人动漫 | 精品一区二区三区三区 | 成人免费黄色大片 | 91av不卡| 奶水喷溅 在线播放 | 各种含道具高h调教1v1男男 | 亚洲视频在线观看免费视频 | 天堂资源最新在线 | 欧美成人tv| 久久精品国产电影 | 欧美黑人性受xxxx精品 | 精品少妇一区二区三区免费观看 | 国产欧美精品一区二区色综合朱莉 | 午夜激情视频网 | 久久精品久久国产 | 久久精品蜜桃 | 免费裸体视频女性 | 久久一区二区精品 | 久久久久久久99 | 99夜色| 小情侣高清国产在线播放 | 天天爱天天操 | 特级特黄刘亦菲aaa级 | 日本理论片午伦夜理片在线观看 | www.国产高清 | 亚洲天堂五月 | 人妻换人妻仑乱 | 亚洲一区二区精品 | 少妇熟女一区二区三区 | 久久国产精品-国产精品 | 久久久久久久人妻无码中文字幕爆 | 妺妺窝人体色www在线小说 | 久久久国产一区二区三区 | 九九热国产精品视频 | 欧美激情在线一区 | 欧美精品毛片 | 国内久久 | a v在线视频 | 精品人妻无码一区二区三区换脸 | 国产综合第一页 | 国产男同gay网站 | 吞精囗交69激情欧美 | 91精品国产99久久久久久红楼 | 麻豆久久久9性大片 | 亚洲欧美日韩一区二区三区在线观看 | 亚欧洲精品视频 | 国产性色av| 麻豆国产精品一区 | 日韩avv| 艳母动漫在线播放 | 午夜啪啪网站 | 国产一区二区三区高清 | 欧美三级a | 色噜噜狠狠一区二区三区 | 日韩激情四射 | 国产精品精品久久久 | 国产欧美精品一区 | 狠狠干网址 | 国产黄色片免费看 | 一级免费视频 | 一级理论片 | 在线看你懂得 | 国产性生活视频 | 在线青草 | 亚洲图片88 | 精品熟女一区二区三区 | 精品人妻一区二区三区日产乱码卜 | 91精品国产一区二区三竹菊影视 | 日韩精品视频在线看 | 日韩精品成人在线观看 | 波多野结衣操 | 免费看黄色的网址 | 超碰国产人人 | 91精品人妻一区二区 | 九草视频在线 | 88国产精品视频一区二区三区 | 国产麻豆乱码精品一区二区三区 | 黄色a级免费 | av55 | 免费高清av在线看 | 69堂免费视频 | 伊人青青草原 | 热精品 | 综合人人 | 日本不卡网站 | 欧美操操操 | 韩国一区二区三区视频 | 天天爱天天干天天操 | 欧美日韩亚洲免费 | 亚洲欧美a | 色呦呦在线免费观看 | 日韩欧美国产片 |