Problem:
Operation: Create/dev/sda10/dev/sda11 --> PV -----> vg0 ------> node1 (LV) ---> Create a File System
Misoperation: delete/dev/sda10/dev/sda11 directly
Correct operation: first 1. Uninstall LV 2. lvremove 3. vgremove 4. pvremove 5. fdisk Modify/dev/sda10
The following are problems with misoperations.
[[Email protected] 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
[[Email protected] 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
[[Email protected] desktop] # LVS
Couldn't find device with UUID BhuuIl-FPqg-0Lqa-epou-pZxK-XEFo-e7M4q0.
[[Email protected] 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
Pvuuid 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
Solution:
[[Email protected] desktop] # vgreduce -- removemissing vg0
Couldn't find device with UUID BhuuIl-FPqg-0Lqa-epou-pZxK-XEFo-e7M4q0.
Wrote out consistent volume group vg0
[[Email protected] 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
This article is from the "8176010" blog and will not be reproduced!
Couldn't find device with UUID 'xxxxxxxxxxxxxxxx'