mdadm hangs when update-initramfs was run inside apt-get upgrade.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mdadm (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I've run a dist-upgrade on a system with mdadm installed. This system does not have any md used. It hangs like this:
Setting up iproute2 (4.3.0-
Setting up resolvconf (1.78ubuntu5) ...
Setting up lshw (02.17-
Setting up golang-1.6-src (1.6.2-
Setting up golang-1.6-go (1.6.2-
Setting up iptstate (2.2.5-1ubuntu0.1) ...
Setting up mdadm (3.3-2ubuntu7.5) ...
Installing new version of config file /etc/init.d/mdadm ...
update-initramfs: deferring update (trigger activated)
Generating grub configuration file ...
Found linux image: /boot/vmlinux-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinux-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinux-
Found initrd image: /boot/initrd.
done
update-rc.d: warning: start and stop actions are no longer supported; falling ba
ck to defaults
Setting up debootstrap (1.0.78+
Setting up python3-distupgrade (1:16.04.23) ...
Setting up python3-
Setting up ubuntu-
Setting up update-manager-core (1:16.04.10) ...
Processing triggers for resolvconf (1.78ubuntu5) ...
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for initramfs-tools (0.122ubuntu8.9) ...
update-initramfs: Generating /boot/initrd.
W: mdadm: /etc/mdadm/
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: mdadm 3.3-2ubuntu7.5
ProcVersionSign
Uname: Linux 4.4.0-97-generic ppc64le
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: ppc64el
Date: Fri Nov 10 20:08:36 2017
Lsusb:
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
ProcEnviron:
TERM=screen
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: root=/dev/
ProcLoadAvg: 1.02 0.63 0.27 1/2906 154130
ProcMDstat:
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
unused devices: <none>
ProcSwaps:
Filename Type Size Used Priority
/swap.img file 8388544 0 -1
ProcVersion: Linux version 4.4.0-97-generic (buildd@
SourcePackage: mdadm
UpgradeStatus: No upgrade log present (probably fresh install)
cpu_cores: Number of cores present = 20
cpu_coreson: Number of cores online = 20
cpu_smt: SMT is off
etc.blkid.tab: Error: [Errno 2] No such file or directory: '/etc/blkid.tab'
I ended up kill -9'ing the process. and eventually it went on (not even recording an error).
Then the subsequent 'apt-get autoremove' hung again.
Reading package lists... headers- 4.4.0-96 linux-headers- 4.4.0-96- generic image-4. 4.0-96- generic linux-image- extra-4. 4.0-96- generic
After this operation, 339 MB disk space will be freed. 4.4.0-96- generic (4.4.0-96.119) ... 4.4.0-96 (4.4.0-96.119) ... extra-4. 4.0-96- generic (4.4.0-96.119) ... postinst. d/apt-auto- removal 4.4.0-96-generic /boot/vmlinux- 4.4.0-96- generic postinst. d/initramfs- tools 4.4.0-96-generic /boot/vmlinux- 4.4.0-96- generic img-4.4. 0-96-generic mdadm.conf defines no arrays.
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
linux-
linux-
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
(Reading database ... 170214 files and directories currently installed.)
Removing linux-headers-
Removing linux-headers-
Removing linux-image-
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
W: mdadm: /etc/mdadm/