问题

pvs 命令显示未知设备,
pvs找不到物理卷中UUID为的设备。

# pvs
WARNING: Device for PV [UUID] not found or rejected by a filter.
Couldn't find device with uuid [UUID].
PV VG Fmt Attr PSize PFree
/dev/xvda3 VGExaDb lvm2 a-- <24.50g 508.00m
/dev/xvdd1 VGExaDb lvm2 a-- <62.00g 1020.00m
[unknown] VGExaDb lvm2 a-m <20.00g <20.00g
之路教程 https://onitr oad .com

解决方案

如果物理磁盘在从 VG (LVM) 中删除之前从服务器中删除,则会发生这种情况。
在应用下面显示的任何步骤之前,请备份整个系统。

由于添加到 Volume 组的物理磁盘已删除且未使用或者未分配给任何 LV,因此从 LVM VG 中删除磁盘是安全的:

# pvs -o+pv_used
WARNING: Device for PV [UUID] not found or rejected by a filter.
Couldn't find device with uuid [UUID].
PV VG Fmt Attr PSize PFree Used
/dev/xvda3 VGExaDb lvm2 a-- <24.50g 508.00m 24.00g
/dev/xvdd1 VGExaDb lvm2 a-- <62.00g 1020.00m 61.00g
[unknown] VGExaDb lvm2 a-m <20.00g <20.00g 0

要修复错误/问题,请使用 --removemissing 指令执行 vgreduce。

# vgreduce VGExaDb --removemissing --test

然后在没有 --test 的情况下执行

# vgreduce VGExaDb --removemissing

使用以下命令验证未知错误

# pvs
pvs:Couldn't find device with uuid
日期:2020-09-17 00:14:08 来源:oir作者:oir