查看: 1434|回复: 8

[安装] NFS做CRS 共享存储, 运行root.sh报错----在线等...

[复制链接]
论坛徽章:
0
发表于 2011-10-23 11:55 | 显示全部楼层 |阅读模式
本帖最后由 ajingliu 于 2011-10-23 12:08 编辑

系统环境 radhat 5.4
之前 xhtang  发过一样的贴 http://www.itpub.net/forum.php?mod=viewthread&tid=1110400&page=1#pid12600929  

[root@dbs oracle]# /u01/app/oracle/product/10.2.0/crs/root.sh
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up NS directories
PROT-1: Failed to initialize ocrconfig
Failed to upgrade Oracle Cluster Registry configuration

Oracle Database 11g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle.  All rights reserved.
2011-11-01 13:40:19.561: [ OCRCONF][1308336]ocrconfig starts...
2011-11-01 13:40:19.563: [ OCRCONF][1308336]Upgrading OCR data
2011-11-01 13:40:19.565: [  OCROSD][1308336]utmountcheck: FS mounted with following options wsize 0, rsize 0, hard 0, noac 0, actimeo 0
2011-11-01 13:40:19.565: [  OCROSD][1308336]NFS file system /u01/shared_config mounted with incorrect options
2011-11-01 13:40:19.565: [  OCROSD][1308336]WARNING:Expected NFS mount options: wsize>=16384,rsize>=16384,hard,noac/actimeo=0
2011-11-01 13:40:19.565: [  OCROSD][1308336]utopen:6'': OCR location /u01/shared_config/crs_configuration configured is not valid storage type. Return code [37].
2011-11-01 13:40:19.565: [  OCRRAW][1308336]proprinit: Could not open raw device
2011-11-01 13:40:19.565: [ default][1308336]a_init:7!: Backend init unsuccessful : [37]
2011-11-01 13:40:19.565: [ OCRCONF][1308336]Exporting OCR data to [OCRUPGRADEFILE]
2011-11-01 13:40:19.566: [  OCRAPI][1308336]a_init:7!: Backend init unsuccessful : [33]
2011-11-01 13:40:19.566: [ OCRCONF][1308336]There was no previous version of OCR. error:[PROC-33: Oracle Cluster Registry is not configured]
2011-11-01 13:40:19.567: [  OCROSD][1308336]utmountcheck: FS mounted with following options wsize 0, rsize 0, hard 0, noac 0, actimeo 0
2011-11-01 13:40:19.567: [  OCROSD][1308336]NFS file system /u01/shared_config mounted with incorrect options
2011-11-01 13:40:19.567: [  OCROSD][1308336]WARNING:Expected NFS mount options: wsize>=16384,rsize>=16384,hard,noac/actimeo=0
2011-11-01 13:40:19.567: [  OCROSD][1308336]utopen:6'': OCR location /u01/shared_config/crs_configuration configured is not valid storage type. Return code [37].
2011-11-01 13:40:19.567: [  OCRRAW][1308336]proprinit: Could not open raw device
2011-11-01 13:40:19.567: [ default][1308336]a_init:7!: Backend init unsuccessful : [37]
2011-11-01 13:40:19.568: [  OCROSD][1308336]utmountcheck: FS mounted with following options wsize 0, rsize 0, hard 0, noac 0, actimeo 0
2011-11-01 13:40:19.568: [  OCROSD][1308336]NFS file system /u01/shared_config mounted with incorrect options
2011-11-01 13:40:19.568: [  OCROSD][1308336]WARNING:Expected NFS mount options: wsize>=16384,rsize>=16384,hard,noac/actimeo=0
2011-11-01 13:40:19.568: [  OCROSD][1308336]utopen:6'': OCR location /u01/shared_config/crs_configuration configured is not valid storage type. Return code [37].
2011-11-01 13:40:19.568: [  OCRRAW][1308336]proprinit: Could not open raw device
2011-11-01 13:40:19.568: [  OCRAPI][1308336]a_init:6b!: Backend init unsuccessful : [37]
2011-11-01 13:40:19.568: [ OCRCONF][1308336]Failed to initialized OCR context. error:[PROC-37: Oracle Cluster Registry does not support the storage type configured]
2011-11-01 13:40:19.569: [ OCRCONF][1308336]Exiting [status=failed]...
~                       

