[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: MDADM RAID1 of external USB 3.0 Drives



On Sun, Sep 14, 2014 at 02:30:34PM +0200, Linux-Fan wrote:
> On 09/14/2014 01:42 PM, Linux-Fan wrote:
> > On 09/14/2014 02:06 AM, Dan Ritter wrote:
> 
> [...]
> 
> >> In the meantime, you can:
> >> - add a bitmap file to the RAID, which will speed up rebuilds.
> >> - use the --no-degraded flag, to prevent assembly of a RAID that
> >>   is lacking a disk.
> > 
> > Thank you very much for these hints. I am going to try both.
> 
> Sorry for another mail with a probably too simple question, but I just
> wanted to add "no-degraded" but did not know /where/ to add it. Can it
> be added to mdadm.conf? If yes, where? (Tried to google for it, but my
> search terms did not yield anything interesting).

Inspecting a wheezy system, I see:

/etc/init.d/mdadm-raid
...

        for line in $($MDADM --assemble --scan --auto=yes
--symlink=no 2>&1); do
          IFS=$IFSOLD
...

You'll want to add --no-degraded to the list of flags here.

-dsr-


Reply to: