Skip to content

Slow import when rebooting with MMP after upgrading to 2.4.1 #18370

@stuartthebruce

Description

@stuartthebruce

System information

Type Version/Name
Distribution Name Rock Linux
Distribution Version 9.7
Kernel Version 5.14.0-611.36.1
Architecture x86_64
OpenZFS Version 2.4.1

Describe the problem you're observing

After upgrading from 2.4.0 to 2.4.1 the time to import a pool with multihost=on from an external JBOD with 60 HDD has increased to ~4 minutes. I suspect this is due to #18177, but it would be nice if that extra safety could be optimized to reduce system boot time.

Describe how to reproduce the problem

Reboot a system with qty 8 external 60-drive JBOD pools as 8 separate zpool with multihost=on and wait for zfs-import-cache.service to add ~30 minutes to the boot time.

Include any warning/errors/backtraces from the system logs

[root@zfsarchive1 ~]# systemctl status zfs-import-cache.service
● zfs-import-cache.service - Import ZFS pools by cache file
     Loaded: loaded (/usr/lib/systemd/system/zfs-import-cache.service; enabled; preset: enabled)
     Active: active (exited) since Tue 2026-03-17 10:41:42 PDT; 6 days ago
       Docs: man:zpool(8)
   Main PID: 31263 (code=exited, status=0/SUCCESS)
        CPU: 37.298s

Mar 17 10:10:25 zfsarchive1 systemd[1]: Starting Import ZFS pools by cache file...
Mar 17 10:41:42 zfsarchive1 systemd[1]: Finished Import ZFS pools by cache file.

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