Public bug reported:

I was doing some experimentation with encrypted zvols and observed that
the zfs-volume-wait.service systemd unit does not start if the encrypted
zvol is locked.  The /sbin/zvol_wait should not wait for links when the
volume has property keystatus=unavailable.  The attached patch seems to
resolve the issue for me.

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04 LTS
Release:        20.04
Codename:       focal

# apt-cache policy zfsutils-linux
zfsutils-linux:
  Installed: 0.8.3-1ubuntu12.1
  Candidate: 0.8.3-1ubuntu12.2
  Version table:
     0.8.3-1ubuntu12.2 500
        500 http://gb.archive.ubuntu.com/ubuntu focal-updates/main amd64 
Packages
 *** 0.8.3-1ubuntu12.1 100
        100 /var/lib/dpkg/status
     0.8.3-1ubuntu12 500
        500 http://gb.archive.ubuntu.com/ubuntu focal/main amd64 Packages

** Affects: zfs-linux (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "Patch for zvol_wait to ignore locked zvols"
   https://bugs.launchpad.net/bugs/1888405/+attachment/5394630/+files/zfs-patch

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

Title:
  zfsutils-linux: zfs-volume-wait.service fails with locked encrypted
  zvols

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

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

Reply via email to