Private bug reported:

Steps to reproduce:

1. Create IMSM RAID container:
mdadm --create /dev/md/imsm0 --metadata=imsm --raid-devices=3 /dev/sde /dev/sdc 
/dev/sdd --run
2. Create IMSM RAID volume:
mdadm --create /dev/md/r0d3s128h1_A --level=0 --chunk 128 --raid-devices=3 
/dev/sde /dev/sdc /dev/sdd --run --assume-clean
3. Add disk to container:
mdadm --add /dev/md127 /dev/sdb
4. Invoke RAID grow:
export MDADM_EXPERIMENTAL=1;mdadm --grow /dev/md127 --raid-devices=4
5. By cat /proc/mdstat we will see status of the reshape. 
Also systemd unit file has been created: 

cat /etc/systemd/system/[email protected] 
#  This file is part of mdadm.
#
#  mdadm is free software; you can redistribute it and/or modify it
#  under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.

[Unit]
Description=Manage MD Reshape on /dev/%I
DefaultDependencies=no

[Service]
ExecStart=/sbin/mdadm --grow --continue /dev/%I
#StandardInput=null
#StandardOutput=null
#StandardError=null
KillMode=none

And status of this service is:

● [email protected] - Manage MD Reshape on /dev/md127
   Loaded: loaded (/etc/systemd/system/[email protected]; 
static; vendor preset: enabled)
   Active: active (running) since Fri 2018-03-23 09:20:54 CET; 23s ago
 Main PID: 3364 (mdadm)
    Tasks: 1 (limit: 37710)
   CGroup: 
/system.slice/system-mdadm\x2dgrow\x2dcontinue.slice/[email protected]
           └─3364 /sbin/mdadm --grow --continue /dev/md127

6. Reboot the platform.

7. During OS booting I saw print:
[   16.552076] md: reshape of RAID array md126

8. After successfully boot we can see hanging reshape process (by cat
/proc/mdstat).

And status of the service:
systemctl status [email protected][email protected] - Manage MD Reshape on /dev/md127
   Loaded: loaded (/etc/systemd/system/[email protected]; 
static; vendor preset: enabled)
   Active: inactive (dead)

Possible workarounds:
a) systemctl restart [email protected]
or
b) mdadm --grow --continue /dev/md127

So the clue of the problem is in OS booting process and with correctly
starting mdadm-grow-continue service.

** Affects: ubuntu
     Importance: Undecided
         Status: New

** Information type changed from Public to Private

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

Title:
  [INTEL UBUNTU 18.04] RAID reshape hangs after OS reboot

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to