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 Kernel
Packages, which is subscribed to zfs-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1670137

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

Status in zfs-linux package in Ubuntu:
  In Progress

Bug description:
  Please see: 2017-03-05 09:03  2017-03-05 14:03 UTC    KernelOops      
linux-image-4.4.0-31-generic
    https://errors.ubuntu.com/oops/7bb2122e-01b1-11e7-ba2a-fa163e839e11

  Running zfs [root] with l2arc cache enabled fails to suspend properly,
  screen goes blank but power stays on, when I disable the cache it
  works fine.  Unsure if this happens with non-root install of zfs, slog
  does not cause this problem.

  Linux mp 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016
  x86_64 x86_64 x86_64 GNU/Linux

  ii  zfs-initramfs                              0.6.5.6-0ubuntu15              
                             all          Native OpenZFS root filesystem 
capabilities for Linux
  ii  zfs-zed                                    0.6.5.6-0ubuntu15              
                             amd64        OpenZFS Event Daemon (zed)
  ii  zfsutils-linux                             0.6.5.6-0ubuntu15              
                             amd64        Native OpenZFS management utilities 
for Linux

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to