[linux-lvm] Creating PV over a /dev/mapper device
Alasdair G Kergon
agk at redhat.com
Sun Nov 7 19:24:50 UTC 2004
On Sun, Nov 07, 2004 at 03:01:10PM +0100, Roman Medina-Heigl Hernandez wrote:
> When trying to create PV, I got the following error:
> jupiter:/# pvcreate /dev/mapper/crypt10
> /dev/mapper/crypt10: Couldn't find device.
By default LVM2 won't let you turn mapped devices into PVs,
or if you're not careful you could get things horribly tangled up.
(e.g. create pv2 on lv1 in vg1, then add pv2 to vg1...)
> I know how to temporaly fix the problem by adding the device to
> /etc/lvm/.cache.
Don't edit that file: the tools are free to regenerate it whenever
they wish.
> filter = [ "a|/dev/mapper/crypt.*|" ]
> scan = [ "/dev/mapper" "/dev" ]
As long as you understand how to avoid recursion like the example
above, you can edit the 'types =' line to include "device-mapper".
[The 16 or whatever after it is for historic reasons - nothing
currently uses it.]
Alasdair
--
agk at redhat.com
More information about the linux-lvm
mailing list