Skip to content

openzfs-2.0.0-rc7 zpool import hangs #11245

Closed
@zviratko

Description

@zviratko

System information

Type Version/Name
Distribution Name Gentoo Linux
Distribution Version ~amd64
Linux Kernel 5.9.11-gentoo
Architecture amd64
ZFS Version 2.0.0-rc7
SPL Version 2.0.0-rc7

Describe the problem you're observing

After updating from openzfs-2.0.0-rc6 to openzfs-2.0.0-rc7 I am observing a hang on boot.
Running debug shell in initramfs (I am running root on ZFS, initramfs is genkernel/linuxrc) I see that "zpool import" takes 1m16s (consistently) to return with correct ata. Not sure how long it took on rc6, but it surely didn't take more than a second or so to mount the pool.

EDIT: This was a red herring caused by missing zpool.cache. The actual import simply never completes.

My root pool is on a 2 drive NVMe mirror.
There is also a boot pool on the same NVMe pair.

There is also a data pool on 6 SATA drives with 2 SSD cache drives for L2ARC and SLOG.

Drives and pools are probably detected correctly, it just takes a long time.

I waited for ~15 minutes and the system didn't boot, I'll try waiting longer when I can, maybe something can be dug up from a running system.

I don't think the problem is in the userland utilities: 2.0.0-rc6 kernel modules + 2.0.0-rc7 userland work just fine.

Include any warning/errors/backtraces from the system logs

I see nothing in dmesg indicating some sort of I/O error or hang, no errors anywhere. Let me know how I can help debug this. Unfortunately the initramfs environment is limited so I can't look at stack or something like that (at least not easily).

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