标题: pvs显示unknown device [打印本页] 作者: mahan 时间: 2023-7-2 16:59 标题: pvs显示unknown device 一 、不要unknown的那块pv盘的解决办法
[root@gezi ~]# pvs
WARNING: Device for PV D1LLfT-3Hle-NbrP-5165-Q6WR-2UWF-2xEIR3 not found or rejected by a filter.
PV VG Fmt Attr PSize PFree
/dev/xvda2 vg1 lvm2 a-- 79.51g 23.62g
/dev/xvdb lvm2 --- 250.00g 250.00g
unknown device vg1 lvm2 a-m 250.00g 250.00g
[root@gezi ~]# vgs
WARNING: Device for PV D1LLfT-3Hle-NbrP-5165-Q6WR-2UWF-2xEIR3 not found or rejected by a filter.
VG #PV #LV #SN Attr VSize VFree
vg1 2 2 0 wz-pn- 329.50g 273.62g
[root@gezi ~]# vgreduce --removemissing /dev/vg1
WARNING: Device for PV D1LLfT-3Hle-NbrP-5165-Q6WR-2UWF-2xEIR3 not found or rejected by a filter.
WARNING: Device for PV D1LLfT-3Hle-NbrP-5165-Q6WR-2UWF-2xEIR3 not found or rejected by a filter.
Wrote out consistent volume group vg1
[root@gezi ~]#
[root@gezi ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/xvda2 vg1 lvm2 a-- 79.51g 23.62g
/dev/xvdb lvm2 --- 250.00g 250.00g
[root@gezi ~]#
#说明:
#If a logical volume contains a physical volume that fails, you cannot use that logical volume. To remove missing physical volumes from a volume group, you can use the --removemissing parameter of the vgreduce command, if there are no logical volumes that are allocated on the missing physical volumes.
#来自:Red_Hat_Enterprise_Linux-7-Logical_Volume_Manager_Administration-en-US 4.3.7小节。