Lvm-thin NoBackups etc

Jospeh Huber

Well-Known Member
Apr 18, 2016
98
6
48
45
Hi,

I am not new to proxmox but new to lvm-thin ;-):

I have setup the a new node with the brand new proxmox 4.2.
The server has about 3.8 TB Disk space.
The installer creates two "storages" in proxmox:
"local" with about 100Gb
"local-thin" with 3.8 Gb lvm thin
On the lvm-thin storage I cannot configure to use it also for "VZDumps and Templates " and so on.
So the installer configured "bigstorage" is only usable for vmimages...

I saw, that the advantage of lvm-thin is the possibility to take snapshots...
At the moment i do not need this, is there away to get rid of this?
I would prefer to remove this lvm-thin volume and extend the main volume with the free space...

/# lvremove -t data
TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated.
Volume group "data" not found
Cannot process volume group data
 
Hi,
why is not possible to create VZDumps and Templates? I have just installed Proxmox 4.2 and is what I am trying to understand.
I have a lot of local space but I do not understand how to use it.
 
My Problem is now that I want to use SSDs for my VMs (LXC) ... :eek:
I see you have to use LVM-thin if you want vzdumps with snapshots, otherwise the vzdump runs in suspended mode => vm not reachable.
My first step was to configure the ssd as normal lvm storage (as described here https://pve.proxmox.com/wiki/Storage_Model#LVM_Groups_with_Local_Backing)
Partition with fdisk
pvcreate /dev/sdb1
vgcreate ssd /dev/sdb1
Configure it as LVM storage via the webgui

I found here, howto convert the pve/data group to lvm-thin
https://forum.proxmox.com/threads/best-way-to-convert-lvm-to-lvm-thin.27204/:
lvconvert --type thin-pool pve/data

lvconvert --type thin-pool ssd
Please provide a valid volume group name
Run `lvconvert --help' for more information.
I think the problem is that there is only a volume group but no logical volume (that's what proxmox does automatically...)

I have removed and backedUp all vms, so how can i do a new thin provisioning or convert my ssd space to thin?

BTW: I am not the onlyone with "thin" problems ;-)
https://forum.proxmox.com/threads/local-lvm-storage-and-vm-format.27209/#post-137066
 
Last edited:
Hi,

thanks for your hint!
I have succesfully created the logical volume.
But now in the webgui i can select the Volume Group but I cannot select anything in Thin Pool. Why?

lvcreate -l +100%FREE -T ssd/ssd



--- Logical volume ---
LV Name ssd
VG Name ssd
LV UUID 3ip7my-De56-Sjhq-tMqw-pGIZ-WZBU-LASo21
LV Write Access read/write
LV Creation host, time xxxxx, 2016-05-10 10:31:09 +0200
LV Pool metadata ssd_tmeta
LV Pool data ssd_tdata
LV Status available
# open 0
LV Size 892.91 GiB
Allocated pool data 0.00%
Allocated metadata 0.43%
Current LE 228586
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 251:5
 
Another Problem while restoring a VM to the new LVM-thin Storage
/usr/sbin/thin_check: execvp failed: No such file or directory

Strange... on one of my nodes i have to install the thin-provisioning-tools:
apt-get install thin-provisioning-tools
 

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!