[Bug 1731543] [NEW] mdadm hangs when update-initramfs was run inside apt-get upgrade.

Scott Moser ssmoser2+ubuntu at gmail.com
Fri Nov 10 20:13:45 UTC 2017


Public bug reported:

I've run a dist-upgrade on a system with mdadm installed:

It hangs like this:

Setting up python3-update-manager (1:16.04.10) ...
Setting up ubuntu-release-upgrader-core (1:16.04.23) ...
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.img-4.4.0-98-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: mdadm 3.3-2ubuntu7.5
ProcVersionSignature: User Name 4.4.0-97.120-generic 4.4.87
Uname: Linux 4.4.0-97-generic ppc64le
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
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.dev.sda: Error: command ['/sbin/mdadm', '-E', '/dev/sda'] failed with exit code 1: mdadm: cannot open /dev/sda: Permission denied
MDadmExamine.dev.sdb: Error: command ['/sbin/mdadm', '-E', '/dev/sdb'] failed with exit code 1: mdadm: cannot open /dev/sdb: Permission denied
MDadmExamine.dev.sdc: Error: command ['/sbin/mdadm', '-E', '/dev/sdc'] failed with exit code 1: mdadm: cannot open /dev/sdc: Permission denied
MDadmExamine.dev.sdd: Error: command ['/sbin/mdadm', '-E', '/dev/sdd'] failed with exit code 1: mdadm: cannot open /dev/sdd: Permission denied
MDadmExamine.dev.sde: Error: command ['/sbin/mdadm', '-E', '/dev/sde'] failed with exit code 1: mdadm: cannot open /dev/sde: Permission denied
MDadmExamine.dev.sdf: Error: command ['/sbin/mdadm', '-E', '/dev/sdf'] failed with exit code 1: mdadm: cannot open /dev/sdf: Permission denied
MDadmExamine.dev.sdg: Error: command ['/sbin/mdadm', '-E', '/dev/sdg'] failed with exit code 1: mdadm: cannot open /dev/sdg: Permission denied
MDadmExamine.dev.sdh: Error: command ['/sbin/mdadm', '-E', '/dev/sdh'] failed with exit code 1: mdadm: cannot open /dev/sdh: Permission denied
MDadmExamine.dev.sdi: Error: command ['/sbin/mdadm', '-E', '/dev/sdi'] failed with exit code 1: mdadm: cannot open /dev/sdi: Permission denied
MDadmExamine.dev.sdj: Error: command ['/sbin/mdadm', '-E', '/dev/sdj'] failed with exit code 1: mdadm: cannot open /dev/sdj: Permission denied
MDadmExamine.dev.sdk: Error: command ['/sbin/mdadm', '-E', '/dev/sdk'] failed with exit code 1: mdadm: cannot open /dev/sdk: Permission denied
MDadmExamine.dev.sdl: Error: command ['/sbin/mdadm', '-E', '/dev/sdl'] failed with exit code 1: mdadm: cannot open /dev/sdl: Permission denied
MDadmExamine.dev.sdm: Error: command ['/sbin/mdadm', '-E', '/dev/sdm'] failed with exit code 1: mdadm: cannot open /dev/sdm: Permission denied
MDadmExamine.dev.sdn: Error: command ['/sbin/mdadm', '-E', '/dev/sdn'] failed with exit code 1: mdadm: cannot open /dev/sdn: Permission denied
MDadmExamine.dev.sdo: Error: command ['/sbin/mdadm', '-E', '/dev/sdo'] failed with exit code 1: mdadm: cannot open /dev/sdo: Permission denied
MDadmExamine.dev.sdp: Error: command ['/sbin/mdadm', '-E', '/dev/sdp'] failed with exit code 1: mdadm: cannot open /dev/sdp: Permission denied
ProcEnviron:
 TERM=screen
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: root=/dev/mapper/mpath0-part2 ro console=hvc0
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 at bos01-ppc64el-013) (gcc version 5.4.0 20160609 (User Name/IBM 5.4.0-6ubuntu1~16.04.4) ) #120-User Name SMP Tue Sep 19 17:26:02 UTC 2017
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'

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


** Tags: apport-bug ppc64el uec-images xenial

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

