All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gionatan Danti <g.danti@assyoma.it>
To: linux-lvm@redhat.com
Subject: [linux-lvm] How to check if thin volume or snapshot was ever activated
Date: Sat, 07 Aug 2021 13:39:59 +0200	[thread overview]
Message-ID: <7956b86706382158e1fddb3c4bfbfde3@assyoma.it> (raw)

Dear all,
as you know, a thin snapshot does have the "k" (skip activation) flag 
set, so one has to force activation by ignoring the flag (or removing 
the flag itself).

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

Regards.

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

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


             reply	other threads:[~2021-08-07 11:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-07 11:39 Gionatan Danti [this message]
2021-08-09  3:53 ` [linux-lvm] How to check if thin volume or snapshot was ever activated Ming-Hung Tsai
2021-08-09  4:16   ` Ming-Hung Tsai
2021-08-09  8:33   ` Gionatan Danti
     [not found]     ` <CAAYit8RWCA3W0y4vuZju6aZVSeu7e6SjErkZ1orLceJj0nhsvw@mail.gmail.com>
2021-08-10  8:46       ` Gionatan Danti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7956b86706382158e1fddb3c4bfbfde3@assyoma.it \
    --to=g.danti@assyoma.it \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.