Can't resize lvm backup volume storage

Hi,

Sorry if there are some technical errors & lack of understandings, thinpool lvm storages managed by incus makes my brain fart a lot, thank a lot to anyone helping & for that awesome patience.

☆ミ(o*・ω・)ノ

I have a 48G tar.gz virtual machine (that will be 150G in the end~) that I need to import back into my brand new dedicated lvm thinpool storage, before that it was a lvm loop disk but I managed to break it all.

(⊙﹏⊙✿)

When I try to import it I have an error that says my backup volume is too little, I’m sorry I don’t have the specific error, here is the error :

Importing instance: 20% (12.54MB/s)Error: write /var/lib/incus/backups/incus_backup_1356021296: no space left on device

I thought thinpool provisionning would avoid me to resize anything but I didn’t understand very well I guess, so my quest now is to try resizing custom_default_backups--vol.

Problem are I have some errors with these commands :

incus storage volume set default backups-vol size=160Gib
Error: Invalid value for volume "default_backups-vol" option "size": Invalid value: 160Gib

I also tried :

incus storage volume set default backups-vol size=160
Error: In use

But it is not in use :

incus storage volume list default 
+-----------------+-------------------------+-------------+--------------+---------+
|      TYPE       |          NAME           | DESCRIPTION | CONTENT-TYPE | USED BY |
+-----------------+-------------------------+-------------+--------------+---------+
| container       | nanani                  |             | filesystem   | 1       |
+-----------------+-------------------------+-------------+--------------+---------+
| container       | nanana                  |             | filesystem   | 1       |
+-----------------+-------------------------+-------------+--------------+---------+
| custom          | backups-vol             |             | filesystem   | 0       |
+-----------------+-------------------------+-------------+--------------+---------+
| custom          | images-vol              |             | filesystem   | 0       |
+-----------------+-------------------------+-------------+--------------+---------+
| virtual-machine | patati                  |             | block        | 1       |
+-----------------+-------------------------+-------------+--------------+---------+

And now I don’t have a clue to resize my backup volume (it worked for nanani, nanana & patati although there storage is bigger than 10G, so I’m stuck, would you have clue to resize it ? I’m also ok deleting & recreating it but I’m stuck too (you can see above at « USED BY » column that it is not used) :

incus storage volume delete default custom/backups-vol 
Error: The storage volume is still in use

Here are some informations about volume group I’m using which is srv, Data% column is not well shown but there is well and truly 10.71 used on this 360G disk.

lvscan 
  ACTIVE            '/dev/tatatitou-vg/srv' [<359.92 GiB] inherit
  ACTIVE            '/dev/tatatitou-vg/root' [23.28 GiB] inherit
  ACTIVE            '/dev/tatatitou-vg/var' [9.22 GiB] inherit
  ACTIVE            '/dev/tatatitou-vg/swap_1' [976.00 MiB] inherit
  ACTIVE            '/dev/tatatitou-vg/tmp' [<1.62 GiB] inherit
  ACTIVE            '/dev/tatatitou-vg/home' [11.00 GiB] inherit
  ACTIVE            '/dev/tatatitou-vg/custom_default_backups--vol' [10.00 GiB] inherit
  ACTIVE            '/dev/tatatitou-vg/custom_default_images--vol' [10.00 GiB] inherit
  ACTIVE            '/dev/tatatitou-vg/containers_nanani' [<18.63 GiB] inherit
  ACTIVE            '/dev/tatatitou-vg/containers_nanana' [27.94 GiB] inherit
  ACTIVE            '/dev/tatatitou-vg/virtual-machines_patati.block' [27.94 GiB] inherit
  ACTIVE            '/dev/tatatitou-vg/virtual-machines_patati' [500.00 MiB] inherit
lvs -a
  LV                                  VG               Attr       LSize    Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  containers_nanani                   tatatitou-vg Vwi-aotz-k  <18.63g srv         42.97                                  
  containers_nanana                   tatatitou-vg Vwi-aotz-k   27.94g srv         68.62                                  
  custom_default_backups--vol         tatatitou-vg Vwi-aotz-k   10.00g srv         2.27                                   
  custom_default_images--vol          tatatitou-vg Vwi-aotz-k   10.00g srv         2.26                                   
  [lvol0_pmspare]                     tatatitou-vg ewi-------   92.00m                                                    
  root                                tatatitou-vg -wi-ao----   23.28g                                                    
  srv                                 tatatitou-vg twi-aotz-- <359.92g             10.71  13.91                           
  [srv_tdata]                         tatatitou-vg Twi-ao---- <359.92g                                                    
  [srv_tmeta]                         tatatitou-vg ewi-ao----   92.00m                                                    

Here is volume show

incus storage volume show default custom/backups-vol 
config:
  block.filesystem: ext4
  block.mount_options: discard
description: ""
name: backups-vol
type: custom
used_by: []
location: none
content_type: filesystem
project: default
created_at: 2025-05-29T22:51:00.353476482Z
incus storage show default 
config:
  lvm.thinpool_name: srv
  lvm.use_thinpool: "true"
  lvm.vg.force_reuse: "true"
  lvm.vg_name: tatitou-vg
  source: tatitou-vg
  volatile.initial_source: tatitou-vg
  volume.size: 140GB
description: ""
name: default
driver: lvm
used_by:
- /1.0/instances/patati
- /1.0/instances/nanani
- /1.0/instances/nanana
- /1.0/storage-pools/default/volumes/custom/backups-vol
- /1.0/storage-pools/default/volumes/custom/images-vol
status: Created
locations:
- none

Would someone have a clue I could dig in to resize backup volume ? Or any other clues about importing my vm ?

Again, thanks a bunch reading this, I will be done about all these questions after this one.

EDIT : added volume backup error I finally found

I still have no clues to remove or resize my backup logical volume because errors are still here, I tried unmounting backup volume but I still have errors (in use or Error: Invalid value for volume "default_backups-vol" option "size": Invalid value: 160Gib)

I may try to remove lvm logical volume with lvremove then go inside admin sql do this :

But because errors are different I’m afraid that incus will just start with errors and break everything again.

Though it seems my backup volume is empty :

incus storage volume show default custom/backups-vol 
config:
  block.filesystem: ext4
  block.mount_options: discard
description: ""
name: backups-vol
type: custom
used_by: []
location: none
content_type: filesystem
project: default
created_at: 2025-05-29T22:51:00.353476482Z
incus storage volume info default custom/backups-vol 
Name: backups-vol
Type: custom
Content type: filesystem
Usage: 16.00KiB
Created: 2025/05/30 00:51 CEST

If anyone have any idea, thanks a lot

“Gib” is gibibits, and incus doesn’t support sizes in bits. What you want is “GiB”, gibibytes.

root@nuc3:~# incus launch images:ubuntu/24.04/cloud -d root,size=10Gib
Launching the instance
Error: Failed instance creation: Failed creating instance record: Failed initializing instance: Invalid devices: Device validation failed for "root": Invalid value for device option "size": Invalid value: 10Gib
root@nuc3:~# incus launch images:ubuntu/24.04/cloud -d root,size=10GiB
Launching the instance
Instance name is: sensible-clam
root@nuc3:~#

Woah, I’m so f-ing stupid, thanks a lot, I thought it was also possible to do it without precising anything, but ok, that was it.