免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: 红烧排骨
打印 上一主题 下一主题

VG简单问题求助!!!!!! [复制链接]

论坛徽章:
0
21 [报告]
发表于 2005-12-06 13:42 |只看该作者
原帖由 红烧排骨 于 2005-12-6 09:24 发表


这是什么意思? 看不懂阿.怎么看一致否?.怎么做vgcfgrestore


关于命令的详细用法,楼主可以man一些,收获会更大一些的

1.先做: vgcfgrestore,命令的形式如下:
   # vgcfgrestore  -n  /dev/vg02    /dev/rdsk/c3t9d0
2.激活卷组,应该可以正常激活的
   #vgchange -a y vg02
3.查看卷组中原来的LV是否还存在的,如果不存在的话,手工建立或通过命令让系统自己查找
   #vgexport   vg02   (根据实际情况调整,出错不负责任的:)
   #vgscan
   #vgimport
4.查看卷组和LV信息是否正常:vgdisplay,lvdisplay

论坛徽章:
0
22 [报告]
发表于 2005-12-06 14:34 |只看该作者
ll /dev/dsk/* |grep 0x015000
ll /dev/rdsk/* |grep 0x015000
看看啥结果

strings /etc/lvmconf/vg01.conf

mv /etc/lvmtab /etc/lvmtab.bak
vgscan -v

另外,你确定现在的c1t5d0就是你原来vg01的那个c1t5d0吗?

[ 本帖最后由 wdbj 于 2005-12-6 15:04 编辑 ]

论坛徽章:
0
23 [报告]
发表于 2005-12-06 17:43 |只看该作者
试一试vgcfgrestore -n /dev/vg12 /dev/rdsk/c2t2d0

论坛徽章:
0
24 [报告]
发表于 2005-12-07 09:08 |只看该作者
#ll /dev/dsk/* |grep 0x015000
brw-r-----   1 bin        sys         31 0x015000 Apr  1  1999 /dev/dsk/c1t5d0

syds0071:/dev/rdsk#ll /dev/rdsk/* |grep 0x015000
crw-r-----   1 bin        sys        188 0x015000 Dec  6 10:54 /dev/rdsk/c1t5d0

k#strings /etc/lvmconf/vg01.conf
CONFIG01
/dev/vg01
/dev/rdsk/c1t5d0
LVMREC01w
VGDA0001
VGSA0001<

mv /etc/lvmtab /etc/lvmtab.bak 哪我的lvmtab不是没了嘛?
vgscan -v  没有反应



我的fstab里还有这条呢

/dev/vg01/lvol1 /sydswjxt vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2

[ 本帖最后由 红烧排骨 于 2005-12-7 09:13 编辑 ]

论坛徽章:
0
25 [报告]
发表于 2005-12-07 09:27 |只看该作者
原帖由 guduker 于 2005-12-6 13:42 发表


关于命令的详细用法,楼主可以man一些,收获会更大一些的

1.先做: vgcfgrestore,命令的形式如下:
   # vgcfgrestore  -n  /dev/vg02    /dev/rdsk/c3t9d0
2.激活卷组,应该可以正常激活的
   #vgch ...



vgchange -a y vg01
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c1t5d0":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c1t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "vg01":
Quorum not present, or some physical volume(s) are missing.


激活不了.我的PV没了?

论坛徽章:
0
26 [报告]
发表于 2005-12-07 10:18 |只看该作者
vgscan 就是重新生成个新的lvmtab,但之前需要保留原有lvmtab的备份。
vgscan 后,重新strings /etc/lvmtab看看新的lvmtab有什么区别没有

论坛徽章:
0
27 [报告]
发表于 2005-12-07 10:45 |只看该作者
vgscan -v
Creating "/etc/lvmtab".
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg00".
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg01".
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vgoa".


然后strings /etc/lvmtab
里面是空的

论坛徽章:
0
28 [报告]
发表于 2005-12-07 11:16 |只看该作者
如果vgscan生成不了有效的lvmtab,说明你的盘头信息被破坏了,你可以试试vgimport (具体怎么用man一下),把vg01 导入回来,然后再看看lvmtab有什么变化。

另外,如果要恢复到原来状态,就把刚才备份的lvmtab替换回去就行了。

论坛徽章:
0
29 [报告]
发表于 2005-12-07 17:25 |只看该作者
现在的报错状态不一定很准,建议重新启动一下,然后看报什么错?

[ 本帖最后由 stewen 于 2005-12-7 18:12 编辑 ]

论坛徽章:
0
30 [报告]
发表于 2005-12-08 09:15 |只看该作者
vgscan -v 后.lvmtab里面少了原来那条记录了.就是我要的vg01没有了

Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c1t5d0


现在上面跑业务.有时间一定重启


我要是重新做vg01呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP