LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Alasdair G Kergon <agk@redhat.com>
To: Marti Raudsepp <marti@juffo.org>
Cc: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>,
	Kernel hackers <linux-kernel@vger.kernel.org>,
	fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: BUG: Files corrupt after moving LVM volume to USB disk
Date: Thu, 22 Mar 2007 15:58:56 +0000	[thread overview]
Message-ID: <20070322155856.GA5448@agk.surrey.redhat.com> (raw)
In-Reply-To: <2a12af650703210915r35d2d1a1q30f10020db269098@mail.gmail.com>

On Wed, Mar 21, 2007 at 06:15:47PM +0200, Marti Raudsepp wrote:
> >On Tue, Mar 20, 2007 at 12:34:08PM +0200, Marti Raudsepp wrote:
> >lvmove
> >>  wouldn't move the partition back to /dev/sda5 after "defragmenting" it.)

> However, when attempting to move back the LV, the allocater can create two
> extents, but the "mirror" LVM target does not appear to support regions that
> are continuous on one copy and fragmented on another.
 
This is entirely a user-space restriction, and a fix is finally on the
cards.

> I even tried explicitly specifying --alloc= to lvmove, and it didn't have 
> any
> effect, confirming that it's not about allocation, but likely the "mirror"
> stage of the move.

The workaround is to instruct 'pvmove' how to break up the move into two
or more pieces by specifying ranges of Physical Extents on the command
line (see man pages).  E.g. /dev/sdc:10000-19999:30000-
 
Alasdair
-- 
agk@redhat.com

  reply	other threads:[~2007-03-22 15:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-20 10:34 Marti Raudsepp
2007-03-21 15:50 ` Lennart Sorensen
2007-03-21 16:15   ` Marti Raudsepp
2007-03-22 15:58     ` Alasdair G Kergon [this message]
2007-03-22 10:03 ` Milan Broz

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=20070322155856.GA5448@agk.surrey.redhat.com \
    --to=agk@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lsorense@csclub.uwaterloo.ca \
    --cc=marti@juffo.org \
    --subject='Re: BUG: Files corrupt after moving LVM volume to USB disk' \
    /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

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).