oneiric boot sequence very slow with lvm

Bug #880266 reported by Adrien Loxq
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
lvm2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After a fresh install of Ubuntu Oneiric, the boot sequence has become very slow.

My system is installed on top of a LVM volume over a mdadm raid1 array.
According to dmesg (see attachment), there is a huge delay on lvm volumes detection.

Tags: boot lvm slow
Revision history for this message
Adrien Loxq (adrien-loxq) wrote :
Revision history for this message
Adrien Loxq (adrien-loxq) wrote :
Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

I had something similar a few months ago on Maverick - but it disappeared, never did find out why.

affects: ubuntu → lvm2 (Ubuntu)
Revision history for this message
Adrien Loxq (adrien-loxq) wrote :

The problem still exists on my pc but I can't reproduce it on a virtualbox machine with similar configuration.

Revision history for this message
K.V. (tipofthesowrd) wrote :

Same here, I can recreate it on a VirtualBox VM though.
Tried both using a separate logical volume for /var and keeping /var on the root logical volume.
Same effect.

I've noticed this effect before on Narwhal, but with the upgrade to 11.10 the effects are worse

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lvm2 (Ubuntu):
status: New → Confirmed
Revision history for this message
kex (kex-iki) wrote :

I have also this problem with 11.10.

My root device is just a normal SSD, but the /home logical volume and an additional logical volume is a lvm which currently only has /dev/md0 as physical disks. /dev/md0 is a raid 1 with /dev/sda1 and /dev/sdc1 in it.

Revision history for this message
kex (kex-iki) wrote :

the boot hangs indefinitely, but if I press ctrl-alt-del, the machine reboots to grub. Have to press enter, and the system then boots normally, but asks if I want to boot with degraded raid. If I say "n", busybox starts. Then writing "exit" results in a nice rest of the boot. A bit complicated, but works.

Revision history for this message
kex (kex-iki) wrote :

After the updates of yesterday, the machine has booted much quicker now. Only a couple of times of experience yet, though.

Revision history for this message
kex (kex-iki) wrote :

I was too hasty. The problem is still here. Is it possible to switch to the old (sysV?) style boot sequence?

Revision history for this message
Mariano Draghi (chaghi) wrote :

This seems to be the same problem reported on bugs #802626 and #906358, and it's related to udev. The workarround suggested on comment 31 on the later worked for me.

Revision history for this message
kex (kex-iki) wrote :

The workaround did not seem to work for me. I guess the bug I am experiencing is different, or the combination of RAID+LVM needs yet another workaround to work.

Revision history for this message
kex (kex-iki) wrote :

Is there an option of switching to a different boot process, like SYSV type init scripts etc. within Ubuntu?

I have a similar setup in a debian system and it has no such problem. I would not want to start switching to a different distribution.

Revision history for this message
kex (kex-iki) wrote :

updated to precise pangolin and it seems that it does not have the boot issue for me. I don't know whether they fixed it or is it just a race condition that is not triggered for some reason.

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.