Couldn’t find device with uuidLVM底层磁盘丢失,查看lvm设置报错

报错信息有:

lvm> pvcreate /dev/sda3
  Couldn't find device with uuid SFDbPk-ZSu1-gxAb-hyHD-wxza-dODN-EzfeeG.

还有这样的:

root@master ~]# vgdisplay
  Couldn't find device with uuid QpTRUe-wJJw-VsdA-hyZh-KU0a-nN3N-EUa5ai.
  Couldn't find device with uuid mmn9lL-mJkX-0Gj8-Clb0-GR0C-oxoH-lhmInd.
  --- Volume group ---
  VG Name               vg_gznc
  System ID             
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  6
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                4
  Act PV                2
  VG Size               131.48 GiB
  PE Size               4.00 MiB
  Total PE              33660
  Alloc PE / Size       7554 / 29.51 GiB
  Free  PE / Size       26106 / 101.98 GiB
  VG UUID               9JsW7Q-zIb3-RjTZ-3qOY-knxn-2903-GlA0yP

解决方法:

vgreduce --removemissing vgname

例如:

[root@master ~]# vgreduce --removemissing vg_gznc
  Couldn't find device with uuid QpTRUe-wJJw-VsdA-hyZh-KU0a-nN3N-EUa5ai.
  Couldn't find device with uuid mmn9lL-mJkX-0Gj8-Clb0-GR0C-oxoH-lhmInd.
  Wrote out consistent volume group vg_gznc

再次查看就可以了

[root@master ~]# vgdisplay
  --- Volume group ---
  VG Name               vg_gznc
  System ID             
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  7
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               63.50 GiB
  PE Size               4.00 MiB
  Total PE              16256
  Alloc PE / Size       7554 / 29.51 GiB
  Free  PE / Size       8702 / 33.99 GiB
  VG UUID               9JsW7Q-zIb3-RjTZ-3qOY-knxn-2903-GlA0yP

就是这样的

相关文章

发表回复

您的电子邮箱地址不会被公开。