All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Minter <jminter@redhat.com>
To: dm-devel@redhat.com
Subject: potential dm-thin recovery issue
Date: Wed, 6 Mar 2013 08:26:55 -0500 (EST)	[thread overview]
Message-ID: <15744185.65.1362576412628.JavaMail.javamailuser@localhost> (raw)
In-Reply-To: <1196562.58.1362575588488.JavaMail.javamailuser@localhost>

Hello,

Following on from my previous e-mail ("dm-thin discard issue"), I'm having trouble recovering from the metadata corruption state I got into.  I'm using the latest userland tools cloned from https://github.com/jthornber/thin-provisioning-tools .  Here's what I've tried; am I going wrong somewhere, or is there potentially an issue with the tools?

# thin_dump /dev/mapper/vg-meta >/tmp/meta
# cat /tmp/meta
<superblock uuid="" time="1" transaction="0" data_block_size="128" nr_data_blocks="16384">
  <device dev_id="0" mapped_blocks="0" transaction="0" creation_time="0" snap_time="1">
  </device>
  <device dev_id="1" mapped_blocks="8192" transaction="0" creation_time="1" snap_time="1">
    <range_mapping origin_begin="0" data_begin="0" length="8192" time="0"/>
  </device>
</superblock>
# dmsetup table
vg-pool: 0 2097152 linear 252:16 264192
fedora-swap: 0 8257536 linear 252:2 2048
fedora-root: 0 32653312 linear 252:2 8259584
vg-meta: 0 262144 linear 252:16 2048
# thin_restore -i /tmp/meta -o /dev/mapper/vg-meta
recursive 'new_block()' not supported
#

# thin_dump -r /dev/mapper/vg-meta >/tmp/meta2
# diff /tmp/meta /tmp/meta2
#

(so the -r option doesn't help me here)

# dd if=/dev/zero of=/dev/mapper/vg-meta bs=1M &>/dev/null
# thin_restore -i /tmp/meta -o /dev/mapper/vg-meta
recursive 'new_block()' not supported
#

(so wiping the metadata volume before restoring doesn't help either)

Cheers,

Jim

       reply	other threads:[~2013-03-06 13:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1196562.58.1362575588488.JavaMail.javamailuser@localhost>
2013-03-06 13:26 ` Jim Minter [this message]
2013-03-06 14:27   ` potential dm-thin recovery issue thornber
2013-03-06 16:13     ` Jim Minter

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=15744185.65.1362576412628.JavaMail.javamailuser@localhost \
    --to=jminter@redhat.com \
    --cc=dm-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.