{upstream} missing command to start *single* arrays in "auto-read" mode (like --incremental)

Bug #251646 reported by ceg
2
Affects Status Importance Assigned to Milestone
mdadm
New
Wishlist
Unassigned
mdadm (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

Binary package hint: mdadm

Proposed command: "mdadm --incremental --run /dev/mdX"

Initramfs must be able to start (selected) md devices in degraded mode (only the ones that contain the rootfs and swap/resume partition), if they didn't start after some time of udev hotplugging. Starting all arrays, that are not yet complete at that early stage, degraded is not acceptable.

Initramfs could use the old non-incremental commands,

( i.e. "mdadm --run /dev/mdX" is preferable to "mdadm --assemble --scan" to start only selected array degraded)

but the old commands break the support for "auto-read" mode set up and smooth inclusion of members that appear later on.

Alternatively to a new --incremental option, make the old commands compatible and also start degraded arrays in "auto-read" mode and incrementally extendable by default.

Revision history for this message
ceg (ceg) wrote : Re: option to start selected arrays in "auto-read" mode (like --incremental)

can not change this to wishlist / upstream

Revision history for this message
ceg (ceg) wrote :

Current state of ubuntu systems with md raid: https://wiki.ubuntu.com/ReliableRaid

Revision history for this message
ceg (ceg) wrote :

workaround sequence:

mdadm --remove <incomplete-md-device> <arbitrary-member-device-of-incomplete-array>

mdadm --incremental --run <arbitrary-member-device-of-incomplete-array>

ceg (ceg)
summary: - option to start selected arrays in "auto-read" mode (like --incremental)
+ missing option to start selected arrays in "auto-read" mode (like
+ --incremental)
summary: - missing option to start selected arrays in "auto-read" mode (like
+ missing command to start *single* arrays in "auto-read" mode (like
--incremental)
ceg (ceg)
summary: - missing command to start *single* arrays in "auto-read" mode (like
- --incremental)
+ {upstream} missing command to start *single* arrays in "auto-read" mode
+ (like --incremental)
ceg (ceg)
Changed in mdadm (Ubuntu):
status: New → Invalid
ceg (ceg)
Changed in mdadm (Ubuntu):
status: Invalid → New
Changed in mdadm (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
Changed in mdadm:
importance: Undecided → Wishlist
Revision history for this message
ceg (ceg) wrote :

Are you aware that starting all arrays degraded (what the initramfs scripts currently have to do) is a serious bug? The replicas will diverge, and if the non-rootfs devices become accessible later they need to resync.

Revision history for this message
Dimitri John Ledkov (xnox) wrote : Re: [Bug 251646] Re: {upstream} missing command to start *single* arrays in "auto-read" mode (like --incremental)

On 21/05/12 17:32, ceg wrote:
> Are you aware that starting all arrays degraded (what the initramfs
> scripts currently have to do) is a serious bug? The replicas will
> diverge, and if the non-rootfs devices become accessible later they need
> to resync.
>

Yes, I am aware. That's bug #497186 and it's on my radar to fix for
Quantal as part of
https://blueprints.launchpad.net/ubuntu/+spec/foundations-q-software-raid

ceg (ceg)
description: updated
Revision history for this message
ceg (ceg) wrote :

All right, hopefully some of the stuff I filed is of help to you, thanks!

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Isn't this fixed with new mdadm having these modes:

mdadm --incremental --run

&

mdadm --incremental --scan --run

?????

Revision history for this message
ceg (ceg) wrote :

I don't think so.

My guess is that if initramfs calls

mdadm --incremental --run

it would run all arrays and not just the single array (mdX) that contains the root filesystem.
Degrading not yet fully available non-root arrays is bad, as it may nullify the redundancy and take hours to get the arrays resynced again.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.