From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Minter Subject: potential dm-thin recovery issue Date: Wed, 6 Mar 2013 08:26:55 -0500 (EST) Message-ID: <15744185.65.1362576412628.JavaMail.javamailuser@localhost> References: <1196562.58.1362575588488.JavaMail.javamailuser@localhost> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1196562.58.1362575588488.JavaMail.javamailuser@localhost> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: dm-devel@redhat.com List-Id: dm-devel.ids 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 # 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