Open jaen opened 2 years ago
Generation from 04.01.2022 boots without problems, I'll see if I have made any configuration change that's rlevent since, but I don't think I've touched the setup of my pools for a while.
This seems to not be happening anymore, maybe this fixed the issue: https://github.com/NixOS/nixpkgs/pull/168302/files#diff-3c570009a2c7ab89324c8b85e157992451fecd47f332e51c4dc8d4351b7c1540R44 Can anyone confirm this would be a possible fix?
Describe the bug
From some time (might coincide with lvm2 upgrade to 2.03.15, but haven't checked yet) one of my servers has problems booting – it gets stuck at ZFS import. After some debugging I have pinpointed the issue to be caused by LVM – if I go into the rescue shell and do
vgchange -ay && exit
the system boots successfully. When looking at verbose boot logs I can see the following message:As you can see, udev fails to activate the volume group because the
lvm
seems to be missing – I can however callvgchange
without problems from the rescue shell, so it might not be as simple as the binary not being available.If it helps, the machine disk layout is as follow:
ronin-storage
pool on/dev/nvme0n1
, the device is decrypted in initrd and haspreLVM
set,tank
pool on 4 HDDs in a Thunderbolt enclosure with/dev/nvme1n1
for slog/L2ARC; the devices are decrypted via crypttab.Where LVM comes into play here is that the slog/L2ARC SSD is partitioned via LVM into three devices 2 for mirrored slogs and 1 for L2ARC (let's disregard whether it's a smart thing to do, I have done it mostly to learn how to set it up and had only one SSD to spare). This setup has worked without a hitch for a while, but has started breaking from some time.
Let me know what parts of my configuration would you like me to provide or any other information that would help debugging this.
Steps To Reproduce
Good question… I imagine it would be something like this:
But can't really test what is a minimal reproduction of this issue without having to restart server a lot and staying sane.
Expected behavior
The system should keep booting without a hitch, properly activating LVM volumes before ZFS pool import
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.