linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] How do I remove a locked Logical Volume ([pvmove0]) left over after a disk error?
Date: Fri, 28 Mar 2014 16:31:27 +0100	[thread overview]
Message-ID: <533595CF.3040003@redhat.com> (raw)
In-Reply-To: <CANfzhCZOM3xUdVfG74RtxtDa5tHE6MhnHo=LmNS_G9DR5WwYqQ@mail.gmail.com>

Dne 27.3.2014 12:32, Derek Dongray napsal(a):
> Following some disk errors while I was moving some extents, I now have a
> hidden locked [pvmove0] which doesn't seem to have any physical extents
> assigned, although it is shown as 4Mb long.
>
>      # lvs -a -o+seg_pe_ranges a/pvmove0
>        LV        VG   Attr       LSize Pool Origin Data%  Move Log Cpy%Sync
> Convert PE Ranges
>        [pvmove0] a    vwC---v--- 4.00m
>
> The simple 'lvremove a/pvmove0' (optionally with '--force') results in the
> message 'Can't remove locked LV pvmove0'.
>
> 'pvmove --abort' does nothing. The presence of this volume doesn't seem to
> affect other moves (which simply use [pvmove1]).
>


pvmove --abort has to work - unless you have some ancient version of lvm2 tools?

What's the vresion in use ?

(You could always hack your lvm2 metadata in 'vi' - if you know what you
are doing...)

Zdenek

  reply	other threads:[~2014-03-28 15:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-27 11:32 [linux-lvm] How do I remove a locked Logical Volume ([pvmove0]) left over after a disk error? Derek Dongray
2014-03-28 15:31 ` Zdenek Kabelac [this message]
2014-03-29 12:02 ` Derek Dongray
2014-03-29 16:45   ` Derek Dongray

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=533595CF.3040003@redhat.com \
    --to=zkabelac@redhat.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).