linux 之pvs磁盘报错

linux 之pvs磁盘报错

1、问题如下
[root@vm62 ~]# pvs
  WARNING: Device for PV btp1UQ-fde2-9ey9-hRWY-Ylj2-59Qz-NCsmxr not found or rejected by a filter.
  Couldn't find device with uuid btp1UQ-fde2-9ey9-hRWY-Ylj2-59Qz-NCsmxr.
  PV         VG     Fmt  Attr PSize   PFree  
  /dev/sda2  centos lvm2 a--  <19.00g      0 
  [unknown]  centos lvm2 a-m  <10.00g <10.00g

linux 之pvs磁盘报错_第1张图片

2、解决方法 (执行:vgreduce --removemissing -v centos,centos为vg名称)
[root@vm62 ~]# vgreduce --removemissing -v centos
  WARNING: Device for PV btp1UQ-fde2-9ey9-hRWY-Ylj2-59Qz-NCsmxr not found or rejected by a filter.
  Couldn't find device with uuid btp1UQ-fde2-9ey9-hRWY-Ylj2-59Qz-NCsmxr.
    There are 1 physical volumes missing.
    Couldn't find device with uuid btp1UQ-fde2-9ey9-hRWY-Ylj2-59Qz-NCsmxr.
    There are 1 physical volumes missing.
    Archiving volume group "centos" metadata (seqno 4).
    Removing PV with UUID btp1UQ-fde2-9ey9-hRWY-Ylj2-59Qz-NCsmxr from VG centos.
    Creating volume group backup "/etc/lvm/backup/centos" (seqno 5).
  Wrote out consistent volume group centos.
3、查看结果(正常状态如下)
[root@vm62 ~]# vgs
  VG     #PV #LV #SN Attr   VSize   VFree
  centos   1   2   0 wz--n- <19.00g    0 
[root@vm62 ~]# pvs
  PV         VG     Fmt  Attr PSize   PFree
  /dev/sda2  centos lvm2 a--  <19.00g    0 

你可能感兴趣的:(其他,linux,服务器,centos,其他)