Hi Richard and Dider, thanks - I have set up encrypted swap on mdraid1 instead. It works but is subject to the same cycle issue - sometimes swap doesn't load, sometimes the boot zfs pool won't mount.
I went to apply the patch, but my system doesn't seem to have the two files that are referenced,
etc/systemd/system-generators/zfs-mount-generator.in
and
/etc/systemd/system/zfs-mount.service.in
and so the patch command failed.
I have probably misunderstood something, sorry... I'm way out of my depth here. FWIW here are the contents of the directories for the missing files:
I did not install any zfs packages separately - the system only has what debootstrap gave it:
root@eu1 ~ dpkg -l | grep zfs
ii libzfs2linux 0.8.3-1ubuntu12 amd64 OpenZFS filesystem library for Linux
ii zfs-initramfs 0.8.3-1ubuntu12 amd64 OpenZFS root filesystem capabilities for Linux - initramfs
ii zfs-zed 0.8.3-1ubuntu12 amd64 OpenZFS Event Daemon
ii zfsutils-linux 0.8.3-1ubuntu12 amd64 command-line tools to manage OpenZFS filesystems
Hi Richard and Dider, thanks - I have set up encrypted swap on mdraid1 instead. It works but is subject to the same cycle issue - sometimes swap doesn't load, sometimes the boot zfs pool won't mount.
I went to apply the patch, but my system doesn't seem to have the two files that are referenced, system- generators/ zfs-mount- generator. in system/ zfs-mount. service. in
etc/systemd/
and
/etc/systemd/
and so the patch command failed.
I have probably misunderstood something, sorry... I'm way out of my depth here. FWIW here are the contents of the directories for the missing files:
root@eu1 ~ ls -l /etc/systemd
total 94
-rw-r--r-- 1 root root 1042 Apr 22 19:04 journald.conf
-rw-r--r-- 1 root root 1042 Apr 22 19:04 logind.conf
drwxr-xr-x 2 root root 2 Apr 22 19:04 network
-rw-r--r-- 1 root root 584 Apr 2 04:23 networkd.conf
-rw-r--r-- 1 root root 529 Apr 2 04:23 pstore.conf
-rw-r--r-- 1 root root 634 Apr 22 19:04 resolved.conf
-rw-r--r-- 1 root root 790 Apr 2 04:23 sleep.conf
drwxr-xr-x 15 root root 21 May 3 13:08 system
-rw-r--r-- 1 root root 1759 Apr 22 19:04 system.conf
-rw-r--r-- 1 root root 604 Apr 22 19:04 timesyncd.conf
drwxr-xr-x 3 root root 3 May 2 18:24 user
-rw-r--r-- 1 root root 1185 Apr 22 19:04 user.conf
(system-generators is missing)
root@eu1 ~ ls -l /etc/systemd/ system/ freedesktop. resolve1. service -> /lib/systemd/ system/ systemd- resolved. service freedesktop. thermald. service -> /lib/systemd/ system/ thermald. service freedesktop. timesync1. service -> /lib/systemd/ system/ systemd- timesyncd. service target. wants target. wants service. wants target. wants target. wants system/ ssh.service target. wants system/ rsyslog. service system/ zfs-zed. service target. wants service. wants target. wants
total 90
lrwxrwxrwx 1 root root 44 Apr 27 17:56 dbus-org.
lrwxrwxrwx 1 root root 36 Apr 27 18:15 dbus-org.
lrwxrwxrwx 1 root root 45 Apr 27 17:56 dbus-org.
drwxr-xr-x 2 root root 3 Apr 27 17:56 default.
drwxr-xr-x 2 root root 3 Apr 27 18:05 emergency.
drwxr-xr-x 2 root root 3 Apr 27 17:56 getty.target.wants
drwxr-xr-x 2 root root 4 May 3 13:08 mdmonitor.
drwxr-xr-x 2 root root 21 Apr 28 19:21 multi-user.
drwxr-xr-x 2 root root 3 Apr 27 18:05 rescue.target.wants
drwxr-xr-x 2 root root 11 May 3 13:08 sockets.
lrwxrwxrwx 1 root root 31 Apr 27 18:02 sshd.service -> /lib/systemd/
drwxr-xr-x 2 root root 10 May 3 13:08 sysinit.
lrwxrwxrwx 1 root root 35 Apr 27 17:56 syslog.service -> /lib/systemd/
drwxr-xr-x 2 root root 10 May 2 18:29 timers.target.wants
lrwxrwxrwx 1 root root 35 Apr 27 18:05 zed.service -> /lib/systemd/
drwxr-xr-x 2 root root 3 Apr 27 18:05 zfs-import.
drwxr-xr-x 2 root root 3 Apr 27 18:05 zfs-mount.
drwxr-xr-x 2 root root 8 Apr 27 18:05 zfs.target.wants
drwxr-xr-x 2 root root 3 Apr 27 18:05 zfs-volumes.
(zfs-mount. service. in is missing)
The system was installed with debootstrap:
dpkg --install debootstrap_ 1.0.118ubuntu1_ all.deb archive. ubuntu. com/ubuntu/
debootstrap --arch=amd64 focal /mnt http://
I did not install any zfs packages separately - the system only has what debootstrap gave it:
root@eu1 ~ dpkg -l | grep zfs
ii libzfs2linux 0.8.3-1ubuntu12 amd64 OpenZFS filesystem library for Linux
ii zfs-initramfs 0.8.3-1ubuntu12 amd64 OpenZFS root filesystem capabilities for Linux - initramfs
ii zfs-zed 0.8.3-1ubuntu12 amd64 OpenZFS Event Daemon
ii zfsutils-linux 0.8.3-1ubuntu12 amd64 command-line tools to manage OpenZFS filesystems
Many thanks for looking at this so quickly! :-)