All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Niehusmann <list039@gondor.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] pvmove hangs
Date: Mon Aug 18 07:07:02 2003	[thread overview]
Message-ID: <20030818120601.GA12309@gondor.com> (raw)
In-Reply-To: <20030818124515.A29420@uk.sistina.com>

On Mon, Aug 18, 2003 at 12:45:15PM +0100, Alasdair G Kergon wrote:
> Please confirm which kernel you are using, and the device-mapper
> patch(es) you applied.  [patches/linux-2.4.2?* from the 1.00.02
> device-mapper tarball?]

It's 2.4.21, and yes, both linux-2.4.21-devmapper-ioctl.patch and
linux-2.4.21-VFS-lock.patch from the 1.00.02 tarball are applied.

> Some more diagnostics:
>   check that you have 'activation = 1' and 'level = 7' in the log{}
>   section of lvm.conf and if not, recreate a problem pvmove application log 
>   (The you put on the web seems incomplete)

I have level = 7, but not activation = 1. I'll try it again later, when
I'm back at the console... don't want to hang the computer via ssh :-)

> Use dmsetup to see what's going on:
>   run 'dmsetup ls' to get a list of internal device names,
>   then 'dmsetup -v table <device_name_shown_in_ls>' 
> on all the relevant ones (e.g. vgraid-lvol5*)

I had a look at these and didn't see anything unusual, but I'll check
again carefully.

> After all the interruptions you've had, check the /dev/vgraid/lvol5 
> symlink (->/dev/mapper/vgraid-lvol5) & destination major/minor is 
> still right.

lvol5 was mounted when the problems started (errors on ls on that
partition), so it's surely not a symlink problem, as the kernel doesn't
access a mounted device via the symlink.

> Check the current metadata (with vgcfgbackup) still looks right.
> [Does it show pvmove(s) in progress, or is it clean again?]

When pvmove hangs, vgcfgbackup shows the pvmove in progress, even after
CTRL-C (which is expected), and pvmove --abort doesn't work at all, as I
said. 
So I always had to restore LVM2 to a sane state with vgcfgrestore. After
that, I reboot and get LVM back up running cleanly. Even lvol5 was not
damaged, because the garbage on the logical volume never got written to
the underlying device, and vgcfgrestore removed all traces of the
incomplete pvmove.

Jan

  reply	other threads:[~2003-08-18  7:07 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-16  5:21 [linux-lvm] pvmove hangs Jan Niehusmann
2003-08-16 10:48 ` Jan Niehusmann
2003-08-16 13:57 ` Alasdair G Kergon
2003-08-17 11:11   ` Jan Niehusmann
2003-08-17 11:34     ` Alasdair G Kergon
2003-08-17 11:41       ` Jan Niehusmann
2003-08-17 12:00         ` Alasdair G Kergon
     [not found]   ` <20030817114638.GA1839@gondor.com>
2003-08-17 12:42     ` Alasdair G Kergon
2003-08-17 13:27       ` Jan Niehusmann
2003-08-17 13:50         ` Alasdair G Kergon
2003-08-17 13:55         ` Alasdair G Kergon
2003-08-18 12:58     ` Alasdair G Kergon
2003-08-18 13:21       ` Jan Niehusmann
2003-08-18 17:55       ` Jan Niehusmann
2003-08-19 17:52         ` Jan Niehusmann
2003-08-17 18:15   ` Jan Niehusmann
2003-08-18  6:46     ` Alasdair G Kergon
2003-08-18  7:07       ` Jan Niehusmann [this message]
2003-08-18  9:13     ` Alasdair G Kergon
2003-08-18  9:30       ` Jan Niehusmann
  -- strict thread matches above, loose matches on Subject: below --
2005-04-26  9:19 Gergely Imre
2005-04-26 13:30 ` Diaz Rodriguez, Eduardo
2005-04-27  5:46   ` Gergely Imre
2005-04-27 13:04 Gergely Imre
2005-04-28  9:46 ` Diaz Rodriguez, Eduardo
2005-04-28 10:23   ` Gergely Imre
2005-04-28 11:13     ` Diaz Rodriguez, Eduardo
2010-08-17 19:26 Allen, Jack
2010-08-17 22:12 ` Thomas Hager
2010-08-17 23:09   ` Allen, Jack

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=20030818120601.GA12309@gondor.com \
    --to=list039@gondor.com \
    --cc=linux-lvm@sistina.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.