"container backend doesn't support quotas" issue

,

Hi,

I’m trying to limit of filesystem using on ZFS storage but it gives the error on the below. Have you an idea? thanks.

kernel_version: 4.4.0-87-generic
server: lxd
server_pid: 6768
server_version: 2.0.11
storage: dir
storage_version: ""
root@lxd:/var/lib/lxd# lxc config device set haproxy root size 2GB
error: The directory container backend doesn’t support quotas.
root@lxd:/var/lib/lxd#

Hello,

Quotas are supported in specific storage drivers only.

According to the table in the section Storage Backends and supported functions / Feature comparison
at https://lxd.readthedocs.io/en/latest/storage/
the Directory storage driver does not support quotas. ZFS and btrfs do, however.

Thanks Simos,

Well, I realized it that I created zfspool1 in old initiations. I think it remained former config and config looking for it.

root@lxd:/var/lib/lxd# lxc config set storage.zfs_pool_name lxd
error: Error checking if a pool is already in use: Failed to list ZFS filesystems: cannot open ‘zfspool1’: dataset does not exist

root@lxd:/var/lib/lxd# zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
lxd 2.98G 274K 2.98G - 0% 0% 1.00x ONLINE -

How can I set the name or recreate it to use ZFS not dir?

thanks