LVM分区在查看PV时提示以下错误:
pvscan
Couldn't find device with uuid MBRrbL-wujm-Tfpe-h2qo-M6vo-9W1B-Im0zjo.
PV /dev/xvda2 VG VolGroup00 lvm2 [7.88 GB / 0 free]
PV /dev/xvda3 VG VolGroup00 lvm2 [1.97 GB / 0 free]
PV unknown device VG VolGroup00 lvm2 [9.97 GB / 9.97 GB free]
VG中去除PV unknown device:
vgreduce --removemissing /dev/VolGroup00 #去除未知或已丢失的VG
Couldn't find device with uuid MBRrbL-wujm-Tfpe-h2qo-M6vo-9W1B-Im0zjo.
Wrote out consistent volume group VolGroup00
从VG中去除特定PV:
vgreduce VolGroup00 /dev/xvdb1
删除PV:
pvremove /dev/xvdb1