免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5480 | 回复: 11
打印 上一主题 下一主题

"/dev/vglock 做完镜像问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-08-24 10:58 |只看该作者 |倒序浏览
# more orapkg.cntl.log

        ########### Node "smcp1": Starting package at Fri Jun 12 13:55:57 EAT 2009 ###########
Jun 12 13:55:57 - Node "smcp1": Activating volume group /dev/vglock with shared option.
vgchange: Couldn't activate volume group "/dev/vglock":
Bad file number
        ERROR:  Function activate_volume_group
        ERROR:  Failed to activate /dev/vglock
Jun 12 13:56:13 - Node "smcp1": Deactivating volume group /dev/vglock
vgchange: Volume group "/dev/vglock" has been successfully changed.
Jun 12 13:56:13 - Node "smcp1": Deactivating volume group /dev/vgdata
vgchange: Volume group "/dev/vgdata" has been successfully changed.

        ########### Node "smcp1": Package start failed at Fri Jun 12 13:56:13 EAT 2009 ###########

vglock 做镜像之前正常的。 现在做了镜像,上面是日志。

论坛徽章:
0
2 [报告]
发表于 2011-08-24 13:43 |只看该作者
vglock不隶属于双机吧
执行vgchange -a n vglock
vgchang -c y vglock
再试试呢

论坛徽章:
0
3 [报告]
发表于 2011-08-24 14:20 |只看该作者
还是提示 Bad file number
        ERROR:  Function activate_volume_group
        ERROR:  Failed to activate /dev/vglock

论坛徽章:
0
4 [报告]
发表于 2011-08-24 14:25 |只看该作者
做完vglock的镜像,你有同步到另外一台主机上吗?

论坛徽章:
0
5 [报告]
发表于 2011-08-24 14:44 |只看该作者
vglock  一般是在 共享磁盘 也就是存储上

不明白你说的 vglock 做了镜像是 对什么做了镜像

如果是对节点自带的本地盘做镜像 这跟双机没一点关系

如果是你对共享磁盘的vglock 做镜像 你为什么要这么干呢 ?

论坛徽章:
0
6 [报告]
发表于 2011-08-24 16:29 |只看该作者
怎么做的镜像?

论坛徽章:
0
7 [报告]
发表于 2011-08-24 17:03 |只看该作者
vglock是做什么用的,存放数据的还是做为锁卷组?如果是做作为锁卷组,建议是不要创建LV的,为什么要镜像呢。

论坛徽章:
0
8 [报告]
发表于 2011-08-24 18:06 |只看该作者
vglock 是锁卷组,上面有votelv,ocrlv的。
我对rac的datavg也做了镜像,同样提示
Bad file number
        ERROR:  Function activate_volume_group
        ERROR:  Failed to activate /dev/vglock

论坛徽章:
0
9 [报告]
发表于 2011-08-25 14:03 |只看该作者
我觉得你需要重新生成ascii文件了,锁盘之类的信息都变了

论坛徽章:
0
10 [报告]
发表于 2011-08-25 17:03 |只看该作者
HPUX SGeRAC - vgchange -a s vg01 : Bad file number
ISSUE:
Shared-mode volume group activation is only available through Serviceguard extension for RAC (Real Application Cluster)

First, the volume group is modified such that it will only activate in shared mode:


#srv1143:root: vgchange -S y -c y vg01
Performed Configuration change.
Volume group "vg01" has been successfully changed.



The problem occurs when the admin attempts to activate the VG in shared mode:


#srv1143:root: vgchange -a s vg01
vgchange: Couldn't activate volume group "vg01":
Bad file number



Configuration:

Serviceguard version A.11.16

SGeRAC is also loaded along with patch PHSS_32659

SOLUTION:
This issue has been identified as a problem and patches for HP-UX 11.11 and 11.23 will be produced.

The cause of the problem is due to setting the MWC bit in the logical volume area.

The workaround is to set the MWC bit to NO or NONE on the logical volume. Since no modifications can be made to volume groups activated in shared mode, the VG must first be changed to activate in standard mode or exclusive mode. Then set the MWC bit to NOMWC and then set the VG back to shared-mode activation.

Example:


# vgchange -c n vgname
# lvchange -M n -c y    (for all the mirrored logical volume in the VG)
or
# lvchange -M n -c n    (for all the mirrored logical volume in the VG)
# vgchange -a s -x vgname
or  
# vgchange -a n vgname; vgchange -a s vgname
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP