linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Paul Richards <paul.richards@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] lvmcache shutdown for root filesystem
Date: Fri, 5 Jul 2019 07:38:19 +0100	[thread overview]
Message-ID: <CAMoswehqXRh+i16X4wHPz1YrVs4MK7gaqq4BYfSgiD7Mw9UsVA@mail.gmail.com> (raw)

Hello there,
I am using lvmcache for my root filesystem.  This works fine except
for rebooting.  On bootup it appears that lvmcache believes the entire
cache is dirty, and begins writing it all out to the origin LV.

To me this sound like a problem discussed on linux-lvm@ previously,
whereby the lvmcache is not correctly deactivated on shutdown due to
it being in use still:

https://www.redhat.com/archives/linux-lvm/2015-October/msg00012.html

Is there a solution or workaround for this now, or is it the case that
lvmcache should not be used for caching root volumes on machines you
expect to shutdown/reboot frequently?

A possible workaround might be to partially deactivate the lvmcache by
syncing the metadata, then putting it into a frozen read-only state
(cache-pool and origin LVs no longer get written to, blocks don't
migrate, but cache LV reads can still be serviced).  Is there a
mechanism for this?

Thanks in advance for any replies!

PS.  I am ubutnu 18.04 LTS with HWE stack (kernel is currently v4.18)
if that's relevant.

                 reply	other threads:[~2019-07-05  6:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAMoswehqXRh+i16X4wHPz1YrVs4MK7gaqq4BYfSgiD7Mw9UsVA@mail.gmail.com \
    --to=paul.richards@gmail.com \
    --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 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).