public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Richard Fish" <bigfish@asmallpond.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] mdadm fails to add drive to arry
Date: Fri, 1 Sep 2006 23:10:59 -0700	[thread overview]
Message-ID: <7573e9640609012310v75980d37x7d4f68aa21b28b10@mail.gmail.com> (raw)
In-Reply-To: <20060902041311.66336.qmail@web31815.mail.mud.yahoo.com>

On 9/1/06, Richard Broersma Jr <rabroersma@yahoo.com> wrote:
> I recently had a drive failure in with a Raid 1 setup.  However, for testing purposes I tried to
> re-add the drive to the array after I removed it.  However I ran into the following error message.
>
> ~ # mdadm /dev/md4 --add /dev/hdj1
> mdadm: add new device failed for /dev/hdj1 as 2: Invalid argument
>
> Where is the invalid argument?  Or is this error message you get when it is time to buy a new hard

I think you forgot to specify the mode.  From man mdadm:

"""
SYNOPSIS
       mdadm [mode] <raiddevice> [options] <component-devices>
"""

and

"""
      If  a  device  is  given  before any options, or if the first option is
       --add, --fail, or --remove, then the MANAGE mode is  assume.   Anything
       other than these will CAUSE THE MISC MODE TO BE ASSUMED.
"""
(emphasis added)

So I think you need "mdadm manage /dev/md4 --add /dev/hdj1".  Or
"mdadm --add /dev/md4 /dev/hdj1".

This isn't based on an actual test, just reading the documentation, so I HTH.

-Richard
-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2006-09-02  6:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-02  4:13 [gentoo-user] mdadm fails to add drive to arry Richard Broersma Jr
2006-09-02  6:10 ` Richard Fish [this message]
2006-09-02  6:14   ` Richard Fish
2006-09-02  6:30     ` Richard Broersma Jr
2006-09-02  9:26       ` Richard Fish
2006-09-02 17:19         ` Richard Broersma Jr
2006-09-02 20:50           ` Richard Fish
2006-09-02  6:23   ` Richard Broersma Jr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7573e9640609012310v75980d37x7d4f68aa21b28b10@mail.gmail.com \
    --to=bigfish@asmallpond.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox