linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Aaron Young <aaron.young@ctl.io>
To: linux-lvm@redhat.com
Subject: [linux-lvm] lvm metadata sequence number reverts
Date: Tue, 15 Sep 2015 21:18:18 +0000	[thread overview]
Message-ID: <CAFrnvh2ffR69QFK-Ue=OStbiSuKw+sRx43+PyEdwo8sFqkfcMw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 762 bytes --]

Hello, I'm deep into debugging an issue we have with a disk driver of ours
and LVM.

Long story short:

create vg -> seqno 1
create lv1 -> seqno 2
create lv2 -> seqno 3
create lv3 -> seqno 4
create lv4 -> seqno 5
<clear our device cache> (note, this generates no IO)
vgdisplay: seqno = 4, lv4 is missing

* This happens only after dozens to hundreds of iterations. Most of the
time it is fine.

I dd all the metadata blocks off of the pv, yep, seqno5 is on disk metadata
area perfectly fine. But the system believes 4 is the current version.
Shouldn't the system be using the highest value? Or is it stored somewhere?
What mechanism is responsible for changing the seqno? And where does it
change it? (Not the metadata contents, just the number)

Thanks,

Aaron

[-- Attachment #2: Type: text/html, Size: 1038 bytes --]

             reply	other threads:[~2015-09-15 21:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-15 21:18 Aaron Young [this message]
2015-09-16  8:11 ` [linux-lvm] lvm metadata sequence number reverts Zdenek Kabelac
2015-09-16 22:31   ` Aaron Young
2015-09-17 15:39     ` Aaron Young

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='CAFrnvh2ffR69QFK-Ue=OStbiSuKw+sRx43+PyEdwo8sFqkfcMw@mail.gmail.com' \
    --to=aaron.young@ctl.io \
    --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).