[linux-lvm] How to check if thin volume or snapshot was ever activated

Gionatan Danti g.danti at assyoma.it
Mon Aug 9 08:33:31 UTC 2021

Il 2021-08-09 05:53 Ming-Hung Tsai ha scritto:
> It sounds like you intend to keep snapshots that have been updated
> (written) since its creation, right?


> The precise way might be checking the data mappings via thin_dump. An
> updated device has data mappings with timestamps greater than the
> device's creation time.

Interesting approach, thanks.

> Checking device activation might not meet what you need. An activated
> device might or might not receive any write, so you don't know whether
> a device has been updated by looking into its activation history.

Sure, but it can be a reasonable approximation before further 
inspection. Also, I wonder if dumping data mappings can be slow for big 


Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: g.danti at assyoma.it - info at assyoma.it
GPG public key ID: FF5F32A8

More information about the linux-lvm mailing list