lvm view between node and vm

lozair

Member
Nov 4, 2008
89
0
6
Hi all,
i have a question about proxmox and lvm.
In our vm we have a first disk partitioned like this :
/boot => vda1
/ => vda2 => On this we create LVM groups for root and for swap

On this vm we add a second disk (vdb) => point to /dev/vg_guest/vm-213-disk-2
From the vm we create a new VolGroup directly on the disk vdb name VolGroupOracle
All is fine and works.

My question is about LVM view from the proxmox node.
When i launch lvscan on the node i get the VolGroupOracle in my list like this :

inactive '/dev/VolGroupOracle/LogVolOracle01' [40,00 GB] inherit
ACTIVE '/dev/vg_guests/vm-101-disk-1' [20,00 GB] inherit
ACTIVE '/dev/vg_guests/vm-102-disk-1' [20,00 GB] inherit
ACTIVE '/dev/vg_guests/vm-103-disk-1' [20,00 GB] inherit

I don't know if this can lead to future problem....
Is best to create a partition on vdb in th vm in order the LVM metadata would not be readable from the node ?


Regards
 
ok
i will make a partition on the vdisk before settings LVM from the vm.

thks for your help
 
thks dietmar.
that did the trick.
tag LVM on partition /dev/vdb1 at the vm level mask lvm at the node level

regards