Transparent LVM?

un1x0d

Renowned Member
Mar 14, 2012
26
4
68
I installed Proxmox 4.4 and delete LVM part "data".

I add LVM storage TEST-LVM and don't see this part in lvs command out

image.png




Code:
root@vm1:~# lvs
  LV   VG   Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root pve  -wi-ao---- 10.00g
  swap pve  -wi-ao----  8.00g
root@vm1:~#


Where is TEST-LVM???
 
Code:
root@vm1:~# cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content vztmpl,iso
        maxfiles 0
        shared 0

lvm: TEST-LVM
        vgname pve
        content images,rootdir
        shared 0

Code:
root@vm1:~# vgs
  VG   #PV #LV #SN Attr   VSize   VFree
  pve    1   2   0 wz--n- 931.38g 913.38g

Code:
root@vm1:~# pvs
  PV         VG   Fmt  Attr PSize   PFree
  /dev/md1   pve  lvm2 a--  931.38g 913.38g


And what is the general scheme of work?

Without creating a LVM storage (TEST-LVM), I can not create a virtual machine disk, because there is no storage for this.

But when I add a LVM storage (TEST-LVM), it is not displayed anywhere (only WEB control panel), but I can create a virtual machine disk.

BUT! Disk virtual machine did not creates in TEST-LVM (LVM in LVM), disk creates uses VG "pve". Why create LVM storage (TEST-VM) if when creating VM her disk uses same VG volume "pve" that LVM storage???


image.png


Code:
root@vm1:~# lvs
  LV            VG   Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root          pve  -wi-ao---- 10.00g
  swap          pve  -wi-ao----  8.00g
  vm-100-disk-1 pve  -wi-a----- 32.00g

How it works???
 
Last edited:
You need to create a separate volume group - else it make no sense to create an extra storage.
 
You need to create a separate volume group - else it make no sense to create an extra storage.
But how does what I described above do?

Where is TEST-LVM in console (vgs, lvs)? Why disk VM use same VG with Proxmox host? Why create LVM storage for create disk VM??

I ask for a more detailed explanation. Thanks.
 
It makes no sense for me to debug such silly configuration...
Your software create LV volume and checked in web... and ghost in console ...

I have 10G for root and 8G for swap. And ~ 930G free on VG pve.

I want to use the free space in the form LVM (non thin) left after removal lv volume "data"after a fresh installation. Which way do you recommend for this?
 
It is OK as long as you use VG pve only once. But the disk show up in the output you posted, so what exactly is the problem? And why don't you use the default setup which support snapshots?
 
But the disk show up in the output you posted, so what exactly is the problem?
I want to understand why the storage TEST-LVM does not appear in the output of the command lvs after create.

As far as I understand the command Datacenter -> Storage -> Add -> LVM creates a LV volume?

And why don't you use the default setup which support snapshots?
I do not want to accidentally forget and create VM drives more than the actual storage LVM-Thin capacity.
 
Last edited:

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!