做了一个Lvm逻辑卷,由三个物理磁盘分区组成,一天不小心把一块物理分区删除了,接下来lvdisplay和vgdisplay都出现如下错误提示:
[root@centos-wang ~]# lvdisplay
Couldn't find device with uuid WZtJhn-ZXkw-F2SZ-vJLp-hkyf-omsT-oY719z.
Couldn't find device with uuid 9yV24H-RlIL-mMhQ-FZ9j-IY0d-2bP8-qi6KRS.
[root@centos-wang ~]# vgdisplay
Couldn't find device with uuid WZtJhn-ZXkw-F2SZ-vJLp-hkyf-omsT-oY719z.
Couldn't find device with uuid 9yV24H-RlIL-mMhQ-FZ9j-IY0d-2bP8-qi6KRS.
--- Volume group ---
VG Name vbirdvg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 3
Act PV 1
VG Size 5.12 GiB
PE Size 32.00 MiB
Total PE 164
Alloc PE / Size 0 / 0
Free PE / Size 164 / 5.12 GiB
VG UUID BW5mQ2-BDaE-IgFd-GEnr-a2SU-TqfA-G5wyvn
解决办法就是:
vgreduce --removemissing VolGroup00
[root@centos-wang ~]# vgreduce --removemissing vbirdvg
Couldn't find device with uuid WZtJhn-ZXkw-F2SZ-vJLp-hkyf-omsT-oY719z.
Couldn't find device with uuid 9yV24H-RlIL-mMhQ-FZ9j-IY0d-2bP8-qi6KRS.
Wrote out consistent volume group vbirdvg
[root@centos-wang ~]# vgdisplay
--- Volume group ---
VG Name vbirdvg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 3.28 GiB
PE Size 32.00 MiB
Total PE 105
Alloc PE / Size 0 / 0
Free PE / Size 105 / 3.28 GiB
VG UUID BW5mQ2-BDaE-IgFd-GEnr-a2SU-TqfA-G5wyvn
解决问题。
阅读(10280) | 评论(0) | 转发(0) |