Add local storage when using lvmthin

uFx

Renowned Member
Jun 19, 2015
13
0
66
We are using a local backup for all our Proxmox nodes and with a hook script we scp the backup to an external backupserver. Now we have one node which uses lvmthin as storage for the VM images. To make a local backup we need a local backup storage because we can't backup to a lvmthin storage.

We tried to manually add a volume which we could mount:

Code:
lvcreate -L 300G -n localbackups pve

But this doesn't work:
Code:
Volume group "pve" has insufficient free space (4053 extents): 76800 required.

Is it possible to add a volume for our local backups? There is enough space available on the lvmthin volume:

Code:
Usage: 47.39% (1.19 TiB of 2.50 TiB)
 
We are using a local backup for all our Proxmox nodes and with a hook script we scp the backup to an external backupserver. Now we have one node which uses lvmthin as storage for the VM images. To make a local backup we need a local backup storage because we can't backup to a lvmthin storage.

We tried to manually add a volume which we could mount:

Code:
lvcreate -L 300G -n localbackups pve

But this doesn't work:
Code:
Volume group "pve" has insufficient free space (4053 extents): 76800 required.

Is it possible to add a volume for our local backups? There is enough space available on the lvmthin volume:

Code:
Usage: 47.39% (1.19 TiB of 2.50 TiB)
Hi, as you can see from the error most of the extends of your VG are already reserved for other LVs. So in order to create a new LV you will have to add a disk to the VG to extend its capacity or you will have to shrink the lvmthin LV which is not recommended as you can easily loose your data if you make a mistake.
 
  • Like
Reactions: uFx
Thanks! Then we'll add a new disk and won't shrink the lvm-thin volume.