免费注册 查看新帖 |

Chinaunix

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

[故障求助] varyonvg时遇到的问题 [复制链接]

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-11 10:47 |只看该作者 |倒序浏览
在varyonvg的时候,容易遇到以下几个问题:
1、0516-013 varyonvg: The volume group cannot be varied on because
there are no good copies of the descriptor area.
2、varyonvg: Volume group cannot be varied on without a
       quorum. More physical volumes in the group must be active.
       Run diagnostics on inactive PVs

以下是varyonvg的操作过程:
Ø varyonvg将打开/etc/vg文件,获得VG的锁。Obtain a lock for the volume group.
Ø 每个VGDA上的时间戳被读取,确保VGDA的信息不是stale状态。最近的保持一致的VGDA被选取,作为以后使用的参考点。
Ø 如果多数PV不可访问,varyonvg将失败。可以强制激活它。(-f参数)
Ø PV上的元数据(metadata)被更新
Ø 所有PV上的VGDA被更新并保持一致性。
Ø LVM的device driver被更新,并包含最新的VG信息。
Ø 如果有stale partition,syncvg将被调用。
由以上可以确定varyonvg不修改vgda信息

varyonvg 命令激活由 VolumeGroup 参数指定的卷组及其所有相关的逻辑卷。被激活的卷组是可以使用的。当卷组被激活时,如果物理分区不是当前的,则它们将被同步。

无论何时,当设备配置数据库与存储在逻辑卷管理器中的信息不符时,所有物理卷列表及其状态会显示到标准输出。卷组可以是联机的,也可以不是。必须仔细检查列表,并根据报告的状态采取适当的操作以保持系统的完整性。

当以并行方式联机时,如果 varyon 进程检测到有系统先前不知道的逻辑卷,则导入它们的定义。新设备专门文件的许可权和所有权被复制到卷组专门文件的许可权和所有权。如果已经在创建它的节点上更改了这些逻辑卷的设备专门文件的许可权和/或所有权,则必须在该节点执行同样的更改。

如果卷组因损失大部分物理卷而无法联机,则显示所有物理卷及其状态的列表。要在此情况下使这些卷组联机,必须使用强制选项。

如果大部分物理卷不可访问(没有定额),varyonvg 将不能使卷组联机。即使已禁用定额检查,也是如此。禁用定额检查只能确保即使在定额丢失的情况下卷组仍然联机。

如果有任何物理卷处于 PV_MISSING 状态且定额检查被禁用,则卷组将不会联机。即使有定额数量的磁盘可用,也是如此。要在此情况下联机,或者使用强制选项,或者将环境变量 MISSINGPV_VARYON 设置为 TRUE(如果该卷组需要在引导时丢失磁盘的情况下联机,在 /etc/environment 中设置此值。)
chvg -Qn vg  主要针对qurom丢失
varyonvg -f  vg 主要针对pv丢失
以下是具体分析:
其实出现varyonvg的错误,更深层的分析应该是这两种情况:
1,pv可以访问,但是pv上的vgda不能正常读取
2,pv不能访问,所以导致vgda也不能访问
以上的vgda应该都未损坏,只是不能正常读取

针对第一种情况,可以使用-f ,或将qurom关闭 将卷组激活,或考虑exportvg ,importvg
而在第二种情况下,可以使用-f ,但是如果在过多的pv丢失的话,即使使用-f且关闭qurom的情况下,也不能激活卷组。

再就是数据恢复,
再第一种情况下,不丢失pv,很容易恢复数据
第二种情况下 ,丢失pv的情况下,在ibm信息中心 找到了这样的信息:
针对与1个pv的vg
0516–013 The volume group cannot be varied on because there are no good copies of the descriptor area Explanation: Most of the volume group descriptor area (VGDA) cannot be accessed or is damaged. User Response: v Verify that one of the disks where the volume group is located is available by doing the following: 80
Message
Center
Reference
1. Issue the lspv command to see if the disk is available. 2. If the disk is not available, issue the mkdev command to make it available. 3. If you are unable to make the disk available, run hardware diagnostics by issuing the diag command. 4. If the disk is available, run the odmdelete command to delete the damaged volume group from the configuration database by typing the following on the command line: odmdelete -q name=VolumeGroupName -o CuAt 5. Use the System Management Interface Tool (SMIT) to add a new volume group. OR v Shut down your system and check for any loose or faulty cables around the fixed-disk area by doing the following: 1. Check your adapters and power sources. 2. Reboot your system and enter your command again.
仅针对于多个pv的vg
1. If the varyon operation reports a missing physical volume, use the chpv -vr command to temporarily remove the volume from the volume group.
2. Reissue your command to make the volume group partially available.
3. After the problem is corrected and the physical volume is brought back online, issue the chpv -va command to return the physical volume and make it available again to the volume group.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/16252/showart_126478.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP