LVM分区在查看PV时提示以下错误:
1
2
3
4
5
|
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:
1
2
3
|
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:
1
|
vgreduce VolGroup00
/dev/xvdb1
|
删除PV:
1
|
pvremove
/dev/xvdb1
|
https://www.haiyun.me/archives/lvm-vg-reduce-pv.html