Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dracut fails to wait for lvm activation #17048

Open
wiebel opened this issue Feb 12, 2025 · 0 comments
Open

Dracut fails to wait for lvm activation #17048

wiebel opened this issue Feb 12, 2025 · 0 comments
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@wiebel
Copy link

wiebel commented Feb 12, 2025

System information

Type Version/Name
Distribution Name Gentoo
Distribution Version amd64/23.0/llvm/systemd
Kernel Version 6.12.12-gentoo
Architecture amd64
OpenZFS Version 2.2.7

Describe the problem you're observing

In dracut the import of the pool takes place before the requred lv is active.
At boot time I got thrown in the rescue shell after a pool cannot be imported due to missing device.
In the shell I can import the pool without any issues and continue to boot further.

Describe how to reproduce the problem

I have reconfigured my disc due to the severe problems with swap on zvol. So I opted to an luks encrypted physical lvm volume (PV) with an logical volume for swap and one to house the zpool.
So my basic setup is:

nvme0n1                                       259:0    0 953.9G  0 disk
├─nvme0n1p1                                   259:1    0   487M  0 part  /efi
└─nvme0n1p2                                   259:2    0 953.4G  0 part
  └─luks-54359573-8dc3-4988-84b0-3a4907892f5c 253:0    0 953.4G  0 crypt
    ├─cry_VG-psyche_drive                     253:1    0   800G  0 lvm
    └─cry_VG-composure                        253:2    0    64G  0 lvm   [SWAP]

With cry-VG-psyche_drive beeing the physical drive of my zpool.

There seem to be an runtime issue as the zpool import psyche seems to be run while the lvm activate has not yet finished/started.
I would have been tempted to simply rename contrib/dracut/90zfs to something like 95zfs, but I'm not knowlegable enough in the inner workings of dracut.

@wiebel wiebel added the Type: Defect Incorrect behavior (e.g. crash, hang) label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

1 participant