Sorry for the troubles but I was working on reorganizing my partitions and I deleted my Zfs pool, I tried recreating the pool but since incus is still seeing the old pool I cannot run incus admin init, I also tried incus storage rm but incus says the pool is still being used. Not sure how to proceed, also did incus admin recover but that did not help. at this point I am guessing I just need to reinitilize using incus admin init but when I do incus says MyZpool already exists. Any ideas?
incus storage list
will show the storage pools. Here, the storage pool is called default. If you have more storage pools, run incus profile show default
to see the default profile and verify which one is your storage pool.
$ incus storage list
+---------+--------+-------------+---------+---------+
| NAME | DRIVER | DESCRIPTION | USED BY | STATE |
+---------+--------+-------------+---------+---------+
| default | zfs | | 99 | CREATED |
+---------+--------+-------------+---------+---------+
$
Then, with incus storage show
you can see the details of the storage pool. In this example the partition /dev/sda8
is the block device for the ZFS storage pool.
$ incus storage show default
config:
source: default
volatile.initial_source: /dev/sda8
zfs.pool_name: default
description: ""
name: default
driver: zfs
used_by:
...
The big question is how to best move on from this. If the storage pool is irreversibly gone, perhaps it makes sense to clear up everything and start over? Is there something that can be recovered, such as container names or configuration?
Perhaps someone else has a better suggestion for this.
If you really want to incus admin init
, you need to remove your storage pool from the default Incus profile and subsequently incus storage remove mystoragepool
.
If you cannot remove the storage pool from the default profile, create a dummy empty storage pool, add that to the default profile, then remove the default storage pool. Finally, you should be able to incus admin init
.
I did do a backup of MyZpools/containers to a file which I think I can bring right back once admin init. I am avoiding loosing my network config. I will try your suggestions thank you!
Did you backup the list of the containers or the actual filesystems? If you backed up the filesystems in some way or another, there’s a slim chance they can get restored.
You can avoid incus admin init
if you replace the storage pool with something else. You can add a new storage pool (incus storage create
), and by doing so, Incus will initialize it as needed.