创建共享磁盘
mkdir /rac/shared_config
mkdir /rac/shared_crs
mkdir /rac/shared_home
mkdir /rac/shared_data
--------------------------------------------------------------------------------------------------------
修改 /etc/exports
/rac/shared_config *(rw,sync,no_wdelay,insecure_locks,no_root_squash)
/rac/shared_crs  *(rw,sync,no_wdelay,insecure_locks,no_root_squash)
/rac/shared_home *(rw,sync,no_wdelay,insecure_locks,no_root_squash)
/rac/shared_data *(rw,sync,no_wdelay,insecure_locks,no_root_squash)
------------------------------------------------------------------------------------------------------
启动NFS服务
chkconfig nfs on
service nfs restarts
磁盘使用情况
df -h
mount -a
----------------------------------------------------------------------------------------------------
修改 "/etc/fstab"
nas1:/rac/shared_config /u01/shared_config nfs rw,bg,hard,nointr,tcp,vers=3,timeo=300,rsize=32768,wsize=32768,actimeo=0 0 0
nas1:/rac/shared_crs /u01/app/oracle/product/10.2.0/crs nfs rw,bg,hard,nointr,tcp,vers=3,timeo=300,rsize=32768,wsize=32768,actimeo=0 0 0
nas1:/rac/shared_home /u01/app/oracle/product/10.2.0/db_1 nfs rw,bg,hard,nointr,tcp,vers=3,timeo=300,rsize=32768,wsize=32768,actimeo=0 0 0
nas1:/rac/shared_data /u01/oradata nfs rw,bg,hard,nointr,tcp,vers=3,timeo=300,rsize=32768,wsize=32768,actimeo=0 0 0

论坛徽章:
0
 楼主| 发表于 2011-10-23 16:15 | 显示全部楼层
[root@dbs ~]# nfsstat -m
/u01/shared_config from nas1:/rac/shared_config
Flags: rw,vers=3,rsize=32768,wsize=32768,hard,proto=tcp,timeo=600,retrans=2,sec=sys,addr=nas1

/u01/app/oracle/product/10.2.0/crs from nas1:/rac/shared_crs
Flags: rw,vers=3,rsize=32768,wsize=32768,hard,proto=tcp,timeo=600,retrans=2,sec=sys,addr=nas1

/u01/app/oracle/product/10.2.0/db_1 from nas1:/rac/shared_home
Flags: rw,vers=3,rsize=32768,wsize=32768,hard,proto=tcp,timeo=600,retrans=2,sec=sys,addr=nas1

/u01/oradata from nas1:/rac/shared_data
Flags: rw,vers=3,rsize=32768,wsize=32768,hard,proto=tcp,timeo=600,retrans=2,sec=sys,addr=nas1

---------------------------------------------------------------------------------------------------------------------------------
[root@dbp ~]# nfsstat -m
/u01/shared_config from nas1:/rac/shared_config
Flags: rw,vers=3,rsize=32768,wsize=32768,acregmin=0,acregmax=0,acdirmin=0,acdirmax=0,hard,proto=tcp,timeo=300,retrans=2,sec=sys,addr=nas1

/u01/app/oracle/product/10.2.0/crs from nas1:/rac/shared_crs
Flags: rw,vers=3,rsize=32768,wsize=32768,acregmin=0,acregmax=0,acdirmin=0,acdirmax=0,hard,proto=tcp,timeo=300,retrans=2,sec=sys,addr=nas1

/u01/app/oracle/product/10.2.0/db_1 from nas1:/rac/shared_home
Flags: rw,vers=3,rsize=32768,wsize=32768,acregmin=0,acregmax=0,acdirmin=0,acdirmax=0,hard,proto=tcp,timeo=300,retrans=2,sec=sys,addr=nas1

/u01/oradata from nas1:/rac/shared_data
Flags: rw,vers=3,rsize=32768,wsize=32768,acregmin=0,acregmax=0,acdirmin=0,acdirmax=0,hard,proto=tcp,timeo=300,retrans=2,sec=sys,addr=nas1

使用道具 举报

回复
论坛徽章:
0
 楼主| 发表于 2011-10-23 16:17 | 显示全部楼层
我也打过 p4679769_10201_LINUX.zip   没有用

使用道具 举报

回复
论坛徽章:
0
 楼主| 发表于 2011-10-23 17:48 | 显示全部楼层
主库执行报错, 从库执行成功了

使用道具 举报

