数据是回来了,可是怎么能不用创建文件系统呢???
bash-4.2# lvcreate -L 200 -n oracle vg08
bash-4.2# fstyp /dev/vg08/oracle
vxfs
这个文件系统是怎么出现的呢???
那能不能不用自己手动去创建oracle逻辑卷,找回oracle逻辑卷的信息呢???
谢谢了···作者: wdfwdf2727 时间: 2012-01-09 10:29 回复 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.