archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] lvmcache shutdown for root filesystem
@ 2019-07-05  6:38 Paul Richards
  0 siblings, 0 replies; only message in thread
From: Paul Richards @ 2019-07-05  6:38 UTC (permalink / raw)
  To: linux-lvm

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-05  6:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-05  6:38 [linux-lvm] lvmcache shutdown for root filesystem Paul Richards

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