[Bug 1722491] Re: rootfs on Intel Matrix Raid hangs or shuts down not clean

Brian Murray brian at ubuntu.com
Thu Oct 19 22:32:21 UTC 2017


Hello Dimitri, or anyone else affected,

Accepted mdadm into zesty-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/mdadm/3.4-4ubuntu0.1
in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested and change the tag from
verification-needed-zesty to verification-done-zesty. If it does not fix
the bug for you, please add a comment stating that, and change the tag
to verification-failed-zesty. In either case, details of your testing
will help us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: mdadm (Ubuntu Zesty)
       Status: In Progress => Fix Committed

** Tags added: verification-needed verification-needed-zesty

** Changed in: mdadm (Ubuntu Xenial)
       Status: In Progress => Fix Committed

** Tags added: verification-needed-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/1722491

Title:
  rootfs on Intel Matrix Raid hangs or shuts down not clean

Status in mdadm package in Ubuntu:
  Fix Released
Status in mdadm source package in Xenial:
  Fix Committed
Status in mdadm source package in Zesty:
  Fix Committed

Bug description:
  [Impact]

   * In xenial, mdadm-waitclean is an init.d script, and it appears that
  it doesn't not run late enough. In later releases a systemd-shutdown
  script is shipped instead. Which results in wait-clean action executed
  later in the shutdown cycle, having more chances to complete the
  shutdown with clean/synced RAID array state.

   * In xenial, there is no default shutdown initramfs, and therefore
  mdmon processes are killed before the Intel Matrix RAID / DFF external
  metadata RAID arrays are stopped. This leads to a full resync upon
  next assembly. One options is to implement a shutdown initramfs. This
  is now integrated in he package a mdadm-shutdown.service, optional
  command.

   * In xenial, systemd does not support sendsigs.omit.d, and therefore
  this results in mdmon process being killed prematurely. Thus keep
  mdmon processes started in the initramfs running - such that systemd-
  shutdown can unmount dm held nodes. Ideally systemd on xenial should
  honor sendsigs.omit.d pid-files, or mdmon processes should be migrated
  to be udev rules activated - but such a change, imho, is too risky for
  an sru.

  [Bugfix]
  * Backport mdadm.shutdown systemd-shutdown script to xenial
  * Backport mdadm-shutdown.service job

  [Test Case]

   * Switch logging to console, and make it verbose LogLevel=debug LogTarget=console. Perform shutdown and observe that mdadm.shutdown is executed during shutdown.
   * Check that the system boots with a clean raid-array state.

   * Install system with root on Intel Matrix or DDF raid
   * Install dracut-core and activate mdadm-shutdown.service
   * Reboot
   * System should reboot cleanly, with Intel Matrix raid array synced

  [Regression Potential]

   * On systems that have rootfs on the Intel Matrix / DDF raid
  (external metadata mdadm raid, i.e. NOT the generic linux raid)
  initramfs will result in being held up through the lifetime of the
  boot thus using more steady state RAM. This only affects systems that
  use Intel Matrix / DDF controllers, and are typically bare-metal
  servers.

   * additional wait-clean shutdown script is quick but has an impact on
  shutdown.target speed / time to shutdown or reboot.

   *

  [Other Info]

   * Later releases do not use sysv-init script thus this not a direct
  backport of code from later releases

  Roughly corresponds to https://tracker.debian.org/news/878208 & parts
  of
  https://browse.dgit.debian.org/mdadm.git/commit/?id=61c54b388ce54b8129d039aa6d422aaca0dd0e77
  specifically shipment of the mdadm.shutdown script

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



More information about the foundations-bugs mailing list