Re: How to check if thin volume or snapshot was ever activated

Ming-Hung Tsai <[email protected]>
Newsgroups gmane.linux.lvm.general
Message-ID <CAAYit8QwTiPOnRGmm269zJXe8CqdT2bHXD4fPtbb_EO91DAgtg@mail.gmail.com>
On Mon, Aug 9, 2021 at 11:53 AM Ming-Hung Tsai <[email protected]> wrote:
>
> On Sat, Aug 7, 2021 at 7:43 PM Gionatan Danti <[email protected]> wrote:
> >
> > I wonder: can we detect if a volume/snapshot was *ever* activated? My
> > reasoning is that a never-activated snapshot surely did not receive any
> > application writes, so it can be safely removed (ignoring snapshot
> > retention policy).
>
> 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.

sorry, I mean "greater than or equal to"

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.