All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Snitzer <snitzer@redhat.com>
To: lvm-devel@redhat.com
Subject: false error messages when merging
Date: Mon, 8 Feb 2010 16:29:04 -0500	[thread overview]
Message-ID: <20100208212904.GA21695@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1002081542190.13894@hs20-bc2-1.build.redhat.com>

On Mon, Feb 08 2010 at  3:49pm -0500,
Mikulas Patocka <mpatocka@redhat.com> wrote:

> Hi
> 
> LVM2.2.02.60 writes false error messages about tree node not found when 
> activating delayed merging. But it starts merging anyway.
> 
> [slunicko:~]# lvs
>   LV   VG   Attr   LSize  Origin Snap%  Move Log Copy%  Convert
>   m    vg1  -wi-a- 16.00m
> [slunicko:~]# lvcreate -s -n s -c 4k -L 24M vg1/m
>   Logical volume "s" created
> [slunicko:~]# mount -t ext2 /dev/vg1/s /mnt/test
> [slunicko:~]# lvconvert --merge /dev/vg1/s
>   Can't merge when snapshot is open
>   Merging of snapshot s will start next activation.
> [slunicko:~]# umount /mnt/test
> [slunicko:~]# lvchange -an vg1/m
> [slunicko:~]# lvchange -ay vg1/m
>   failed to find tree node for m
>   failed to find tree node for s
> [slunicko:~]#
> ... the merging starts on backgound fine

I can reproduce your "failed to find tree node for" scenario using
the steps you provided.

I'm auditing the deptree code now while working to fix snapshot-merge
for use with Milan's "query info by uuid rather than name" support.  So
something may turn up.

I also saw "failed to find tree node for" messages late last week when I
was developing the 'lvconvert --merge @tag" support that iterated over a
single VG with two LVs that had pending snapshot merges.

I'd merge the 2 snapshots and in the process stale metadata would get
written to disk (at the start of merging the 2nd snapshot, because the
VG instance in process_each_lv() wasn't refreshed after each iteration).

Both merges completed but LVM thought a merge was still in progress
(because the metadata was stale).  I finally got the "failed to find
tree node" when I used "lvchange --refresh <vg/lv>" to eliminate the LVM
inconsistency (effectively the equivalent of your lvchange -an +
lvchange -ay).

Once I eliminated the source of the stale metadata (by refreshing the VG
instance between each process_each_lv iteration) these messages went
away.

All this being said, I'm not sure what's going on with your scenario but
I'll get to the bottom of it.

Mike



  reply	other threads:[~2010-02-08 21:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-08 20:49 false error messages when merging Mikulas Patocka
2010-02-08 21:29 ` Mike Snitzer [this message]
2010-02-08 22:03   ` Mike Snitzer
2010-02-08 22:43     ` Mike Snitzer
2010-02-09 23:59       ` Mikulas Patocka

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=20100208212904.GA21695@redhat.com \
    --to=snitzer@redhat.com \
    --cc=lvm-devel@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 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.