Public bug reported:

When installing a new kernel or removing old kernels, Grub probing takes
an extremely long time. The slow steps are "Running postrm hook script
/usr/sbin/update-grub.", each of the probing steps during "Generating
grub.cfg ...", and "Running postinst script ..." (I cannot remember the
full message).

Below is a konsole log where I removed three kernel images, and it took
over two hours to complete.

This may be due to my disk setup; I have two 1.5 TB disks in a RAID
mirror configuration, with LVM running on top of the md device.

On other machines (including a duplicate of the one that exhibited this
slowness, the only difference being that the RAID array is degraded,
with only one 1.5 TB disk), this process is very fast.

jonathan@gus:~$ time sudo aptitude remove linux-image-2.6.32-37-generic 
linux-image-2.6.32-38-generic linux-image-2.6.32-39-generic
[sudo] password for jonathan: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initializing package states... Done
The following packages will be REMOVED:
  linux-image-2.6.32-37-generic linux-image-2.6.32-38-generic 
    linux-image-2.6.32-39-generic 
    0 packages upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
    Need to get 0B of archives. After unpacking 384MB will be freed.
    Writing extended state information... Done
    (Reading database ... 128397 files and directories currently installed.)
    Removing linux-image-2.6.32-37-generic ...
    Examining /etc/kernel/prerm.d.
    run-parts: executing /etc/kernel/prerm.d/dkms 2.6.32-37-generic 
/boot/vmlinuz-2.6.32-37-generic
    Running postrm hook script /usr/sbin/update-grub.
    Generating grub.cfg ...
    Found background image: moreblue-orbit-grub.png
    Found linux image: /boot/vmlinuz-2.6.32-41-generic
    Found initrd image: /boot/initrd.img-2.6.32-41-generic
    Found linux image: /boot/vmlinuz-2.6.32-40-generic
    Found initrd image: /boot/initrd.img-2.6.32-40-generic
    Found linux image: /boot/vmlinuz-2.6.32-39-generic
    Found initrd image: /boot/initrd.img-2.6.32-39-generic
    Found linux image: /boot/vmlinuz-2.6.32-38-generic
    Found initrd image: /boot/initrd.img-2.6.32-38-generic
    Found memtest86+ image: /memtest86+.bin
    done
    Removing linux-image-2.6.32-38-generic ...
    Examining /etc/kernel/prerm.d.
    run-parts: executing /etc/kernel/prerm.d/dkms 2.6.32-38-generic 
/boot/vmlinuz-2.6.32-38-generic
    Running postrm hook script /usr/sbin/update-grub.
    Generating grub.cfg ...
    Found background image: moreblue-orbit-grub.png
    Found linux image: /boot/vmlinuz-2.6.32-41-generic
    Found initrd image: /boot/initrd.img-2.6.32-41-generic
    Found linux image: /boot/vmlinuz-2.6.32-40-generic
    Found initrd image: /boot/initrd.img-2.6.32-40-generic
    Found linux image: /boot/vmlinuz-2.6.32-39-generic
    Found initrd image: /boot/initrd.img-2.6.32-39-generic
    Found memtest86+ image: /memtest86+.bin
    done
    Removing linux-image-2.6.32-39-generic ...
    Examining /etc/kernel/prerm.d.
    run-parts: executing /etc/kernel/prerm.d/dkms 2.6.32-39-generic 
/boot/vmlinuz-2.6.32-39-generic
    Running postrm hook script /usr/sbin/update-grub.
    Generating grub.cfg ...
    Found background image: moreblue-orbit-grub.png
    Found linux image: /boot/vmlinuz-2.6.32-41-generic
    Found initrd image: /boot/initrd.img-2.6.32-41-generic
    Found linux image: /boot/vmlinuz-2.6.32-40-generic
    Found initrd image: /boot/initrd.img-2.6.32-40-generic
    Found memtest86+ image: /memtest86+.bin
    done
    Reading package lists... Done             
    Building dependency tree       
    Reading state information... Done
    Reading extended state information       
    Initializing package states... Done
    Writing extended state information... Done


    real    123m59.313s
    user    0m21.540s
    sys     0m9.710s

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: grub2 (not installed)
ProcVersionSignature: Ubuntu 2.6.32-41.88-generic 2.6.32.59+drm33.24
Uname: Linux 2.6.32-41-generic x86_64
Architecture: amd64
Date: Mon May 21 14:59:41 2012
InstallationMedia: Kubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: grub2

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug lucid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1002451

Title:
  Slow reconfiguration during kernel installation or removal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1002451/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to