archive mirror
 help / color / mirror / Atom feed
From: Paul Richards <>
Subject: [linux-lvm] lvmcache shutdown for root filesystem
Date: Fri, 5 Jul 2019 07:38:19 +0100	[thread overview]
Message-ID: <> (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:

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:

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

  git send-email \ \ \ \

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