incus noob question: how to use dedicated storage pool for root disk?

6 views
Skip to first unread message

Harald Dunkel

unread,
Dec 5, 2024, 11:29:00 AM12/5/24
to lxc-...@lists.linuxcontainers.org
Hi folks,

how can I tell incus to use storage pool "ssd" for /, instead
of the default "lvm"?


# incus init images:debian/bookworm sample --device root,pool=ssd,size=16GiB
Creating sample
Error: Failed instance creation: Failed creating instance record: Failed initializing instance: Failed loading storage pool: Storage pool not found


What is it trying to tell me? According to the documentation
https://linuxcontainers.org/incus/docs/main/reference/devices_disk/#initial-volume-configuration-for-instance-root-disk-devices
the pool=ssd should work. It mumbles something about "only
applicable for storage volumes managed by Incus", but AFAICT
that is the case here.

Here is the list of storage pools:

# incus storage show lvm
config:
lvm.use_thinpool: "false"
lvm.vg_name: vg01
source: vg01
volatile.initial_source: vg01
description: ""
name: lvm
driver: lvm
used_by:
- /1.0/profiles/default
status: Created
locations:
- none

# incus storage show ssd
config:
lvm.use_thinpool: "false"
lvm.vg_name: vg00
source: vg00
volatile.initial_source: vg00
description: ""
name: ssd
driver: lvm
used_by: []
status: Created
locations:
- none


Any helpful reply would be highly appreciated.

Harri

Reply all
Reply to author
Forward
0 new messages