<p dir="ltr">thank you very much.</p>
<p dir="ltr">when i run your command, my machine froze but after reset,  the virtual volumes undet the raid1 are now showing as regular volumes and i was able to lvremove them and original volume keeps on working.</p>
<p dir="ltr">thanks a lot </p>
<p dir="ltr">Shi</p>
<div class="gmail_quote">On 2013-10-24 5:23 AM, "Marian Csontos" <<a href="mailto:mcsontos@redhat.com">mcsontos@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 10/23/2013 06:50 PM, Shi Jin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi there,<br>
<br>
I have setup a LVM2 raid1 mirror with<br>
    lvconvert  -m 1 --type raid1 /dev/vg_data/lv_test /dev/sdd<br>
and then after I remove one of its legs, the remaining leg keeps on<br>
working just fine. However, I then want to convert this to a simple<br>
Linux volume.<br>
<br>
it would fail:<br>
<br>
[root@shi-rhel63 ~]# lvconvert -m 0 /dev/vg_data/lv_test<br>
   Couldn't find device with uuid QpjTRd-Cc0o-RC0y-7Gz8-GQ4u-<u></u>25FM-0vO4xt.<br>
   Cannot change VG vg_data while PVs are missing.<br>
   Consider vgreduce --removemissing.<br>
</blockquote>
<br>
Following worked for me except I ended up with unclean FS:<br>
<br>
    lvconvert -m 0 --repair -f vg_data/lv_test<br>
<br>
-- Marian<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
removemissing not working either<br>
<br>
[root@shi-rhel63 ~]# vgreduce  --removemissing vg_data<br>
   Couldn't find device with uuid QpjTRd-Cc0o-RC0y-7Gz8-GQ4u-<u></u>25FM-0vO4xt.<br>
   WARNING: Partial LV lv_test needs to be repaired or removed.<br>
   WARNING: Partial LV lv_test_rmeta_1 needs to be repaired or removed.<br>
   WARNING: Partial LV lv_test_rimage_1 needs to be repaired or removed.<br>
   There are still partial LVs in VG vg_data.<br>
   To remove them unconditionally use: vgreduce --removemissing --force.<br>
   Proceeding to remove empty missing PVs.<br>
<br>
What should I do in my case to convert the LV to linear?<br>
<br>
My OS information:<br>
<br>
[root@shi-rhel63 ~]#  cat /etc/redhat-release<br>
Red Hat Enterprise Linux Server release 6.3 (Santiago)<br>
[root@shi-rhel63 ~]# uname -a<br>
Linux shi-rhel63 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT<br>
2012 x86_64 x86_64 x86_64 GNU/Linux<br>
[root@shi-rhel63 ~]# lvm version<br>
   LVM version:     2.02.95(2)-RHEL6 (2012-05-16)<br>
   Library version: 1.02.74-RHEL6 (2012-05-16)<br>
   Driver version:  4.22.6<br>
<br>
<br>
Thanks a lot.<br>
<br>
Shi<br>
<br>
______________________________<u></u>_________________<br>
linux-lvm mailing list<br>
<a href="mailto:linux-lvm@redhat.com" target="_blank">linux-lvm@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-lvm" target="_blank">https://www.redhat.com/<u></u>mailman/listinfo/linux-lvm</a><br>
read the LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/" target="_blank">http://tldp.org/HOWTO/LVM-<u></u>HOWTO/</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
linux-lvm mailing list<br>
<a href="mailto:linux-lvm@redhat.com" target="_blank">linux-lvm@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-lvm" target="_blank">https://www.redhat.com/<u></u>mailman/listinfo/linux-lvm</a><br>
read the LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/" target="_blank">http://tldp.org/HOWTO/LVM-<u></u>HOWTO/</a><br>
</blockquote></div>