Title:
  mdadm hangs when update-initramfs was run inside apt-get upgrade.

Status in mdadm package in Ubuntu:
  New

Bug description:
  I've run a dist-upgrade on a system with mdadm installed:

  It hangs like this:

  Setting up python3-update-manager (1:16.04.10) ...
  Setting up ubuntu-release-upgrader-core (1:16.04.23) ...
  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.img-4.4.0-98-generic
  W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: mdadm 3.3-2ubuntu7.5
  ProcVersionSignature: User Name 4.4.0-97.120-generic 4.4.87
  Uname: Linux 4.4.0-97-generic ppc64le
  NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
  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.dev.sda: Error: command ['/sbin/mdadm', '-E', '/dev/sda'] failed with exit code 1: mdadm: cannot open /dev/sda: Permission denied
  MDadmExamine.dev.sdb: Error: command ['/sbin/mdadm', '-E', '/dev/sdb'] failed with exit code 1: mdadm: cannot open /dev/sdb: Permission denied
  MDadmExamine.dev.sdc: Error: command ['/sbin/mdadm', '-E', '/dev/sdc'] failed with exit code 1: mdadm: cannot open /dev/sdc: Permission denied
  MDadmExamine.dev.sdd: Error: command ['/sbin/mdadm', '-E', '/dev/sdd'] failed with exit code 1: mdadm: cannot open /dev/sdd: Permission denied
  MDadmExamine.dev.sde: Error: command ['/sbin/mdadm', '-E', '/dev/sde'] failed with exit code 1: mdadm: cannot open /dev/sde: Permission denied
  MDadmExamine.dev.sdf: Error: command ['/sbin/mdadm', '-E', '/dev/sdf'] failed with exit code 1: mdadm: cannot open /dev/sdf: Permission denied
  MDadmExamine.dev.sdg: Error: command ['/sbin/mdadm', '-E', '/dev/sdg'] failed with exit code 1: mdadm: cannot open /dev/sdg: Permission denied
  MDadmExamine.dev.sdh: Error: command ['/sbin/mdadm', '-E', '/dev/sdh'] failed with exit code 1: mdadm: cannot open /dev/sdh: Permission denied
  MDadmExamine.dev.sdi: Error: command ['/sbin/mdadm', '-E', '/dev/sdi'] failed with exit code 1: mdadm: cannot open /dev/sdi: Permission denied
  MDadmExamine.dev.sdj: Error: command ['/sbin/mdadm', '-E', '/dev/sdj'] failed with exit code 1: mdadm: cannot open /dev/sdj: Permission denied
  MDadmExamine.dev.sdk: Error: command ['/sbin/mdadm', '-E', '/dev/sdk'] failed with exit code 1: mdadm: cannot open /dev/sdk: Permission denied
  MDadmExamine.dev.sdl: Error: command ['/sbin/mdadm', '-E', '/dev/sdl'] failed with exit code 1: mdadm: cannot open /dev/sdl: Permission denied
  MDadmExamine.dev.sdm: Error: command ['/sbin/mdadm', '-E', '/dev/sdm'] failed with exit code 1: mdadm: cannot open /dev/sdm: Permission denied
  MDadmExamine.dev.sdn: Error: command ['/sbin/mdadm', '-E', '/dev/sdn'] failed with exit code 1: mdadm: cannot open /dev/sdn: Permission denied
  MDadmExamine.dev.sdo: Error: command ['/sbin/mdadm', '-E', '/dev/sdo'] failed with exit code 1: mdadm: cannot open /dev/sdo: Permission denied
  MDadmExamine.dev.sdp: Error: command ['/sbin/mdadm', '-E', '/dev/sdp'] failed with exit code 1: mdadm: cannot open /dev/sdp: Permission denied
  ProcEnviron:
   TERM=screen
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcKernelCmdLine: root=/dev/mapper/mpath0-part2 ro console=hvc0
  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 at bos01-ppc64el-013) (gcc version 5.4.0 20160609 (User Name/IBM 5.4.0-6ubuntu1~16.04.4) ) #120-User Name SMP Tue Sep 19 17:26:02 UTC 2017
  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'

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



More information about the foundations-bugs mailing list