Discussion:
[linux-lvm] Thin dump errors on snapshot of lvm metadata
shankha
2015-11-24 16:03:17 UTC
Permalink
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
shankha
2015-11-24 18:40:13 UTC
Permalink
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
Post by shankha
I am trying to run thin dump on the snapshot of lvm thin pool metadata.
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.
"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
shankha
2015-11-24 19:11:46 UTC
Permalink
Post by shankha
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
Post by shankha
I tried out the latest version (device-mapper-persistent-data-0.5.5-2)
of thin dump ().
"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
Post by shankha
I am trying to run thin dump on the snapshot of lvm thin pool metadata.
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.
"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
Loading...