From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx10.extmail.prod.ext.phx2.redhat.com [10.5.110.14]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0BIQSi3002412 for ; Mon, 11 Jan 2010 13:26:28 -0500 Received: from mail-yx0-f184.google.com (mail-yx0-f184.google.com [209.85.210.184]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0BIQHX0031784 for ; Mon, 11 Jan 2010 13:26:18 -0500 Received: by yxe14 with SMTP id 14so1417829yxe.23 for ; Mon, 11 Jan 2010 10:26:17 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1263228858.2845.12.camel@pc7.dolda2000.com> References: <1263228858.2845.12.camel@pc7.dolda2000.com> Date: Mon, 11 Jan 2010 13:26:17 -0500 Message-ID: From: Misc Things Content-Type: multipart/alternative; boundary=000e0cd598da525ba5047ce7ac24 Subject: Re: [linux-lvm] Removing a PV from a mirror Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: LVM general discussion and development --000e0cd598da525ba5047ce7ac24 Content-Type: text/plain; charset=ISO-8859-1 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 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/ > --000e0cd598da525ba5047ce7ac24 Content-Type: text/html; charset=ISO-8859-1 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/

--000e0cd598da525ba5047ce7ac24--