回复
论坛徽章:
17
2008新春纪念徽章
日期:2008-02-13 12:43:032014年新春福章
日期:2014-02-18 16:42:02优秀写手
日期:2013-12-18 09:29:13奥迪
日期:2013-09-12 15:57:04凯迪拉克
日期:2013-08-26 22:55:57红旗
日期:2013-08-15 13:57:06茶鸡蛋
日期:2013-05-29 11:38:412013年新春福章
日期:2013-02-25 14:51:24ITPUB季度 技术新星
日期:2012-02-16 14:53:162012新春纪念徽章
日期:2012-01-04 11:51:22
发表于 2011-10-23 18:53 | 显示全部楼层
NFS mount options 不正确

使用道具 举报

回复
论坛徽章:
0
 楼主| 发表于 2011-10-23 19:00 | 显示全部楼层
maclean 发表于 2011-10-23 18:53
NFS mount options 不正确

请教一下 问题在哪?  主库执行报错 但是从库执行成功了

使用道具 举报

回复
论坛徽章:
17
2008新春纪念徽章
日期:2008-02-13 12:43:032014年新春福章
日期:2014-02-18 16:42:02优秀写手
日期:2013-12-18 09:29:13奥迪
日期:2013-09-12 15:57:04凯迪拉克
日期:2013-08-26 22:55:57红旗
日期:2013-08-15 13:57:06茶鸡蛋
日期:2013-05-29 11:38:412013年新春福章
日期:2013-02-25 14:51:24ITPUB季度 技术新星
日期:2012-02-16 14:53:162012新春纪念徽章
日期:2012-01-04 11:51:22
发表于 2011-10-23 19:03 | 显示全部楼层
尝试 umount 后再mount一次

使用道具 举报

回复
论坛徽章:
0
 楼主| 发表于 2011-10-23 19:07 | 显示全部楼层
本帖最后由 ajingliu 于 2011-10-23 19:09 编辑
maclean 发表于 2011-10-23 19:03
尝试 umount 后再mount一次
我现在在停在 执行 root.sh 命令 安装界面

[root@dbs client]# umount /u01/shared_config
[root@dbs client]# umount /u01/app/oracle/product/10.2.0/crs
umount /u01/app/oracle/product/10.2.0/db_1
umount: /u01/app/oracle/product/10.2.0/crs: device is busy
umount /u01/oradataumount: /u01/app/oracle/product/10.2.0/crs: device is busy
umount: /u01/app/oracle/product/10.2.0/crs: device is busy
umount: /u01/app/oracle/product/10.2.0/crs: device is busy
[root@dbs client]# umount /u01/app/oracle/product/10.2.0/db_1
[root@dbs client]# umount /u01/oradata
[root@dbs client]#
[root@dbs client]# mount /u01/shared_config
[root@dbs client]# mount /u01/app/oracle/product/10.2.0/crs
mount /u01/app/oracle/product/10.2.0/db_1
[root@dbs client]# mount /u01/app/oracle/product/10.2.0/db_1
mount /u01/oradata[root@dbs client]# mount /u01/oradatamount /u01/shared_config
mount: special device /u01/oradatamount does not exist
[root@dbs client]# mount /u01/app/oracle/product/10.2.0/crs
mount /u01/app/oracle/product/10.2.0/db_1
mount /u01/oradatamount.nfs: /u01/app/oracle/product/10.2.0/crs is already mounted or busy
[root@dbs client]# mount /u01/app/oracle/product/10.2.0/db_1
mount.nfs: /u01/app/oracle/product/10.2.0/db_1 is already mounted or busy
[root@dbs client]# mount /u01/oradata

使用道具 举报

回复
论坛徽章:
11
迷宫蛋
日期:2011-10-24 10:43:14蛋疼蛋
日期:2013-01-10 11:03:47奥运纪念徽章
日期:2012-12-06 09:21:40ITPUB 11周年纪念徽章
日期:2012-10-31 14:48:00ITPUB 11周年纪念徽章
日期:2012-10-09 18:14:48ITPUB 11周年纪念徽章
日期:2012-09-28 17:34:422012新春纪念徽章
日期:2012-01-04 11:57:13茶鸡蛋
日期:2011-12-06 16:25:55ITPUB十周年纪念徽章
日期:2011-11-01 16:25:51ITPUB官方微博粉丝徽章
日期:2011-10-31 10:21:02
发表于 2011-10-24 14:47 | 显示全部楼层
应该是权限的问题

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 
京ICP备09055130号-4  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表