I’m probably missing something, missing something, or not an obvious nuance.
I have lvm-thin created on each machine. I have allocated the necessary volume for them. On the cluster leader I line according to the instructions looks like this
Try replacing lvm.vg_name=vg0 with source=vg0 as I would expect the source-less behavior to be Incus trying to create a new loop-file backed pool called vg0, causing that error.
then the behavior will be exactly like this. It will write about vgcreate error
If it is not a cluster, then I just add this line to the profile and everything works without problems. But here 3 lines are correct, I specified that it is a thin pool. But when the last command is executed it does not understand something, I only specify the lvm driver.
When I connected the servers to the master, then on each server appeared vg h4-pool and in it lv incusThinPool. There is no such vg on servers of course. As soon as I removed vl incusThinPool vg disappeared.
Now h-pool is visible on all servers, but incus storage list say state is errored
I don’t have an empty vg to give to incus. In my vg0 there is a vg0/root and a logic volume for lxc containers that I plan to move to incus. I can’t specify lvm.vg.force_reuse=true when creating a partition in the cluster and I don’t have an empty vg.
During the day I tried to connect the storage, but I didn’t realize to add a key as on the screen after reading the documentation. I disassembled the cluster, and when adding to it I was asked to specify the pool, which I did. incus storage show my-pool showed parameters that were not accepted by the cluster.
config:
lvm.use_thinpool: “true”
lvm.vg.force_reuse: “true”
Here’s another way of looking at it. Your solution is certainly simpler.