Couldn’t find device with uuid ‘xxxxxxxxxxxxx’

问题:

操作:创建/dev/sda10 /dev/sda11  -->pv  ----->  vg0------>node1(lv)--->创建文件系统

误操作:直接将/dev/sda10 /dev/sda11 删除

正确操作:先1.卸载lv  2.lvremove 3.vgremove 4.pvremove 5.fdisk 修改/dev/sda10

下面是误操作出现的问题

[root@server100 Desktop]# pvs
  Couldn't find device with uuid BhuuIl-FPqg-0Lqa-epou-pZxK-XEFo-e7M4q0.
  PV             VG   Fmt  Attr PSize  PFree
  /dev/sda10     vg0  lvm2 a--  10.00g 10.00g
  unknown device vg0  lvm2 a-m   5.01g  5.01g

[root@server100 Desktop]# vgs
  Couldn't find device with uuid BhuuIl-FPqg-0Lqa-epou-pZxK-XEFo-e7M4q0.
  VG   #PV #LV #SN Attr   VSize  VFree
  vg0    2   0   0 wz-pn- 15.01g 15.01g


[root@server100 Desktop]# lvs
  Couldn't find device with uuid BhuuIl-FPqg-0Lqa-epou-pZxK-XEFo-e7M4q0.

[root@server100 Desktop]# pvdisplay
  Couldn't find device with uuid BhuuIl-FPqg-0Lqa-epou-pZxK-XEFo-e7M4q0.
  --- Physical volume ---
  PV Name               unknown device
  VG Name               vg0
  PV Size               5.01 GiB / not usable 2.10 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              1282
  Free PE               1282
  Allocated PE          0
  PV UUID               BhuuIl-FPqg-0Lqa-epou-pZxK-XEFo-e7M4q0
   
  --- Physical volume ---
  PV Name               /dev/sda10
  VG Name               vg0
  PV Size               10.00 GiB / not usable 4.54 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              2560
  Free PE               2560
  Allocated PE          0
  PV UUID               7jynLT-jQ8Z-Oo1Q-yLex-PtSC-yl3G-wt34l2


解决:
[root@server100 Desktop]# vgreduce --removemissing vg0
  Couldn't find device with uuid BhuuIl-FPqg-0Lqa-epou-pZxK-XEFo-e7M4q0.
  Wrote out consistent volume group vg0
[root@server100 Desktop]# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda10
  VG Name               vg0
  PV Size               10.00 GiB / not usable 4.54 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              2560
  Free PE               2560
  Allocated PE          0
  PV UUID               7jynLT-jQ8Z-Oo1Q-yLex-PtSC-yl3G-wt34l2

本文出自 “8176010” 博客,谢绝转载!

你可能感兴趣的:(linux,device)