Skip to contentSkip to conversation

lvmcache on non-lvm source?

linux-lvm Gionatan Danti 2 participants 3 messages Jan 14, 2020

lore
Share & tools
lore
#0 lore raw

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.

Thanks.

Signature · 5 lines
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: [email protected] - [email protected]
GPG public key ID: FF5F32A8
#1 lore raw

Dne 14. 01. 20 v 9:21 Gionatan Danti napsal(a):

Quoted 6 lines

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

#2 lore raw
Quoted 8 lines · Zdenek Kabelac

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.

Quoted 8 lines

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

Regard

Zdenek

Hi Zdenek, thank you for the clear reply.

I know I can directly use dm-cache but, from a support standpoint, it would really like to avoid it.

I would rather create a PV on the raw block device. Thanks.

Signature · 5 lines
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: [email protected] - [email protected]
GPG public key ID: FF5F32A8