On Tue, Jan 17, 2023 at 08:13:33AM +0100, Christian Herzog wrote:
> update: we were told by upstream that there is a known instability between lvm
> and udev-generated symlinks and a devices file should be used instead. So
> that's what we're going to do.

I think I actually know what the problem is.  pvscan is run during the
udev event handling, esp in the initramfs where no systemd is available
to move that out.  Modifications to devices and symlinks are only
applies at the end of the event.  So symlinks will always be missing on
the first event.

If you have systemd running, it uses systemd-run, then it is just a race
condition between udev and systemd, which one is faster in finishing.

The only way to fix this is to provide the symlink information to pvscan
in addition to the device itself and let it figure that out.

Regards,
Bastian

-- 
No problem is insoluble.
                -- Dr. Janet Wallace, "The Deadly Years", stardate 3479.4

Reply via email to