linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: linux-lvm@redhat.com, timur@maginatics.com
Subject: Re: [linux-lvm] Thin provisioned pool errors
Date: Wed, 01 Oct 2014 09:45:22 +0200	[thread overview]
Message-ID: <542BB112.1030103@redhat.com> (raw)
In-Reply-To: <CAAN_kG3nR8LWs1rwXeOCS76KRhjQ_V1iNMt5_doawOQCquWP_Q@mail.gmail.com>

Dne 1.10.2014 v 02:43 Timur Alperovich napsal(a):
> Hi all,
>
> We are using LVM thin in EC2 and recently bumped into an error that seems to
> indicate metadata corruption. I was hoping someone on the list could clarify
> what likely happened and point to what we could do to avoid this in the future
> (any recent patches or other work).
> The device mapper error is repeated until the VM was taken offline and the EBS
> volumes snapshotted. At this point, running thin_check, produces the following:
> examining superblock
> examining devices tree
>    missing devices: [159, 277]
>      bad checksum in btree node
> examining mapping tree
>    missing all mappings for devices: [229, 229]
>      bad checksum in btree nodeunknown node typeunknown node typeunknown node
> typeunknown node typeunknown node typeunknown node typeunknown node
> typeunknown node typeunknown node typeunknown node typeunknown node
> typeunknown node typeunknown node typeunknown node typeunknown node
> typeunknown node typeunknown node typeunknown node typeunknown node
> typeunknown node typeunknown node typeunknown node typeunknown node
> typeunknown node typeunknown node typeunknown node typeunknown node
> typeunknown node typeunknown node typeunknown node typeunknown node
> typeunknown node typeunknown node typeunknown node typeunknown node
> typeunknown node typeunknown node typeunknown node typeunknown node
> typeunknown node typeunknown node typeunknown node typeunknown node
> typeunknown node typeunknown node typeunknown node typeunknown node
> typeunknown node typeunknown node typeunknown node typeunknown node
> typeunknown node typeunknown node typeunknown node typeunknown node
> typeunknown node typeunknown node typeunknown node typeunknown node
> typeunknown node typeunknown node typeunknown node type
>    thin device 230 is missing mappings [57251, -]
>      invalid key
>
> The missing mappings error is repeated for many devices.
>
> At this point, would going through the steps of thin_dump/thin_repair remedy this?
>
> Is there any additional information I can get from the system to understand
> what happened? I wonder if there was an issue with the underlying EBS storage,
> but have no way of confirming that at the moment.
>
> Lastly, this is Ubuntu 12.04 LTS. I did pull in the thin provisioning tools
> version 0.3.1, but the kernel is 3.8.0 (3.8.0-32-generic) and LVM2 package is:
>    LVM version:     2.02.98(2) (2012-10-15)
>    Library version: 1.02.77 (2012-10-15)
>
> Are there known patches that we may be missing that would remedy some of these
> issues?

I'm afraid version 3.8 is very very old for thinp usage.
I'd strongly recommend to use 3.15 or newer kernel with thinp.
(or kernel where patches from this kernel for thinp are backported)

Metadata on these newer kernels have a lot more securing checksums preventing
to do any major damage to them and also they have more hints for repair.

3.8 kernel was from 'early' days of thinp and it's been still not matured enough.

You could try to use latest thin repair tools from git repo - but I've already 
seen metadata which are simply too broken to be repaired from older kernels.

Zdenek

      reply	other threads:[~2014-10-01  7:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-01  0:43 [linux-lvm] Thin provisioned pool errors Timur Alperovich
2014-10-01  7:45 ` Zdenek Kabelac [this message]

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=542BB112.1030103@redhat.com \
    --to=zkabelac@redhat.com \
    --cc=linux-lvm@redhat.com \
    --cc=timur@maginatics.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).