Unable to create new ZFS Pool

Hi

I do some experiments with inucs-os. Thanks to the good docs, the installation on real hardware worked out quiet well for me.
However, I cannot figure out how to create an additional ZFS pool inside of my incus-os installation.

What I tried so far:

incus remote switch MY_INCUSOS_REMOTE
incus admin os system storage show
incus admin os system storage edit 

The storage show command gives me the /dev/disk/by-id/… of my two nvme ssds. With the edit command i tried to create a zfs-raid1 pool with those two drives. However, as soon as I save the changes I get the error:

WARNING: The IncusOS API and configuration is subject to change

Config parsing error: no pool configuration provided
Press enter to open the editor again or ctrl+c to abort change

I even get this error when i close the editor without changing anything in the storage config.

My current system:

WARNING: The IncusOS API and configuration is subject to change

environment:
  hostname: 00000000-0000-0000-0000-905a08aa1566
  os_name: IncusOS
  os_version: "202511292320"

What do I miss?
Thanks, Patrik

It would be useful to see the yaml configuration you are attempting to use. Something like the following should work:

config:
  pools:
  - name: MY_POOL_NAME
    type: zfs-raid1
    devices:
    - /dev/disk/by-id/NVME_DRIVE1
    - /dev/disk/by-id/NVME_DRIVE2

Thanks for the answer Mathias.

The problem was, that I added the config directly under the existing “pools” section. Then it does not work.
However, it works fine when I just append the config to the yaml file (including the “config” key), as you suggested.

However, when the yaml is opened (incus admin os system storage edit) and the editor closed without any modification, I also get the reported error. Not sure if this is the intended behavior.