Linux LVM 中出现如上的问题,解决方法如下:
# vgreduce --removemissing --force volgroup
Couldn't find device with uuid 'qGxwdl-gtii-BXXF-OnKo-a72V-GfpX-IEQrmm'.
Couldn't find device with uuid 'qGxwdl-gtii-BXXF-OnKo-a72V-GfpX-IEQrmm'.
Couldn't find device with uuid 'qGxwdl-gtii-BXXF-OnKo-a72V-GfpX-IEQrmm'.
Couldn't find device with uuid 'qGxwdl-gtii-BXXF-OnKo-a72V-GfpX-IEQrmm'.
Couldn't find device with uuid 'qGxwdl-gtii-BXXF-OnKo-a72V-GfpX-IEQrmm'.
Couldn't find device with uuid 'qGxwdl-gtii-BXXF-OnKo-a72V-GfpX-IEQrmm'.
Couldn't find device with uuid 'qGxwdl-gtii-BXXF-OnKo-a72V-GfpX-IEQrmm'.
Couldn't find device with uuid 'qGxwdl-gtii-BXXF-OnKo-a72V-GfpX-IEQrmm'.
Volume group mirrvg metadata is inconsistent
Unable to determine mirror sync status of mirrvg/lvmirror1.
Volume group mirrvg metadata is inconsistent然后在pvs查看
活着是vgs查看
ps:
1,vgreduce
--removemissing
Removes all missing physical volumes from the volume group, if
there are no logical volumes allocated on those. This resumes
normal operation of the volume group (new logical volumes may
again be created, changed and so on).
2,在删除pv中的未知设备(vg中添加了这个pv),应先确保lv中没有占用这个pv的空间,,不然利用 vgreduce vg_name --removemissing --force 这个命令是清除不了的!!!
转载于:https://blog.51cto.com/yl497103815/1180426