lvm2 root partition should wait for udev to settle before giving up

Bug #445408 reported by Gabriel de Perthuis
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Expired
Undecided
Unassigned
lvm2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: initramfs-tools

I have a root partition layered over lvm, raid, and the sata_via kernel module.
It doesn't appear immediately, and local-top/lvm2 fails to find it.

Once initramfs bails to a shell, lvm vgscan && lvm vgchange -ay are enough to make the partition available.

A mountroot fail hook (add_mountroot_fail_hook) in combination with udevadm settle might be able to fix the problem, assuming the udev scripts are synchronous and wait for array assembly and the like.

Tags: lvm2 mdadm udev
Revision history for this message
Gabriel de Perthuis (g2p) wrote :

This patch solves the problem using the add_mountroot_fail_hook approach.

It's rather safe and no worse than the current situation, but calling the various fail hooks is slow, because some of them are sleeping.
Calling udevadm settle, or (in the future), spawning a process and making things event-driven à la dracut, would work better.

Revision history for this message
Phillip Susi (psusi) wrote :

I think that something else is wrong on your system. You should not need to explicitly vgchange -ay to activate the volumes since they are brought online automatically by udev when it detects a new disk.

Revision history for this message
Phillip Susi (psusi) wrote :

Is this still a problem in lucid?

Changed in lvm2 (Ubuntu):
status: New → Incomplete
Changed in initramfs-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for lvm2 (Ubuntu) because there has been no activity for 60 days.]

Changed in lvm2 (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for initramfs-tools (Ubuntu) because there has been no activity for 60 days.]

Changed in initramfs-tools (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.