linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Marian Csontos <mcsontos@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Unable to convert a broken LVM2 RAID1 to Linear volume
Date: Thu, 24 Oct 2013 13:18:51 +0200	[thread overview]
Message-ID: <5269021B.5040205@redhat.com> (raw)
In-Reply-To: <CAFp1kvMoWy8okmvqXOg5uPCUcnRWbr9y_de4JDcCmLRk=6vLnQ@mail.gmail.com>

On 10/23/2013 06:50 PM, Shi Jin wrote:
> 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@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.

Following worked for me except I ended up with unclean FS:

     lvconvert -m 0 --repair -f vg_data/lv_test

-- Marian

>
> removemissing not working either
>
> [root@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@shi-rhel63 ~]#  cat /etc/redhat-release
> Red Hat Enterprise Linux Server release 6.3 (Santiago)
> [root@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@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
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

  reply	other threads:[~2013-10-24 11:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-23 16:50 [linux-lvm] Unable to convert a broken LVM2 RAID1 to Linear volume Shi Jin
2013-10-24 11:18 ` Marian Csontos [this message]
2013-10-24 17:30   ` Shi Jin
2013-11-06 22:13     ` Shi Jin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5269021B.5040205@redhat.com \
    --to=mcsontos@redhat.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).