- 论坛徽章:
- 1
|
回复 3# fruitmantis
能不能细说一下啊,先执行vgcfgrestore,要lvmtab文件中有vg08的信息才能执行啊,现在这个vg08中只有一块磁盘,还是pvcreate过的。如果是先创建vg08卷组,然后使用vgcfgrestore的话,提示不能在备份的vg08.conf.bak中找到pv的构造信息。。。再说了,就算是这步过去了,那执行vgimport也不是行不通的啊?vgimport是恢复vg08的信息到lvmtab文件中,现在lvmtab文件已经存在vg08的信息了,这个命令不会执行成功的。
-----------------------------
mkdir /dev/vg08
mknod /dev/vg08/group c 64 0x080000
vgimport -m /tmp/vg08.map /dev/vg08 /dev/dsk/c3t6d0
Logical Volume is not defined on any physical volume.
"/dev/vg08/oracle" is missing Physical Volumes.
我尝试执行vgimport 直接导入vg08的信息,提示lv丢失了。。。
然后执行vgcfgrestore
bash-4.2# vgcfgrestore -f /tmp/vg08.conf.bak /dev/rdsk/c3t6d0
Volume Group configuration has been restored to /dev/rdsk/c3t6d0
激活vg08 失败···
bash-4.2# vgchange -a y vg08
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c3t6d0":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c3t6d0":
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 "vg08":
Quorum not present, or some physical volume(s) are missing.
现在手里还有一份lvmtab的备份,是vgexport vg08操作前的。
-------------------------------------------------------
想来想去,是不是vgcfgrestore 命令恢复的是vg08的信息???没有把磁盘的pvid恢复过去??? |
|