PV unknown device VG处理

如:

WARNING: Device for PV ZKBljh-qpd7-IhOp-9pSg-1270-kOe0-HZOuYi not found or rejected by a filter
PV unknown device   VG MKVG   lvm2 [100.00 GiB / 100.00 GiB free]
[root@linuxea-Node49 ~]# vgscan -P
  PARTIAL MODE. Incomplete logical volumes will be processed.
  Reading all physical volumes.  This may take a while...
  WARNING: Device for PV ZKBljh-qpd7-IhOp-9pSg-1270-kOe0-HZOuYi not found or rejected by a filter.
  WARNING: Device for PV L1x9c0-sItt-Wk79-NfGN-dkE8-fl4T-46oJld not found or rejected by a filter.
  WARNING: Device for PV W8c11Z-bZiH-NzYf-edTw-fghk-uhiK-oKmRXE not found or rejected by a filter.
  Found volume group "MKVG" using metadata type lvm2

查看

[root@linuxea-Node49 ~]# pvscan -P
  PARTIAL MODE. Incomplete logical volumes will be processed.
  WARNING: Device for PV ZKBljh-qpd7-IhOp-9pSg-1270-kOe0-HZOuYi not found or rejected by a filter.
  WARNING: Device for PV L1x9c0-sItt-Wk79-NfGN-dkE8-fl4T-46oJld not found or rejected by a filter.
  WARNING: Device for PV W8c11Z-bZiH-NzYf-edTw-fghk-uhiK-oKmRXE not found or rejected by a filter.
  WARNING: Device for PV ZKBljh-qpd7-IhOp-9pSg-1270-kOe0-HZOuYi not found or rejected by a filter.
  WARNING: Device for PV L1x9c0-sItt-Wk79-NfGN-dkE8-fl4T-46oJld not found or rejected by a filter.
  WARNING: Device for PV W8c11Z-bZiH-NzYf-edTw-fghk-uhiK-oKmRXE not found or rejected by a filter.
  PV /dev/xvda2       VG MKVG   lvm2 [14.50 GiB / 0    free]
  PV unknown device   VG MKVG   lvm2 [100.00 GiB / 100.00 GiB free]
  PV unknown device   VG MKVG   lvm2 [20.01 GiB / 20.01 GiB free]
  PV unknown device   VG MKVG   lvm2 [20.01 GiB / 20.01 GiB free]
  Total: 4 [154.51 GiB] / in use: 4 [154.51 GiB] / in no VG: 0 [0   ]

直接--removemissing

[root@linuxea-Node49 ~]# vgreduce --removemissing -v MKVG
    Finding volume group "MKVG"
  WARNING: Device for PV ZKBljh-qpd7-IhOp-9pSg-1270-kOe0-HZOuYi not found or rejected by a filter.
  WARNING: Device for PV L1x9c0-sItt-Wk79-NfGN-dkE8-fl4T-46oJld not found or rejected by a filter.
  WARNING: Device for PV W8c11Z-bZiH-NzYf-edTw-fghk-uhiK-oKmRXE not found or rejected by a filter.
    There are 3 physical volumes missing.
    There are 3 physical volumes missing.
    Trying to open VG MKVG for recovery...
    Found same device /dev/xvda2 with same pvid jIyyxh6U9R3ev3PcOApJognXuKPlWkWQ
  WARNING: Device for PV ZKBljh-qpd7-IhOp-9pSg-1270-kOe0-HZOuYi not found or rejected by a filter.
  WARNING: Device for PV L1x9c0-sItt-Wk79-NfGN-dkE8-fl4T-46oJld not found or rejected by a filter.
  WARNING: Device for PV W8c11Z-bZiH-NzYf-edTw-fghk-uhiK-oKmRXE not found or rejected by a filter.
    There are 3 physical volumes missing.
    There are 3 physical volumes missing.
    Archiving volume group "MKVG" metadata (seqno 8).
    Removing PV with UUID ZKBljh-qpd7-IhOp-9pSg-1270-kOe0-HZOuYi from VG MKVG
    Removing PV with UUID L1x9c0-sItt-Wk79-NfGN-dkE8-fl4T-46oJld from VG MKVG
    Removing PV with UUID W8c11Z-bZiH-NzYf-edTw-fghk-uhiK-oKmRXE from VG MKVG
    Creating volume group backup "/etc/lvm/backup/MKVG" (seqno 9).
  Wrote out consistent volume group MKVG

在查看

[root@linuxea-Node49 ~]# vgscan -P
  PARTIAL MODE. Incomplete logical volumes will be processed.
  Reading all physical volumes.  This may take a while...
  Found volume group "MKVG" using metadata type lvm2
5 分享

您可以选择一种方式赞助本站

支付宝扫码赞助

支付宝扫码赞助

日期: 2017-08-30分类: Sys Basics

标签: 基础命令

发表评论