linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] inconsistency between thin pool metadata mapped_blocks and lvs output
@ 2018-05-10 19:30 John Hamilton
  2018-05-11  8:21 ` Joe Thornber
  0 siblings, 1 reply; 5+ messages in thread
From: John Hamilton @ 2018-05-10 19:30 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1285 bytes --]

I saw something today that I don't understand and I'm hoping somebody can
help.  We had a ~2.5TB thin pool that was showing 69% data utilization in
lvs:

# lvs -a
  LV                    VG       Attr       LSize  Pool Origin Data%
Meta%  Move Log Cpy%Sync Convert
  my-pool         myvg twi-aotz--  2.44t             69.04  4.90
  [my-pool_tdata] myvg Twi-ao----  2.44t
  [my-pool_tmeta] myvg ewi-ao---- 15.81g

However, when I dump the thin pool metadata and look at the mapped_blocks
for the 2 devices in the pool, I can only account for about 950GB.  Here is
the superblock and device entries from the metadata xml.  There are no
other devices listed in the metadata:

<superblock uuid="" time="34" transaction="68" flags="0" version="2"
data_block_size="128" nr_data_blocks="0">
  <device dev_id="1" mapped_blocks="258767" transaction="0"
creation_time="0" snap_time="14">
  <device dev_id="8" mapped_blocks="15616093" transaction="27"
creation_time="15" snap_time="34">

That first device looks like it has about 16GB allocated to it and the
second device about 950GB.  So, I would expect lvs to show somewhere
between 950G-966G Is something wrong, or am I misunderstanding how to read
the metadata dump?  Where is the other 700 or so GB that lvs is showing
used?

Thanks,

John

[-- Attachment #2: Type: text/html, Size: 1788 bytes --]

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

end of thread, other threads:[~2018-05-16 14:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-10 19:30 [linux-lvm] inconsistency between thin pool metadata mapped_blocks and lvs output John Hamilton
2018-05-11  8:21 ` Joe Thornber
2018-05-11  8:54   ` Marian Csontos
2018-05-11 17:09     ` John Hamilton
2018-05-16 14:43       ` John Hamilton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).