Create a new logical volume from a thin volume group

Published by Tobias Hofmann on

1 min read

Some time ago I wanted to add a new mount point for Docker files in Proxmox. As Proxmox uses logical volumes to manage its storage, I had to find out how to assign a 200 GB part out of the data volume. Proxmox does this automatically when a new VM is created, but I had to do this manually as this space is independent from Proxmox management.

First, find out what volume groups are available. List the available volume groups.


There is one volume group named pve. Inside this volume group are logical volumes. To get a list of all available logical volumes:


The three logical volumes belong to the volume group pve. The data volume is a thin volume. Create a new volume with capacity of 200GB inside the thin volume data and assign the name dockerdata to it.

lvcreate -V200G -T pve/data -n dockerdata

Listing the logical volumes again will show the newly create volume dockerdata.


The device for the LV can be found at /dev/{volumeGroup}:

ls /dev/pve

Format the new 200GB sized volume with ext4.

mkfs.ext4 /dev/pve/dockerdata

The logical volume dockerdata can now be mounted.

mount /dev/pve/dockerdata ./dockerdata/

To see its size and that its mounted correctly, run df -h

df -h

Let the world know
Categories: Technology

Tobias Hofmann

Doing stuff with SAP since 1998. Open, web, UX, cloud. I am not a Basis guy, but very knowledgeable about Basis stuff, as it's the foundation of everything I do (DevOps). Performance is king, and unit tests is something I actually do. Developing HTML5 apps when HTML5 wasn't around. HCP/SCP user since 2012, NetWeaver since 2002, ABAP since 1998.

1 Comment

Rüdiger Biernat · May 27, 2022 at 11:17

Thx a bunch. For unknown reasons a VM and the underlying logical volume got separated. This way I could marry them again.

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.