All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ilya Basin <basinilya@gmail.com>
To: dm-devel@redhat.com
Subject: thin metadata raw backup
Date: Thu, 2 Jul 2015 16:22:21 +0300	[thread overview]
Message-ID: <1857391099.20150702162221@gmail.com> (raw)

Hello.

Can you help me with creating pool metadata backups (raw, not xml)? I
wanted to simply use `dd if=/dev/mapper/vg_xxx-pool_tmeta`, but the
copies are always dirty on a heavily loaded machine.

Running `thin_check device` prints no error.

Silly attempt:

    [root@oktest-stage-db-1 ~]# dmsetup message /dev/mapper/vg_oktestdb1-pool 0 "reserve_metadata_snap"
    device-mapper: message ioctl on vg_oktestdb1-pool failed: Invalid argument
    Command failed

`dmsetup suspend` didn't help too:

    [root@oktest-stage-db-1 ~]# dev=/dev/mapper/vg_oktestdb1-pool_tmeta
    [root@oktest-stage-db-1 ~]# (
    > dd bs=8192 if="$dev" status=none of=/dev/null
    > dmsetup suspend "$dev"
    > dd bs=8192 if="$dev" status=none of=test1
    > dmsetup resume "$dev"
    > )
    [root@oktest-stage-db-1 ~]# thin_check test1
    examining superblock
    examining devices tree
    examining mapping tree
      thin device 29 is missing mappings [911084, 941316]
        the last key of the previous leaf was 932618 and the first key of this leaf is 912369the last key of the previous leaf was 932618 and the first key of this leaf is 913257the last key of the previous leaf was 932618 and the first key of this leaf is 913401the last key of the previous leaf was 932618 and the first key of this leaf is 919481

        

                 reply	other threads:[~2015-07-02 13:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1857391099.20150702162221@gmail.com \
    --to=basinilya@gmail.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.