[linux-lvm] lvmcache on non-lvm source?

Zdenek Kabelac zkabelac at redhat.com
Tue Jan 14 09:17:44 UTC 2020


Dne 14. 01. 20 v 9:21 Gionatan Danti napsal(a):
> Hi all,
> I have a question: can lvmcache be used to cache non-lvm source (ie: a raw 
> block device)?
> 
>  From the lvmcache man page I would say no; however, a direct confirmation 
> will be helpful.
> 

Hi

You can't use lvm2 on 'raw' device - we do require PV headers to stay correct.

BUT

Clearly you can use 'dm-cache' target with 'dmsetup' utility and maintain the 
correctness of devices & activation yourself.

See: linux/Documentation/admin-guide/device-mapper/
(or simply google it)  how to use individual targets with just dmsetup


Regard

Zdenek




More information about the linux-lvm mailing list