I had a setup of LXC with bridges and ZFS storages running on 16.04. Today I did a dist-upgrade and after reboot I wanted to look if all LXC containers run and ran lxc list and lxc asked me to perform an initial setup. All network bridges are also gone and zfs list is not showing any device.
It looks like, that the issue that lxc is not running is that ZFS is not able to start. Because I am using ZFS as file system for LXC.
syslog shows
zfs-import-cache.service: Main process exited, code=killed, status=6/ABRT
Failed to start Import ZFS pools by cache file.
zfs-import-cache.service: Unit entered failed state.
zfs-import-cache.service: Failed with result ‘signal’.
There are several services that are unable to start after the dist-upgrade and reboot. E.g. redis and spreed.
and journalctl -u zfs-import-cache -- Logs begin at Thu 2018-01-11 04:39:38 CET, end at Thu 2018-01-11 04:40:15 CET. -- Jan 11 04:39:41 server1 systemd[1]: Starting Import ZFS pools by cache file... Jan 11 04:39:42 server1 zpool[972]: internal error: Value too large for defined data type Jan 11 04:39:42 server1 systemd[1]: zfs-import-cache.service: Main process exited, code=killed, status=6/ABRT Jan 11 04:39:42 server1 systemd[1]: Failed to start Import ZFS pools by cache file. Jan 11 04:39:42 server1 systemd[1]: zfs-import-cache.service: Unit entered failed state. Jan 11 04:39:42 server1 systemd[1]: zfs-import-cache.service: Failed with result 'signal'.
I have 3 .img-files that should have been mounted as loop device on /dev/loop2 /dev/loop3 and /dev/loop4.
As it has been a while I setup the server I do not remember how I ran losetup to get them up on boot before I did the dist-upgrade. It looks like the original script to set them up has disappeared while the dist-upgrade. Now I tried to get the loop devices run with upstart with the following script, but it does not work