lvmcache shutdown for root filesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

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



[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux