All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Thin dump errors on snapshot of lvm metadata
@ 2015-11-24 16:03 shankha
  2015-11-24 18:40 ` shankha
  0 siblings, 1 reply; 3+ messages in thread
From: shankha @ 2015-11-24 16:03 UTC (permalink / raw)
  To: linux-lvm

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] Thin dump errors on snapshot of lvm metadata
  2015-11-24 16:03 [linux-lvm] Thin dump errors on snapshot of lvm metadata shankha
@ 2015-11-24 18:40 ` shankha
  2015-11-24 19:11   ` shankha
  0 siblings, 1 reply; 3+ messages in thread
From: shankha @ 2015-11-24 18:40 UTC (permalink / raw)
  To: linux-lvm

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 <shankhabanerjee@gmail.com> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] Thin dump errors on snapshot of lvm metadata
  2015-11-24 18:40 ` shankha
@ 2015-11-24 19:11   ` shankha
  0 siblings, 0 replies; 3+ messages in thread
From: shankha @ 2015-11-24 19:11 UTC (permalink / raw)
  To: linux-lvm

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 <shankhabanerjee@gmail.com> 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 <shankhabanerjee@gmail.com> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-24 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-24 16:03 [linux-lvm] Thin dump errors on snapshot of lvm metadata shankha
2015-11-24 18:40 ` shankha
2015-11-24 19:11   ` shankha

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.