日韩性视频-久久久蜜桃-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 解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。

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

主站蜘蛛池模板: 亚洲国产精品久久久久爰色欲 | 天天干视频在线 | www.av网站| 亚洲性生活片 | 麻豆tube | 国产精品自拍av | 国产一区2 | 色婷婷精品国产一区二区三区 | 国产又粗又爽视频 | 亚洲人视频 | 在线视频第一页 | 三级av在线播放 | 中文一区视频 | 国产黄色免费大片 | 国产精品tv | 你懂的视频在线播放 | 在线亚洲免费 | 欧美成人午夜影院 | 日韩av自拍 | 亚洲h在线观看 | 激情无遮挡 | 日韩三级电影网址 | 天天草天天摸 | 婷婷激情六月 | 欧美午夜性 | 在线观看视频一区二区三区 | 国产九色sp调教91 | 免费黄网站在线观看 | 一级片黄色的 | 久操社区 | 91成人免费 | 99热只有这里有精品 | 成人免费黄 | 久操福利| 午夜精品在线 | 日韩福利在线播放 | 国产午夜在线观看 | 91免费看大片 | 法国少妇愉情理伦片 | 黄色的视频网站 | 美女涩涩视频 | 一区www| 亚洲国产成人精品激情在线 | 男插女动态图 | 国产xxxxx在线观看 | 色无极亚洲影院 | 人人爽人人做 | 男生和女生一起搞鸡 | 久久伊人免费视频 | 国产美女久久 | 亚洲成人久久精品 | 翔田千里一区 | 午夜免费观看 | 懂色一区二区三区 | 96福利视频 | 一区二区三区成人 | 久久精品无码一区二区三区免费 | 久久久噜噜噜久久 | 天天干妹子 | 欧美日韩精品一区二区三区 | 公车激情云雨小说 | 亚洲视频在线观看一区二区 | 欧洲视频在线观看 | 18av在线视频 | 国产精品精品 | 超碰成人在线观看 | 无码播放一区二区三区 | h视频在线观看网站 | 激情小说激情视频 | 操亚洲女人 | 极品国产91在线网站 | 69xxx中国| 在线色| 国产黄色一级网站 | 三级久久 | 四虎国产精品成人免费入口 | a级一片 | 国产成人无码一区二区在线播放 | 亚洲第一区av | 天天综合久久综合 | 日韩www.| 欧美视频在线看 | 亚洲免费影视 | 黄色一区二区三区 | 天天爱天天做 | 精品一区亚洲 | 色噜噜综合网 | 一个人免费在线观看视频 | 精精国产xxxx视频在线 | 天天色天天搞 | 国产色影院 | 日本在线有码 | 毛片大全免费看 | 久久黄色一级视频 | 一区二区国产视频 | 成人黄色免费视频 | 免费成人视屏 | 毛片毛片毛片毛片毛片毛片毛片 | 成人在线视频在线观看 |