Proxmox LVM

economist

New Member
Apr 2, 2018
9
0
1
37
Hi,

we recently installed latest Proxmox version and noticed it saved KVM data to /usr/lib/vz/images instead of creating a new LV for each VM(KVM) like it was doing in version 3.

lvdisplay is empty on Proxmox 5 and all data is saved to /usr/lib/vz/images

is there any way to quickly convert all VMs to LVs instead of /usr/lib/vz/images ?

is proxmox 5 supposed to work that way ?
 
Last edited:
Update:

I setup a new LV manually(lvcreate) and mounted it to /var/lib/vz, moved backups there and VMs started successfully. Luckily everything started good and working well now.

Is this way new Proxmox 5 is supposed to work or I'm missing something ?
 
Hi,

If you make a default installation without ZFS, the installer creates three LV (root, swap, data).
The data LV is a thin-lvm and will be used as image storage for KVM and Container.
The path /var/lib/vz still exists for backups, container templates, and iso images.
So a normal installation has 2 storages in the GUI local( /var/lib/vz) and local-lvm(LV data).
 
Hi,

FS I used for Debian 9 is ext4 and I had to create data LV manually
lvcreate -L 300G -n data vg1

then mounted it to /var/lib/vz. Is that a good solution or there is a better one? Is there an option to switch so each VM has its own LV like it ws in version 3 ?

Also, I extended data LV but proxmox still shows old size in control panel, while vgdisplay and lvdisplay shows correct sizes. Any insight on that ?

Many thanks for your replies!
 
I believe i did not create new storage from Proxmox GUI, which I was supposed to do. I will delete my manually created LV and try adding a new storage from Proxmox GUI
 
I think I have an idea
1) Reduce current LV size of LV that I created for data and mounted manually to /vz
2) Create a new thin-LVM from Proxmox GUI -> Storages
3) Live migrate VMs from local(default) storage(my customary mounted /vz) to newly created thin-LVM that is setup properly from Proxmox GUI and recognised in Proxmox

Do you think this would work fine ?
 
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!