查看: 2987|回复: 3

[安装] NFS做CRS Voting Disk and OCR 的共享存储的问题

[复制链接]
论坛徽章:
0
发表于 2009-12-17 17:03 | 显示全部楼层 |阅读模式
30pub币
机器:SUN T5140 , Solaris 10 系统 , 创建多个 container , 在其中两个 container  上安装RAC (10g release2 for Sparc 64 bit)
使用 nfs 做 Voting Disk and OCR 的共享存储, 在最后运行 root.sh 时候报错:

#/ocr/crs/oracle/product/10.2.0/crs_1/root.sh
[WARNING: directory '/ocr/crs/oracle/product/10.2.0' is not owned by root
WARNING: directory '/ocr/crs/oracle/product' is not owned by root
WARNING: directory '/ocr/crs/oracle' is not owned by root
WARNING: directory '/ocr/crs' is not owned by root
WARNING: directory '/ocr' 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

检查 ocrconfig.log :

# more ocrconfig_12194.log
Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle.  All rights reserved.
2009-01-06 16:28:32.450: [ OCRCONF][1]ocrconfig starts...
2009-01-06 16:28:32.451: [ OCRCONF][1]Upgrading OCR data
2009-01-06 16:28:32.460: [  OCROSD][1]utmountcheck: FS mounted with following options wsize 0, rsize 0, hard 0, noac 0, forcedirectio 0
2009-01-06 16:28:32.460: [  OCROSD][1]NFS file system /ocfs/clusterware mounted with incorrect options
2009-01-06 16:28:32.460: [  OCROSD][1]WARNING:Expected NFS mount options: wsize>=32768,rsize>=32768,hard,noac
2009-01-06 16:28:32.461: [  OCROSD][1]utopen:6'': OCR location /ocfs/clusterware/ocrfile configured is not valid storage type. Return code [37].
2009-01-06 16:28:32.461: [  OCRRAW][1]proprinit: Could not open raw device
2009-01-06 16:28:32.461: [ default][1]a_init:7!: Backend init unsuccessful : [37]
2009-01-06 16:28:32.462: [ OCRCONF][1]Exporting OCR data to [OCRUPGRADEFILE]
2009-01-06 16:28:32.462: [  OCRAPI][1]a_init:7!: Backend init unsuccessful : [33]
2009-01-06 16:28:32.463: [ OCRCONF][1]There was no previous version of OCR. error:[PROC-33: Oracle Cluster Registry is not configured]
2009-01-06 16:28:32.465: [  OCROSD][1]utmountcheck: FS mounted with following options wsize 0, rsize 0, hard 0, noac 0, forcedirectio 0
2009-01-06 16:28:32.466: [  OCROSD][1]NFS file system /ocfs/clusterware mounted with incorrect options
2009-01-06 16:28:32.466: [  OCROSD][1]WARNING:Expected NFS mount options: wsize>=32768,rsize>=32768,hard,noac
2009-01-06 16:28:32.466: [  OCROSD][1]utopen:6'': OCR location /ocfs/clusterware/ocrfile configured is not valid storage type. Return code [37].
2009-01-06 16:28:32.466: [  OCRRAW][1]proprinit: Could not open raw device
2009-01-06 16:28:32.466: [ default][1]a_init:7!: Backend init unsuccessful : [37]
2009-01-06 16:28:32.469: [  OCROSD][1]utmountcheck: FS mounted with following options wsize 0, rsize 0, hard 0, noac 0, forcedirectio 0
2009-01-06 16:28:32.469: [  OCROSD][1]NFS file system /ocfs/clusterware mounted with incorrect options
2009-01-06 16:28:32.469: [  OCROSD][1]WARNING:Expected NFS mount options: wsize>=32768,rsize>=32768,hard,noac
2009-01-06 16:28:32.469: [  OCROSD][1]utopen:6'': OCR location /ocfs/clusterware/ocrfile configured is not valid storage type. Return code [37].
2009-01-06 16:28:32.469: [  OCRRAW][1]proprinit: Could not open raw device
2009-01-06 16:28:32.470: [  OCRAPI][1]a_init:6b!: Backend init unsuccessful : [37]
2009-01-06 16:28:32.470: [ OCRCONF][1]Failed to initialized OCR context. error:[PROC-37: Oracle Cluster Registry does not support the storage type configured]
2009-01-06 16:28:32.471: [ OCRCONF][1]Exiting [status=failed]...

已经按照oracle 指引 (metalink Doc ID:  316393.1 Doc ID:  359515.1 ),修改了nfs 参数:
/etc/vfstab:
db:/ocfs/crs   -       /ocfs/clusterware       nfs     -       yes     rw,bg,hard,nointr,rsize=32768,wsize=32768,proto=tcp,vers=3,noac,forcedirectio

# nfsstat -m
/ocfs/clusterware from db:/ocfs/crs
Flags:         vers=3,proto=tcp,sec=sys,hard,nointr,noac,link,symlink,acl,rsize=32768,wsize=32768,retrans=5,timeo=600
Attr cache:    acregmin=3,acregmax=60,acdirmin=30,acdirmax=60

# ls -atl /ocfs/clusterware
total 5
drwxrwxr-x   2 oracle   dba          512 Jan  6 16:09 .
-rw-r--r--   1 oracle   oinstall            0 Jan  6 12:02 votingdisk
-rw-r-----   1 root     oinstall             0 Jan  6 12:02 ocrfile
drwxrwxr-x   3 root     oinstall         3 Dec 31 10:52 ..

root, oracle 用户对 /ocfs/clusterware 都有读写权限

很奇怪的就是: 在mount nfs 已经设置了 rw,bg,hard,nointr,rsize=32768,wsize=32768,proto=tcp,vers=3,noac,forcedirectio 参数
为什么 Log 还提示:
2009-01-06 16:28:32.451: [ OCRCONF][1]Upgrading OCR data
2009-01-06 16:28:32.460: [  OCROSD][1]utmountcheck: FS mounted with following options wsize 0, rsize 0, hard 0, noac 0, forcedirectio 0
2009-01-06 16:28:32.460: [  OCROSD][1]NFS file system /ocfs/clusterware mounted with incorrect options
2009-01-06 16:28:32.460: [  OCROSD][1]WARNING:Expected NFS mount options: wsize>=32768,rsize>=32768,hard,noac
2009-01-06 16:28:32.461: [  OCROSD][1]utopen:6'': OCR location /ocfs/clusterware/ocrfile configured is not valid storage type. Return code [37].
2009-01-06 16:28:32.461: [  OCRRAW][1]proprinit: Could not open raw device

有谁知道原因吗? 该怎么查? 恳请赐教,谢谢!

论坛徽章:
48
马上加薪
日期:2014-02-19 11:55:142011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:502011新春纪念徽章
日期:2011-01-25 15:41:01ITPUB9周年纪念徽章
日期:2010-10-08 09:32:26ITPUB季度 技术新星
日期:2010-05-17 15:53:17数据库板块每日发贴之星
日期:2010-05-12 01:01:01数据库板块每日发贴之星
日期:2010-05-08 01:01:01数据库板块每日发贴之星
日期:2010-05-07 01:01:02数据库板块每日发贴之星
日期:2010-04-29 01:01:01
发表于 2010-2-8 13:17 | 显示全部楼层
nfs可以作为ocr和votedisk的存储区,这里应该是权限和nfs共享的问题。
你用这个加载fstab里,然后mount -a再试试。
nfsserver:/nfs/rac/oracle_archivelog /u02/app/oracle/archivelog nfs rw,bg,hard,nointr,tcp,vers=3,timeo=300,rsize=32768,wsize=32768,actimeo=0  0 0

mount -a以后,先试试oracle用户手动在里面添加文件先,看有没有问题。然后在重新试试CRS的安装。

使用道具 举报

回复
论坛徽章:
48
马上加薪
日期:2014-02-19 11:55:142011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:502011新春纪念徽章
日期:2011-01-25 15:41:01ITPUB9周年纪念徽章
日期:2010-10-08 09:32:26ITPUB季度 技术新星
日期:2010-05-17 15:53:17数据库板块每日发贴之星
日期:2010-05-12 01:01:01数据库板块每日发贴之星
日期:2010-05-08 01:01:01数据库板块每日发贴之星
日期:2010-05-07 01:01:02数据库板块每日发贴之星
日期:2010-04-29 01:01:01
发表于 2010-2-13 10:38 | 显示全部楼层
问题解决了么

使用道具 举报

回复
论坛徽章:
0
发表于 2011-10-23 11:58 | 显示全部楼层
楼主您的问题解决了吗?  我遇到跟您一样的问题了

使用道具 举报

回复

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

本版积分规则 发表回复

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