I've attached my workaround script. To use:

change the ZFSPOOLNAME variable in the script to the name of the zfspool with 
an NVMe L2ARC.
change the NVMEL2ARCPART to the name of the cache partition.

sudo cp zpool-offline-cache.sh /lib/systemd/system-sleep/
sudo chmod +x /lib/systemd/system-sleep/zpool-offline-cache.sh

** Attachment added: "L2ARC workaround sleep script"
   
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1670137/+attachment/4954099/+files/zpool-offline-cache.sh

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1670137

Title:
  cache on NVMe inhibits proper suspend/hibernate - zfs l2arc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1670137/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to