confused w/r to LVM visibility

Waschbüsch

Renowned Member
Dec 15, 2014
93
8
73
Munich
Hi all,

I am a bit confused w/r to the visibility of a VM's LVM devices from the PVE host.
Inside LVMs I have partitions like this:

/dev/vda1 => /boot
/dev/vda2 => extended partition
/dev/vda5 => LVM physical volume

and then one logical volume for root and one for swap.

This is the result of having used the debian installer and choosing to use the whole disk (/dev/vda) and enabling lvm.

Now, from the proxmox node, I can see all these devices, which seems odd to me.
From other threads I gather that some people have seen this when using e.g. /dev/vda inside a VM as a physical device, but I am not doing that.

To add to my confusion, if I try to migrate on of those VMs (e.g. moving the disk to ceph and then migrate the VM), I get an error telling me that the VM still uses local disks.

Any ideas on how to solve this? (Apart of refraining from using lvm inside VMs from now on).

Thanks,

Martin
 
Weird:
It does not seem 'normal' behaviour. I rebooted the node and now all is back to normal. I only see the host's own lvm data and the guests' data ist hidden.
While I am not eager to try and replicate this, I am curious as to what caused it in the first place...
 
Hi,
do you hav played with kpartx (or similliar) on the host?

Udo

Actually, yes. I had migrated my RAID6 to a RAID5, so that I could have a dedicated disk for ceph. (OT: Rebuilding a 4x4 TB RAID 6 to a 3x4 TB RAID 5 took about 1 Week(!) on an Adaptec 8805)
After that migration, I created a logical volume consisting only of the - now free - 4th disk. I used partprobe to have the system check for new drives online (the whole ceph thing is so I can avoid downtimes, right? :) ).
So, you guess it just might have caused that side-effect?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!