linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Howto get real size of thinpool-snap?
@ 2015-07-15 12:47 Oliver Rath
  2015-07-15 17:51 ` Zdenek Kabelac
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Rath @ 2015-07-15 12:47 UTC (permalink / raw)
  To: LVM general discussion and development

Hi list,

if I create a snapshot of a volume in a thinpool, first only metadata
need space. Later, through copy-on-write, the real needed size grows. Is
it possible to get this size?

Tfh!
Oliver

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

* Re: [linux-lvm] Howto get real size of thinpool-snap?
  2015-07-15 12:47 [linux-lvm] Howto get real size of thinpool-snap? Oliver Rath
@ 2015-07-15 17:51 ` Zdenek Kabelac
  0 siblings, 0 replies; 2+ messages in thread
From: Zdenek Kabelac @ 2015-07-15 17:51 UTC (permalink / raw)
  To: LVM general discussion and development

Dne 15.7.2015 v 14:47 Oliver Rath napsal(a):
> Hi list,
>
> if I create a snapshot of a volume in a thinpool, first only metadata
> need space. Later, through copy-on-write, the real needed size grows. Is
> it possible to get this size?
>


When you access thin-pool kernel metadata - you could write your own tool
to parse i.e. thin_dump output and calc all info you want.

There is no 'runtime' info (since it would be quite expensive to maintain such 
info all the time).

Currently lvm2 doesn't support 'life' access to running thin-pool,
but you may eventually use  dmsetup message to take snapshot and access this 
info runtime (since kernel target supports this).

Zdenek

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

end of thread, other threads:[~2015-07-15 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-15 12:47 [linux-lvm] Howto get real size of thinpool-snap? Oliver Rath
2015-07-15 17:51 ` Zdenek Kabelac

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).