探索LV卷丢失的恢复方法
实验的时候想拓展一下LVM空间,重启后用pvdisplay一看pv全部挂掉了,当然就更不用说lv了。最底下的pv是我新加的所以正常。
Couldn’t find device with uuid ‘dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO’.
Couldn’t find device with uuid ‘dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO’.
Couldn’t find device with uuid ‘dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO’.
Couldn’t find device with uuid ‘dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO’.
Couldn’t find device with uuid ‘dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO’.
Couldn’t find all physical volumes for volume group myvg.
Couldn’t find device with uuid ‘dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO’.
Couldn’t find all physical volumes for volume group myvg.
Couldn’t find device with uuid ‘dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO’.
Couldn’t find all physical volumes for volume group myvg.
Couldn’t find device with uuid ‘dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO’.
Couldn’t find all physical volumes for volume group myvg.
Can’t read myvg: skipping
Couldn’t find device with uuid ‘dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO’.
Couldn’t find all physical volumes for volume group myvg.
Couldn’t find device with uuid ‘dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO’.
Couldn’t find all physical volumes for volume group myvg.
Couldn’t find device with uuid ‘dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO’.
Couldn’t find all physical volumes for volume group myvg.
Couldn’t find device with uuid ‘dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO’.
Couldn’t find all physical volumes for volume group myvg.
Can’t read myvg: skipping
Couldn’t find device with uuid ‘dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO’.
Couldn’t find all physical volumes for volume group myvg.
Couldn’t find device with uuid ‘dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO’.
Couldn’t find all physical volumes for volume group myvg.
Couldn’t find device with uuid ‘dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO’.
Couldn’t find all physical volumes for volume group myvg.
Couldn’t find device with uuid ‘dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO’.
Couldn’t find all physical volumes for volume group myvg.
Can’t read myvg: skipping
— NEW Physical volume —
PV Name /dev/sdc6
VG Name
PV Size 23.50 MB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID 7vG1NF-QzPj-1JZG-J9xb-tm2M-0gOA-NRIShI
解决:
1.pvcreate –uuid “dsO4dY-tYuc-iFrC-XYi2-WijG-0jZx-vrPUCO” –restorefile /etc/lvm/archive/myvg00000.vg /dev/sdc1
Physical volume “/dev/sdc1” successfully created
2.vgcfgrestore myvg
Restored volume group failed
恢复失败,不知道是什么原因,不知道有人解决过没有?