Use lvm-thin as datastorage

larsen

Well-Known Member
Feb 28, 2020
160
19
58
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
 
You would need to create a new LV in the thin pool, format it with a file system and mount that.
 
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")?
 
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".
 
Thanks a lot!

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