I would like to share some more info. Yesterday I had a look at how dracut (version 059-4) manages LVM activation. It uses the older LVM way that allows partial VG activation:

-----------------------------------------

mkdir /var/tmp/dracut

cd /var/tmp/dracut/

lsinitrd --unpack /boot/initrd.img-6.1.0-9-amd64

cat etc/udev/rules.d/64-lvm.rules

...

RUN+="/sbin/initqueue --settled --onetime --unique /sbin/lvm_scan"
RUN+="/sbin/initqueue --timeout --name 51-lvm_scan --onetime --unique /sbin/lvm_scan --activationmode degraded"

...

-----------------------------------------

On one AlmaLinux 9 VM I have for tests, the exact same udev rules are present for the initramfs, so it seems dracut-based distros still support partial VG activation (or at least some of them do).

I've done some initial tests to check if those partial VGs can actually be activated by dracut. The preliminary answer is yes, they can. But I intend to do further tests to check there are no issues with complex storage architectures that involve a combination of RAID, LVM, LUKS, etc.

If reopening this bug and allowing for initramfs-tools to use partial VG activation seems inappropriate, maybe dracut could be a suitable alternative for the users affected by this issue.

Best wishes.

--
---- Javier Miqueleiz (ethereal) <javier (at) miqueleiz (dot) com> ----------

  "Since the best man could not be obtained, mediocre ones would have
    to be accepted."

                -- Leipzig mayor Abraham Platz, 1723, commenting on appointing
                   Bach as the Cantor of St Thomas School, Leipzig, when
                   Graupner refused the post (Graupner is a now long-forgotten
                   minor musician); quoted in Werner Neuman, Bach (1961)

--------------------------------------------------------------------------------

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to