linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Misc Things <formisc@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Removing a PV from a mirror
Date: Mon, 11 Jan 2010 13:26:17 -0500	[thread overview]
Message-ID: <b74494e61001111026g29f01b4ei2fc339ff980edba7@mail.gmail.com> (raw)
In-Reply-To: <1263228858.2845.12.camel@pc7.dolda2000.com>

[-- Attachment #1: Type: text/plain, Size: 1971 bytes --]

oh... sorry to hear.
Actually, Fredrick, you may just answered my question that i posted earlier
about moving VG to another disk(s) and changing the stiping to linear. I
think (hope) that the command i needed is : lvconvert -m 0 ....

i hope you did take a backup ?
Andrew


On Mon, Jan 11, 2010 at 11:54 AM, Fredrik Tolf <fredrik@dolda2000.com>wrote:

> Hi list,
>
> I've got a mirror volume with two S-ATA disks, one of which started
> getting bad sectors recently, and I want to replace it. I'm having
> trouble removing it from the volume, however.
>
> When googling around on the subject, I've read everywhere that I
> shouldn't have to do anymore than remove it, and LVM should discover
> that and reconvert the mirror back into a linear volume. To be a bit
> more careful, though, I ran "echo 1 >/sys/block/sdh/device/delete" to
> have it removed properly in software first. Much to my surprise, shall
> we say, that just made the LV die a horrible death; it started returning
> EIO for every access to it, and I had to reboot the server to get it
> working again. Again, this is the proper procedure according to what
> I've been reading on the net; did I do it wrong, somehow, or are my
> sources completely off? (And if this doesn't work, then what would
> actually happen if the disk were to fail physically?)
>
> As I rebooted the server, I tried disconnecting the disk in advance, but
> that made LVM unable to bring the VG back online at all.
>
> How am I supposed to take this disk out of the volume? If I should use
> `lvconvert -m 0 $LV', then how do I specify which disk is to be removed?
>
> I'm using a stock Debian stable (Lenny) installation, meaning Linux
> 2.6.24 and LVM2 2.02.39.
>
> Appreciative for any answers,
>
> Fredrik Tolf
>
>
> _______________________________________________
> 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/
>

[-- Attachment #2: Type: text/html, Size: 2558 bytes --]

  reply	other threads:[~2010-01-11 18:26 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 [this message]
2010-01-12  3:54   ` Fredrik Tolf
2010-01-12 14:29     ` Misc Things
2010-01-12 19:16     ` malahal
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=b74494e61001111026g29f01b4ei2fc339ff980edba7@mail.gmail.com \
    --to=formisc@gmail.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).