Use lvm-thin as datastorage

larsen

Member
Feb 28, 2020
87
8
8
I have a second PVE server that also has PBS (1.0.8) installed. This second server shall backup the VMs/CTs from the first one.
Most of the disk space is in LVM-thin as this will be used for VMs.

Is it possible to use lvm-thin as a datastorage?

I don't know what kind of information would be useful to answer that question (if any), so here is the output of lvs.
Code:
atl-vm04:~# lvs
  LV     VG  Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  backup pve Vwi-aotz--  1.00t data        4.61
  data   pve twi-aotz-- <7.13t             0.65   0.43
  root   pve -wi-ao---- 96.00g
  swap   pve -wi-ao----  8.00g
 

aaron

Proxmox Staff Member
Staff member
Jun 3, 2019
2,609
387
88
You would need to create a new LV in the thin pool, format it with a file system and mount that.
 

larsen

Member
Feb 28, 2020
87
8
8
Regarding the output of lvs above:
Do I have to resize "data" to make space for another LV or can I create a LV inside "data" (as it seems to be the case for "backup")?
 

aaron

Proxmox Staff Member
Staff member
Jun 3, 2019
2,609
387
88
No, the "data" is the thin pool in the VG pve. Checkout the lvmthin manpage (man thinlvm) and the example 4.
The thinpool is "data" and the VG is "pve".
 

larsen

Member
Feb 28, 2020
87
8
8
Thanks a lot!

Command to be used (example) would be:
Code:
lvcreate -n thin1 -V 1M --thinpool data pve
 

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 your own in 60 seconds.

Buy now!