After adding a lot of debug into the kernel I can see what is causing the issue:
1. /dev/vdb is being mounted onto /mnt by systemd: Nov 13 11:26:06 devstack kernel: [ 259.373361] mount: 1658 mount, parent 1 systemd Nov 13 11:26:06 devstack kernel: [ 259.394961] mount: 1658 mount /dev/vdb Nov 13 11:26:06 devstack kernel: [ 259.412916] do_mount: 1658 mount dev: /dev/vdb opts: '(null)' dir: '/mnt' 2. snap-confine is mounting /tmp/snap.rootfs_2SnJZF//mnt onto /mnt: Nov 13 11:26:07 devstack kernel: [ 261.546874] mount: 1706 snap-confine /mnt /inaccessible/dir opts: '(null)' dir: '/run/systemd/unit-root/root' Nov 13 11:26:07 devstack kernel: [ 261.554827] do_mount: 1706 snap-confine dev: /mnt opts: '(null)' dir: '/tmp/snap.rootfs_2SnJZF//mnt' So unmounting /mnt still leaves /dev/vdb marked as in use because of the snap-confine mount. There is no kernel bug here, the kernel still sees /dev/vdb as being, hence it's doing the correct thing in not allowing zfs to mount on the in-use /tmp/snap.rootfs_2SnJZF//mnt mount. Colin -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1801349 Title: zpool create -f lxd /dev/vdb fails on cosmic (18.10) -- func27 To manage notifications about this bug go to: https://bugs.launchpad.net/charm-lxd/+bug/1801349/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs