Setting up mdadm (3.2.5-5ubuntu3) freezes after calling grub1's update-grub from postinst
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub |
Invalid
|
Undecided
|
Unassigned | ||
mdadm |
Invalid
|
Undecided
|
Unassigned | ||
grub (Ubuntu) |
Invalid
|
Wishlist
|
Unassigned | ||
Trusty |
Won't Fix
|
Wishlist
|
Unassigned | ||
mdadm (Ubuntu) |
Fix Released
|
High
|
Dimitri John Ledkov | ||
Trusty |
Fix Released
|
High
|
Dimitri John Ledkov | ||
Utopic |
Fix Released
|
High
|
Dimitri John Ledkov |
Bug Description
[Impact]
* Upgrading to mdadm/trusty package fails, if the machine is using grub1
[Test Case]
* Install grub1 - package grub (I've installed 8.04 LTS from old-releases.
* Upgrading to mdadm/trusty should not stall & should not execute grub1's update-grub & should succeed normally
[Regression Potential]
* This bug does not affect installations that use grub2, default since 9.04
[Other Info]
=======
All users who have not yet upgraded to grub2 are urged to upgrade following instructions at:
https:/
=======
[Original bug report]
I'm unable to upgrade my Dell PowerEdge T105 from Saucy to Trusty because madm freezes during the update grub process during setup. This system was originally installed in April of 2009 with Hardy 8.04 and has successfully upgraded from revision to revision since then. This is the first time madm has failed to upgrade.
Yesterday evening I ran do-release-upgrade -d and it froze at:
Setting up libdevmapper1.
Setting up libdevmapper-
Setting up lvm2 (2.02.98-6ubuntu2) ...
Installing new version of config file /etc/lvm/lvm.conf ...
update-initramfs: deferring update (trigger activated)
Setting up mdadm (3.2.5-5ubuntu3) ...
Removing any system startup links for /etc/init.
update-initramfs: deferring update (trigger activated)
update-grub is /usr/sbin/
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/memtest86
-- 0:trusty -- time-stamp -- Feb/25/14 17:04:19 --
-- 0:trusty -- time-stamp -- Feb/25/14 17:11:58 --
-- 0:trusty -- time-stamp -- Feb/25/14 17:14:00 --
-- 0:trusty -- time-stamp -- Feb/25/14 17:27:48 --
It sat there for about half an hour so I canceled the do-release-upgrade and tried to recover with the usual steps after cleaning out some stale kernels:
root@kami:~# apt-get update
[...] output removed
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
root@kami:~# apt-get -f install
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
root@kami:~# apt-get dist-upgrade
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
root@kami:~# sudo dpkg --configure -a
Processing triggers for initramfs-tools (0.103ubuntu3) ...
update-initramfs: Generating /boot/initrd.
Setting up mdadm (3.2.5-5ubuntu3) ...
Removing any system startup links for /etc/init.
update-initramfs: deferring update (trigger activated)
update-grub is /usr/sbin/
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/memtest86
At this point mdadm setup still just sits forever. If I hit Ctrl-C:
^Cdpkg: error processing package mdadm (--configure):
subprocess installed post-installation script was interrupted
Processing triggers for initramfs-tools (0.103ubuntu3) ...
update-initramfs: Generating /boot/initrd.
Errors were encountered while processing:
mdadm
root@kami:~#
root@kami:~# fdisk -l /dev/sda
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000918ae
Device Boot Start End Blocks Id System
/dev/sda1 * 63 39070079 19535008+ fd Linux raid autodetect
/dev/sda2 39070080 1953520064 957224992+ 5 Extended
/dev/sda5 39070143 46877669 3903763+ fd Linux raid autodetect
/dev/sda6 46877733 1953520064 953321166 fd Linux raid autodetect
root@kami:~# fdisk -l /dev/sdb
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000455d6
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 39070079 19535008+ fd Linux raid autodetect
/dev/sdb2 39070080 1953520064 957224992+ 5 Extended
/dev/sdb5 39070143 46877669 3903763+ fd Linux raid autodetect
/dev/sdb6 46877733 1953520064 953321166 fd Linux raid autodetect
root@kami:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md2 : active raid1 sdb6[1] sda6[0]
953321088 blocks [2/2] [UU]
md0 : active raid1 sdb1[1] sda1[0]
19534912 blocks [2/2] [UU]
md1 : active raid1 sdb5[1] sda5[0]
3903680 blocks [2/2] [UU]
unused devices: <none>
root@kami:~# vgscan
Reading all physical volumes. This may take a while...
Found volume group "KamiVG01" using metadata type lvm2
root@kami:~# lvscan
ACTIVE '/dev/KamiVG01/
ACTIVE '/dev/KamiVG01/
(additional data and logs will be added soon)
Changed in mdadm (Ubuntu): | |
assignee: | nobody → Dimitri John Ledkov (xnox) |
Changed in mdadm (Ubuntu): | |
milestone: | none → ubuntu-14.04.1 |
Changed in mdadm (Ubuntu Utopic): | |
importance: | Undecided → High |
Changed in mdadm (Ubuntu Trusty): | |
importance: | Undecided → High |
Changed in mdadm (Ubuntu Trusty): | |
assignee: | nobody → Dimitri John Ledkov (xnox) |
status: | New → Confirmed |
Changed in grub (Ubuntu Trusty): | |
status: | New → Confirmed |
Changed in grub (Ubuntu Utopic): | |
status: | New → Confirmed |
Changed in grub (Ubuntu Trusty): | |
importance: | Undecided → Wishlist |
Changed in grub (Ubuntu Utopic): | |
importance: | Undecided → Wishlist |
summary: |
- Setting up mdadm (3.2.5-5ubuntu3) freezes at Found kernel: when - upgrading from Saucy to Trusty + Setting up mdadm (3.2.5-5ubuntu3) freezes after calling grub1's update- + grub from postinst |
Changed in mdadm (Ubuntu Utopic): | |
status: | Confirmed → Fix Committed |
description: | updated |
description: | updated |
Changed in grub (Ubuntu Trusty): | |
status: | Confirmed → Won't Fix |
no longer affects: | grub (Ubuntu Utopic) |
description: | updated |
Changed in mdadm (Ubuntu Trusty): | |
status: | Confirmed → Triaged |
Changed in mdadm (Ubuntu Trusty): | |
status: | Triaged → In Progress |
tags: |
added: verification-done removed: verification-needed |
Since this is my home app server and testbed machine, I started uncomplicating my setup to see if that would help...
root@kami:~# lvremove /dev/KamiVG01/ chippoke nas-office
Do you really want to remove and DISCARD active logical volume chippoke? [y/n]: y
Logical volume "chippoke" successfully removed
root@kami:~# lvremove /dev/KamiVG01/
Do you really want to remove and DISCARD active logical volume nas-office? [y/n]: y
Logical volume "nas-office" successfully removed
root@kami:~# lvscan
root@kami:~# vgscan
Reading all physical volumes. This may take a while...
Found volume group "KamiVG01" using metadata type lvm2
root@kami:~# vgremove KamiVG01
Volume group "KamiVG01" successfully removed
root@kami:~# vgscan
Reading all physical volumes. This may take a while...
No volume groups found
dpkg --configure -a still froze at Found kernel: /boot/memtest86 +.bin.
Also attached current menu.lst.
Interestingly, running update-grub manually seems to work fine (but walks over the kernels twice?):
root@kami: /boot/grub# /usr/sbin/ update- grub 3.13.0- 12-generic 3.11.0- 17-generic 3.11.0- 15-generic +.bin 3.13.0- 12-generic 3.11.0- 17-generic 3.11.0- 15-generic +.bin
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/memtest86
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/memtest86
Updating /boot/grub/menu.lst ... done
root@kami: /boot/grub#