From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx06.extmail.prod.ext.phx2.redhat.com [10.5.110.30]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tAOJeS6d024548 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 24 Nov 2015 14:40:28 -0500 Received: from mail-vk0-f52.google.com (mail-vk0-f52.google.com [209.85.213.52]) by mx1.redhat.com (Postfix) with ESMTPS id D58C7A2C01 for ; Tue, 24 Nov 2015 19:40:21 +0000 (UTC) Received: by vkha189 with SMTP id a189so19352425vkh.2 for ; Tue, 24 Nov 2015 11:40:20 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: shankha Date: Tue, 24 Nov 2015 14:11:46 -0500 Message-ID: Subject: Re: [linux-lvm] Thin dump errors on snapshot of lvm metadata Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-lvm@redhat.com There is small correction in my above email: > so I assume something is wrong with taking the snap > dmsetup message /dev/mapper/VG-POOL-tpool 0 release_metadata_snap I meant : dmsetup message /dev/mapper/VG-POOL-tpool 0 reserve_metadata_snap On Tue, Nov 24, 2015 at 1:40 PM, shankha wrote: > I tried out the latest version (device-mapper-persistent-data-0.5.5-2) > of thin dump (). > I still get the error message : > > "metadata contains errors (run thin_check for details). > perhaps you wanted to run with --repair" > > so I assume something is wrong with taking the snap > > dmsetup message /dev/mapper/VG-POOL-tpool 0 release_metadata_snap > > Thanks > Thanks > Shankha Banerjee > > > On Tue, Nov 24, 2015 at 11:03 AM, shankha wrote: >> I am trying to run thin dump on the snapshot of lvm thin pool metadata. >> >> The commands used to generate the snapshot and take the thin dump output are: >> >> dmsetup message /dev/mapper/VG-POOL-tpool 0 reserve_metadata_snap >> block_no=`dmsetup status /dev/mapper/VG-POOL-tpool | cut -f 7 -d " "` >> >> thin_dump -f xml /dev/mapper/VG-POOL_tmeta -m $block_no >> >> dmsetup message /dev/mapper/VG-POOL-tpool 0 release_metadata_snap >> >> While creating the snapshot I am dumping data to the thin volume. >> >> The error message I get is: >> "metadata contains errors (run thin_check for details). >> perhaps you wanted to run with --repair" >> >> Is there something wrong with the way I am using the commands ? >> >> Thanks