Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 531604 - sys-fs/mdadm - /etc/init.d/mdraid : Add conf.d option for --no-degraded switch
Summary: sys-fs/mdadm - /etc/init.d/mdraid : Add conf.d option for --no-degraded switch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-04 00:56 UTC by Adrian
Modified: 2015-04-04 21:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian 2014-12-04 00:56:28 UTC
Currently the mdraid init script will always assemble and run an array, even if it's in degraded state. In case of bad cabling or some other reason causing a perfectly fine disk to not show up this results in a degraded array which might require to go through a rebuild once it's added back (even though mdadm --re-add MIGHT avoid it).

However, mdadm has a --no-degraded switch to avoid this. It would be nice if there was either a MDADM_OPTS variable settable in /etc/conf.d/mdraid or a MDADM_NO_DEGRADED variable that could be set to use this switch..
Comment 1 SpanKY gentoo-dev 2015-04-04 21:58:37 UTC
should be all set now in the tree; thanks for the report!

Commit message: Add a conf.d setting to pass options to the assemble step
http://sources.gentoo.org/sys-fs/mdadm/files/mdraid.confd?r1=1.1&r2=1.2
http://sources.gentoo.org/sys-fs/mdadm/files/mdraid.rc?r1=1.6&r2=1.7