After LXD 3.19 from Snap and/or enabling lxcfs.loadavg LXD is not starting for a long time with continiusly repeating errors:
t=2020-01-27T20:39:57+0300 lvl=info msg="Initializing local database"
t=2020-01-27T20:39:57+0300 lvl=info msg="Starting /dev/lxd handler:"
t=2020-01-27T20:39:57+0300 lvl=info msg=" - binding devlxd socket" socket=/var/snap/lxd/common/lxd/devlxd/sock
t=2020-01-27T20:39:57+0300 lvl=info msg="REST API daemon:"
t=2020-01-27T20:39:57+0300 lvl=info msg=" - binding Unix socket" inherited=true socket=/var/snap/lxd/common/lxd/unix.socket
t=2020-01-27T20:39:57+0300 lvl=info msg="Initializing global database"
t=2020-01-27T20:39:57+0300 lvl=info msg="Initializing storage pools"
t=2020-01-27T20:40:07+0300 lvl=eror msg="Failed to start the daemon: Failed initializing storage pool \"ext4\": Failed to mount '/var/lib/snapd/hostfs/var/ext4/lxd' on '/var/snap/lxd/common/lxd/storage-pools/ext4': no such file or directory"
t=2020-01-27T20:40:07+0300 lvl=info msg="Starting shutdown sequence"
t=2020-01-27T20:40:07+0300 lvl=info msg="Stopping REST API handler:"
t=2020-01-27T20:40:07+0300 lvl=info msg=" - closing socket" socket=/var/snap/lxd/common/lxd/unix.socket
t=2020-01-27T20:40:07+0300 lvl=info msg="Stopping /dev/lxd handler:"
t=2020-01-27T20:40:07+0300 lvl=info msg=" - closing socket" socket=/var/snap/lxd/common/lxd/devlxd/sock
t=2020-01-27T20:40:07+0300 lvl=info msg="Closing the database"
t=2020-01-27T20:40:07+0300 lvl=info msg="Unmounting temporary filesystems"
t=2020-01-27T20:40:07+0300 lvl=info msg="Done unmounting temporary filesystems"
tail: /var/snap/lxd/common/lxd/logs/lxd.log: file truncated
t=2020-01-27T20:40:12+0300 lvl=info msg="LXD 3.19 is starting in normal mode" path=/var/snap/lxd/common/lxd
t=2020-01-27T20:40:12+0300 lvl=info msg="Kernel uid/gid map:"
t=2020-01-27T20:40:12+0300 lvl=info msg=" - u 0 0 4294967295"
t=2020-01-27T20:40:12+0300 lvl=info msg=" - g 0 0 4294967295"
t=2020-01-27T20:40:12+0300 lvl=info msg="Configured LXD uid/gid map:"
t=2020-01-27T20:40:12+0300 lvl=info msg=" - u 0 1000000 1000000000"
t=2020-01-27T20:40:12+0300 lvl=info msg=" - g 0 1000000 1000000000"
t=2020-01-27T20:40:12+0300 lvl=info msg="Kernel features:"
t=2020-01-27T20:40:12+0300 lvl=info msg=" - netnsid-based network retrieval: yes"
t=2020-01-27T20:40:12+0300 lvl=info msg=" - uevent injection: yes"
t=2020-01-27T20:40:12+0300 lvl=info msg=" - seccomp listener: yes"
t=2020-01-27T20:40:12+0300 lvl=info msg=" - seccomp listener continue syscalls: yes"
t=2020-01-27T20:40:12+0300 lvl=info msg=" - unprivileged file capabilities: yes"
t=2020-01-27T20:40:12+0300 lvl=info msg=" - cgroup layout: hybrid"
t=2020-01-27T20:40:12+0300 lvl=warn msg=" - Couldn't find the CGroup blkio.weight, I/O weight limits will be ignored"
t=2020-01-27T20:40:12+0300 lvl=warn msg=" - Couldn't find the CGroup memory swap accounting, swap limits will be ignored"
t=2020-01-27T20:40:12+0300 lvl=info msg=" - shiftfs support: disabled"
t=2020-01-27T20:40:12+0300 lvl=info msg="Initializing local database"
t=2020-01-27T20:40:12+0300 lvl=info msg="Starting /dev/lxd handler:"
t=2020-01-27T20:40:12+0300 lvl=info msg=" - binding devlxd socket" socket=/var/snap/lxd/common/lxd/devlxd/sock
t=2020-01-27T20:40:12+0300 lvl=info msg="REST API daemon:"
t=2020-01-27T20:40:12+0300 lvl=info msg=" - binding Unix socket" inherited=true socket=/var/snap/lxd/common/lxd/unix.socket
t=2020-01-27T20:40:12+0300 lvl=info msg="Initializing global database"
t=2020-01-27T20:40:12+0300 lvl=info msg="Initializing storage pools"
t=2020-01-27T20:40:22+0300 lvl=eror msg="Failed to start the daemon: Failed initializing storage pool \"ext4\": Failed to mount '/var/lib/snapd/hostfs/var/ext4/lxd' on '/var/snap/lxd/common/lxd/storage-pools/ext4': no such file or directory"
t=2020-01-27T20:40:22+0300 lvl=info msg="Starting shutdown sequence"
t=2020-01-27T20:40:22+0300 lvl=info msg="Stopping REST API handler:"
t=2020-01-27T20:40:22+0300 lvl=info msg=" - closing socket" socket=/var/snap/lxd/common/lxd/unix.socket
t=2020-01-27T20:40:22+0300 lvl=info msg="Stopping /dev/lxd handler:"
t=2020-01-27T20:40:22+0300 lvl=info msg=" - closing socket" socket=/var/snap/lxd/common/lxd/devlxd/sock
t=2020-01-27T20:40:22+0300 lvl=info msg="Closing the database"
t=2020-01-27T20:40:22+0300 lvl=info msg="Unmounting temporary filesystems"
t=2020-01-27T20:40:22+0300 lvl=info msg="Done unmounting temporary filesystems"
tail: /var/snap/lxd/common/lxd/logs/lxd.log: file truncated
t=2020-01-27T20:40:27+0300 lvl=info msg="LXD 3.19 is starting in normal mode" path=/var/snap/lxd/common/lxd
t=2020-01-27T20:40:27+0300 lvl=info msg="Kernel uid/gid map:"
t=2020-01-27T20:40:27+0300 lvl=info msg=" - u 0 0 4294967295"
t=2020-01-27T20:40:27+0300 lvl=info msg=" - g 0 0 4294967295"
t=2020-01-27T20:40:27+0300 lvl=info msg="Configured LXD uid/gid map:"
t=2020-01-27T20:40:27+0300 lvl=info msg=" - u 0 1000000 1000000000"
t=2020-01-27T20:40:27+0300 lvl=info msg=" - g 0 1000000 1000000000"
t=2020-01-27T20:40:27+0300 lvl=info msg="Kernel features:"
t=2020-01-27T20:40:27+0300 lvl=info msg=" - netnsid-based network retrieval: yes"
t=2020-01-27T20:40:27+0300 lvl=info msg=" - uevent injection: yes"
t=2020-01-27T20:40:27+0300 lvl=info msg=" - seccomp listener: yes"
t=2020-01-27T20:40:27+0300 lvl=info msg=" - seccomp listener continue syscalls: yes"
t=2020-01-27T20:40:27+0300 lvl=info msg=" - unprivileged file capabilities: yes"
t=2020-01-27T20:40:27+0300 lvl=info msg=" - cgroup layout: hybrid"
t=2020-01-27T20:40:27+0300 lvl=warn msg=" - Couldn't find the CGroup blkio.weight, I/O weight limits will be ignored"
t=2020-01-27T20:40:27+0300 lvl=warn msg=" - Couldn't find the CGroup memory swap accounting, swap limits will be ignored"
t=2020-01-27T20:40:27+0300 lvl=info msg=" - shiftfs support: disabled"
t=2020-01-27T20:40:27+0300 lvl=info msg="Initializing local database"
t=2020-01-27T20:40:27+0300 lvl=info msg="Starting /dev/lxd handler:"
t=2020-01-27T20:40:27+0300 lvl=info msg=" - binding devlxd socket" socket=/var/snap/lxd/common/lxd/devlxd/sock
t=2020-01-27T20:40:27+0300 lvl=info msg="REST API daemon:"
t=2020-01-27T20:40:27+0300 lvl=info msg=" - binding Unix socket" inherited=true socket=/var/snap/lxd/common/lxd/unix.socket
t=2020-01-27T20:40:27+0300 lvl=info msg="Initializing global database"
t=2020-01-27T20:40:27+0300 lvl=info msg="Initializing storage pools"
but…
root@he3 ~ # zfs list | grep ext4
tank/ext4 20.6G 12.8T 450M -
so it should work.
How to fix it?