** Description changed:

+ [ Impact ]
+ 
+ This bug prevents users from successfully reshaping/growing a RAID array
+ Indeed, at the reshaping operation, for external array, mdadm might miss
+ the mdmon daemon up and running event because mdadm only runs and check
+ if it is running without waiting.
+ 
+ This fix introduces a timed_wait operation that allows mdadm to wait for
+ 5 seconds the mdmon running event and minimizes the risk of missing it.
+ 
+ [ Test Plan ]
+ 
+ 
  Steps to reproduce:
  1. Create RAID volume e.g.:
  # mdadm -C /dev/md/imsm0 -e imsm -n 2 /dev/nvme0n1 /dev/nvme1n1 -R
  # mdadm -C /dev/md/MyVolume -l0 -n 2 /dev/nvme[0-1]n1 -R
  2. Add additional drive(s) to an IMSM array using command e.g.:
  # mdadm --add /dev/md/imsm0 /dev/nvme2n1
  3. Execute grow command on array with additional drives:
  # mdadm --grow /dev/md/imsm0 --raid-devices=N
  4. Wait for reshape start on given volume
  # cat /proc/mdstat
  
  Expected result:
  
  Reshape started successfully, no errors reported
  
- 
  Actual result:
  
  Reshape didn't start on given volume
  
  
- It is already fixed in mdadm. Please add those patches to mdadm:
+ [ Where problems could occur ]
+ 
+ The change only affects the Grow/Reshape operation of mdadm
+ and i do not expect problems to occur in other places. 
+ 
+ [ Other Info ]
+ 
+ This fix has been already merged upstreamed:
  
  -
  
https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=b0f4e8e30f38d83f7e3f53d01d72d4cb3b4d42d7
  
  -
  
https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=aa1cc5815d2b14a8b47add18cfaa8264e19c10ce
+ 
+ The fix is in the second commit, the first commit is a dependency of the
+ second commit and it is only about a minor change in a function
+ signature.

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

Title:
  [VROC] [Ub 24.04] mdadm: grow for R0 not start - missing patch

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


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

Reply via email to