LVM-thin to directory

bit2gb

Well-Known Member
Jul 20, 2016
84
2
48
29
Hello guys,
I have on server 2x2tb sas hdd in mirror raid.
I have the latest version of 5.2.

My question: I want to use all space from lvm-thin like normal diretory because right now i can't create qcow2, move, and other things.

So how can i remove all lvm2 pool or resize it to the smaller dimension like 10gb and free space mounted into other directory?
 
I have the same problem.

I installed 2 modules for whmcs diffrent companys, modulesgarden ..etc and it see only the Backup and local storage not the local-lvm, so we ar not able to create any vps using whmcs modules, we have to create them manualy.
 
Ok. Don't know at all whmcs not how it work. You can migrate easily. /var/lib/vz should already be a thin volume. Just expand it. And delete the other thin volumes, and you're done :-)
 
/var/lib/vz it has only 120gb, my local-lvm is the rest of 2x2tb hdd disk witch i`m not able to use it.

I attached some images so you can understand :) thank you
 

Attachments

  • storage.png
    storage.png
    65.8 KB · Views: 136
  • storage1.png
    storage1.png
    17.5 KB · Views: 128
  • storage2.png
    storage2.png
    35.8 KB · Views: 99
  • storage3.png
    storage3.png
    37.3 KB · Views: 91
  • storage4.png
    storage4.png
    36 KB · Views: 91
  • storage5.png
    storage5.png
    25.5 KB · Views: 106
Log into the console and run the command mount. You will see which volume is mounted on /var/lib/vz. Then, if it's an LVM volume, run lvdisplay <the volume> (eg lvdisplay /dev/pve/vz). You will see how it's handled. If the volume is a thin volume itself (or even a flat LVM volume), it's easy to expand it:

Code:
lvextend -L+50G /dev/pve/vz
resize2fs /dev/pve/vz

For example.
 
  • Like
Reactions: Bidi
The problem is i got allready some machines on it.
I try to migrate them to another server and reinstall the entire server, and create partition manualy ext4 and not like promox do, on auto

Till now i didnt fiind a better solutions, it i`m just stupid and dont understand proxmox 5, i allways worked only with old one 3...
 
As long as you have some spare space, no need to. Just extend the volume which holds /var/lib/vz enough to store one VM. Then migrate the storage from the interface for this VM, and repeat the opration for each. No downtime.
 
As long as you have some spare space, no need to. Just extend the volume which holds /var/lib/vz enough to store one VM. Then migrate the storage from the interface for this VM, and repeat the opration for each. No downtime.

Thank you :D

Just one more think with i`m not clear.

Did i made the instalation in wrong way ? i just pressed next :) next ...etc

I got 1 server with proxmox 5.2
CPU(s) 80 x Intel(R) Xeon(R) CPU E7- 4870 @ 2.40GHz (4 Sockets) 2 x 2TB HDD disk, 256gb ram

Was not more ok to install he OS on another hdd drive sompting like 2 x 300GB and the 2 x TB use it as storage to avoid this problem with local-lvm ?

From what i understand the think with local-lvm is for server with nas
I just whant to understand.
On all other 12-15 servers i got proxmox 3.4 :) for me proxmox 5 is sompting like i buyet an maserati and i was driving all the time dacia :)
 
Yes, it's better to install the OS on a separate disk (or pair of disks). But that's another story. LVM Thin is the best for local storage. Feature wise, performance wise, and space efficiency wise. That's why it's choosen by default (unless you go with ZFS, which has also pros and cons). LVM Thin is not for NAS (well, it can be used on block level network volume like iSCSI, but not with typical NAS appliance which will expose file level protocols like SMB or NFS).
 
Yes, it's better to install the OS on a separate disk (or pair of disks). But that's another story. LVM Thin is the best for local storage. Feature wise, performance wise, and space efficiency wise. That's why it's choosen by default (unless you go with ZFS, which has also pros and cons). LVM Thin is not for NAS (well, it can be used on block level network volume like iSCSI, but not with typical NAS appliance which will expose file level protocols like SMB or NFS).

I can think LVM Thin is much faster, but the problem is there is no whmcs module who can see local-lvm to be able to auto create the vps on it and do it auto not manualy, as far as i readed and tested since yerstaday with multiple whmcs modules.

At the moment i do it in old school :) mode with the hdds

And lets think a bit :) having 5-10 orders / day for vps, 1 guy stai all day create them manualy witch is not good at all.

i truly apriciate your help and fast as not expected :D thank you.
 
I can think LVM Thin is much faster, but the problem is there is no whmcs module who can see local-lvm to be able to auto create the vps on it and do it auto not manualy, as far as i readed and tested since yerstaday with multiple whmcs modules.
Understood. But that's a corner case. You can migrate everything if needed. In other cases, if you need full control over partitionning, you can install a vanilla Debian, and add PVE package on top of it after the install.
 
  • Like
Reactions: Bidi
Understood. But that's a corner case. You can migrate everything if needed. In other cases, if you need full control over partitionning, you can install a vanilla Debian, and add PVE package on top of it after the install.

I will read aboud this, thank you :D