Skip to content

zpool export fails with pool is busy #16963

@sempervictus

Description

@sempervictus

System information

Type Version/Name
Distribution Name Arch
Distribution Version Current
Kernel Version 6.6
Architecture amd64
OpenZFS Version 2.2.7 (built into the kernel binary)

Describe the problem you're observing

A pool atop an encrypted volume residing on a ZVOL always fails to export after upgrading 2.2.7 despite none of its datasets being mounted. Pool is imported with -t as its actual name clashes with an existing pool in the host (rpool):

Image

Describe how to reproduce the problem

  1. Decrypt the dm-crypt partition on the ZVOL
  2. import the zpool within it using a temporary pool name - -t flag and mount prefix (-R)
  3. chroot into the FS, run updates, exit the chroot
  4. unmount the datasets mounted during import
  5. try to export the pool

Include any warning/errors/backtraces from the system logs

cannot export 'temp-name-pool': pool is busy

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions