[linux-lvm] swap on lvm cache
zkabelac at redhat.com
Wed Apr 27 08:38:44 UTC 2016
On 27.4.2016 00:35, Xen wrote:
> Just a weird question here.
> Since swap should ordinarily be encrypted if you encrypt any part of your data
> at all, I have opted at this point to either put it inside a volume that might
> end up getting cached, or to disable that cache and put the swap in its place.
> What I am saying is that in my current scheme there is going to be a small
> cache drive and one part of the cache drive is going to serve unencrypted data
> and the other part is going to serve encrypted data.
> Supposing that, the swap would be in the encrypted part. But using cache
> (lvmcache) on swap is completely ludicrous right?
Yes, it would be seriously bad idea to use 'swap' on cached LV...
There are already unsolved issues with plain devices and swapping :)
and you want to put caching logic into this stack.
> Alternatively you could put the swap on the SSD (in this case) and not have
> any cache for the other part of the drive. What do you think? It makes no
> sense and it makes no difference, right.
More information about the linux-lvm