Incus import not going to storage

Hi,

Sorry as I’m not english native speaker, and sometimes a bit technically noobish.

I want to use a lvm thinpool partition for my future containers(3) & vm(2), that I will import back from nice backups :slight_smile:

my /var is a bit tiny because of disks limitations, so my idea was to focus disk usage onto my thinpool which is fat (~350G VFree).

Here are my commands to make my lvm thinpool partition :

incus storage create default lvm source=tatatitoutou-vg lvm.vg.force_reuse=true lvm.use_thinpool=true lvm.thinpool_name=myPool
incus profile device add default root disk path=/ pool=myPool

Everything goes smooth at this point so I import it all back :

incus import /exports/myAwsomeContainer.bckp.tar.gz --verbose --storage=default

My problem is when I watch df -h, all the space is eaten inside /var where my incus installation is, this is not what I excpect, as I thought --storage=default would lead me to use my brand new thinpool partition.

here lvscan :slight_smile:

  ACTIVE            '/dev/tatatitoutou-vg/myPool' [<359.92 GiB] inherit

Is there any simpler way to create my lvm thinpool so when I import it it goes there instead of /var which is too small to import it all ?

Thanks

import and export uses the backup mechanism which stores data, even if temporarily in /var/lib/incus/backups.

You probably want to look at setting storage.backups_volume and storage.images_volume so that those assets get stored within your pool rather than on the host directly.

1 Like

Again, thanks a lot, I’m really sorry I didn’t manage to find this in documentation, I think I get to understand more & more.

I have another problem now, but I’m going to create another thread so it’s gonna be easier to navigate & search for this problem for other users.

(⊃‿⊂)