免费注册 查看新帖 |

Chinaunix

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

真诚请教:有关Mirror Disk的镜像操作。 [复制链接]

论坛徽章:
0
41 [报告]
发表于 2003-09-17 19:44 |只看该作者

真诚请教:有关Mirror Disk的镜像操作。

你的以下结论都不对,
1如果这个硬盘在其他地方用过的话,肯定要要pvcreate,不管是否在线更换。
2。如果离线更换硬盘,不一定要关机前要vgreduce这块盘,你可以加-f参数来pvcreate
3。如前2所述

论坛徽章:
0
42 [报告]
发表于 2003-09-17 19:46 |只看该作者

真诚请教:有关Mirror Disk的镜像操作。

补充一下,重启以后要进单用户来做。

论坛徽章:
0
43 [报告]
发表于 2003-09-18 10:03 |只看该作者

真诚请教:有关Mirror Disk的镜像操作。

to:jijianjun
无论在线还是离线,只要新的硬盘还插在原来位置,只要lvmconf下的vg信息还在,我觉得都不需要作pvcreate的.
你作过实验了,不知离线替换时,vgcfgrestore为何不能成功,能说来听听么?

论坛徽章:
0
44 [报告]
发表于 2003-09-18 13:21 |只看该作者

真诚请教:有关Mirror Disk的镜像操作。

过程如下,但不好意思,我不是在单用户模式下做的。
# vgcfgrestore -n /dev/vg00 -o /dev/rdsk/c2t2d0 /dev/rdsk/c2t2d0
vgcfgrestore: Couldn't query physical volume "/dev/dsk/c2t2d0":
The specified path does not correspond to physical volume attached to
this volume group
Volume Group configuration has been restored to /dev/rdsk/c2t2d0     
#cp /etc/lvmtab /etc/lvmtab030914
# rm /etc/lvmtab
# pvcreate -f -B /dev/rdsk/c2t2d0
Creating "/etc/lvmtab".
Physical volume "/dev/rdsk/c2t2d0" has been successfully created.
# vgcfgrestore -n /dev/vg00 -o /dev/rdsk/c2t2d0 /dev/rdsk/c2t2d0
vgcfgrestore: Volume group "/dev/vg00" does not exist in the "/etc/lvmtab" file.
Volume Group configuration has been restored to /dev/rdsk/c2t2d0
#cp /etc/lvmtab030914 /etc/lvmtab
# vgcfgrestore -n /dev/vg00 -o /dev/rdsk/c2t2d0 /dev/rdsk/c2t2d0
vgcfgrestore: Couldn't query physical volume "/dev/dsk/c2t2d0":
The specified path does not correspond to physical volume attached to
this volume group
Volume Group configuration has been restored to /dev/rdsk/c2t2d0     
#vgextend /dev/vg00 /dev/dsk/c2t2d0
vgextend: Warning: couldn't query physical volume "/dev/dsk/c2t2d0":
The specified path does not correspond to physical volume attached to
this volume group

论坛徽章:
0
45 [报告]
发表于 2003-09-18 13:48 |只看该作者

真诚请教:有关Mirror Disk的镜像操作。

To jijianjun:
If the device file of the disk is not changed(actullay in your case it will not be changed because the SCSI controller and target number of the new disk is the same as the old one),
you don't need to do 'vgcfgrestore' with '-o' option.
I think you can just use
'vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t2d0'   
to restore the lvm configuration stored under /etc/lvmconf to the new disk.

And it is not necessary to do 'pvcreate' at all, 'vgcfgrestore' will restore the PVRA to the new disk.

I have tried to do so and I succeeded.

You can try again if you such an opptunity.

BTW, it is unuseful to use '-f' option with 'pvcreate' to forcefully initialize one disk when it is listed in the /etc/lvmtab.

论坛徽章:
0
46 [报告]
发表于 2015-03-27 09:58 |只看该作者
回复 3# albert


   到“mkboot /dev/rdsk/cXtYdZ (Make the new disk a boot disk)”这一步可以执行但有提示PE大小的问题,
   做lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/cXtYdZ就没有信息了,就停止了没有任何提示和反应,但是还是可以操作,用ioscan -fnC disk 查看,新盘没有生成LVOL1相关信息。
   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP