[linux-lvm] Unable to convert a broken LVM2 RAID1 to Linear volume
Shi Jin
jinzishuai at gmail.com
Wed Oct 23 16:50:04 UTC 2013
Hi there,
I have setup a LVM2 raid1 mirror with
lvconvert -m 1 --type raid1 /dev/vg_data/lv_test /dev/sdd
and then after I remove one of its legs, the remaining leg keeps on
working just fine. However, I then want to convert this to a simple
Linux volume.
it would fail:
[root at shi-rhel63 ~]# lvconvert -m 0 /dev/vg_data/lv_test
Couldn't find device with uuid QpjTRd-Cc0o-RC0y-7Gz8-GQ4u-25FM-0vO4xt.
Cannot change VG vg_data while PVs are missing.
Consider vgreduce --removemissing.
removemissing not working either
[root at shi-rhel63 ~]# vgreduce --removemissing vg_data
Couldn't find device with uuid QpjTRd-Cc0o-RC0y-7Gz8-GQ4u-25FM-0vO4xt.
WARNING: Partial LV lv_test needs to be repaired or removed.
WARNING: Partial LV lv_test_rmeta_1 needs to be repaired or removed.
WARNING: Partial LV lv_test_rimage_1 needs to be repaired or removed.
There are still partial LVs in VG vg_data.
To remove them unconditionally use: vgreduce --removemissing --force.
Proceeding to remove empty missing PVs.
What should I do in my case to convert the LV to linear?
My OS information:
[root at shi-rhel63 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)
[root at shi-rhel63 ~]# uname -a
Linux shi-rhel63 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT
2012 x86_64 x86_64 x86_64 GNU/Linux
[root at shi-rhel63 ~]# lvm version
LVM version: 2.02.95(2)-RHEL6 (2012-05-16)
Library version: 1.02.74-RHEL6 (2012-05-16)
Driver version: 4.22.6
Thanks a lot.
Shi
More information about the linux-lvm
mailing list