linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: malahal@us.ibm.com
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Removing a PV from a mirror
Date: Tue, 12 Jan 2010 11:16:09 -0800	[thread overview]
Message-ID: <20100112191609.GA28804@us.ibm.com> (raw)
In-Reply-To: <1263268475.3246.1.camel@pc7.dolda2000.com>

Fredrik Tolf [fredrik@dolda2000.com] wrote:
> Oh, sorry; when I go back and read it, I realize that I was a bit
> unclear. :) The LV started working again once I reconnected the PV and
> rebooted again, so there's no damage done.
> 
> I'm still just wondering how to actually remove the PV from the mirror.

Since your PV is flakey (failing), probably the best way is to convert
the LV to linear first and then converting back to mirror with a new PV.

A failing PV should make the system convert to linear LV if you have
right software (works on RHEL based system). Or you can do the following
steps manually. First step may not be necessary, but it should not cause
any harm in your case.

0) Run vgcfgbackup to back up your LVM metadata. This is needed if
   something goes wrong. You have been warned. If you know, this data is
   already there in archives...
1) lvconvert --mirrorlog core <LV-name>
2) lvconvert -m0 <LV-name> <Failing-PV-name>
	Make sure this did remove the PV you wanted. If not, use
	vgcfgrestore to restore and ask for help...
3) Insert your new disk, create PV label on it, and add it to your VG
4) Run "lvconvert -m1 <LV-name> <New-PV-name>
5) If you need "disk" log, run another lvconvert to get disk log.

Hope this helps,
--Malahal.

  parent reply	other threads:[~2010-01-12 19:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-11 16:54 [linux-lvm] Removing a PV from a mirror Fredrik Tolf
2010-01-11 18:26 ` Misc Things
2010-01-12  3:54   ` Fredrik Tolf
2010-01-12 14:29     ` Misc Things
2010-01-12 19:16     ` malahal [this message]
2010-02-12 17:22       ` Fredrik Tolf

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=20100112191609.GA28804@us.ibm.com \
    --to=malahal@us.ibm.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).