linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Mathias Burén" <mathias.buren@gmail.com>
To: Jon Forrest <jlforrest@berkeley.edu>
Cc: linux-raid@vger.kernel.org
Subject: Re: mdadm: ADD_NEW_DISK failed: Invalid argument
Date: Fri, 4 Feb 2011 00:45:20 +0000	[thread overview]
Message-ID: <AANLkTi=aoyO6O9FgWNO0dosQNj2+g_tH7H=WMoAziE8f@mail.gmail.com> (raw)
In-Reply-To: <iifhb6$inv$1@dough.gmane.org>

On 4 February 2011 00:31, Jon Forrest <jlforrest@berkeley.edu> wrote:
> (I see that other people have had this problem
> but not in the same situation as me. Mine
> is probably as simple as you can get).
>
> I'm learning about how to manage software raid
> by using loopback devices on a RHEL6 system
> (2.6.32-71.14.1.el6.i686).
>
> I create two loopback devices thusly:
>
> # dd if=/dev/zero of=file0 bs=1k count=100
> 100+0 records in
> 100+0 records out
> 102400 bytes (102 kB) copied, 0.000689998 s, 148 MB/s
> # cp file0 file1
> # losetup /dev/loop0 file0
> # losetup /dev/loop1 file1
>
> I can create a RAID1 volume with no problems:
>
> # mdadm --create /dev/md0 --raid-device=2 --level=1 /dev/loop0 /dev/loop1
> mdadm: Defaulting to version 1.2 metadata
> mdadm: array /dev/md0 started.
>
> However, doing the same thing but creating a RAID0 volume
> fails thusly:
>
> # dd if=/dev/zero of=file2 bs=1k count=100
> 100+0 records in
> 100+0 records out
> 102400 bytes (102 kB) copied, 0.000699377 s, 146 MB/s
> # cp file2 file3
> # losetup /dev/loop2 file2
> # losetup /dev/loop3 file3
> # mdadm --create /dev/md1 --raid-device=2 --level=0 /dev/loop2 /dev/loop3
> mdadm: Defaulting to version 1.2 metadata
> mdadm: ADD_NEW_DISK for /dev/loop2 failed: Invalid argument
>
> I don't understand what went wrong? Any ideas?
>
> Cordially,
> --
> Jon Forrest
> Research Computing Support
> College of Chemistry
> 173 Tan Hall
> University of California Berkeley
> Berkeley, CA
> 94720-1460
> 510-643-1032
> jlforrest@berkeley.edu
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

I just tried this on Ubuntu 10.10 and I got this:

sudo mdadm --create /dev/md0 --raid-device=2 --level=1 /dev/loop0 /dev/loop1
mdadm: /dev/loop0 is too small: 100K
mdadm: /dev/loop1 is too small: 100K
mdadm: create aborted


mdadm - v2.6.7.1 - 15th October 2008
2.6.35-26-generic

// Mathias
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2011-02-04  0:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-04  0:31 mdadm: ADD_NEW_DISK failed: Invalid argument Jon Forrest
2011-02-04  0:45 ` Mathias Burén [this message]
2011-02-04  2:10 ` NeilBrown
2011-02-04 17:02   ` Jon Forrest

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='AANLkTi=aoyO6O9FgWNO0dosQNj2+g_tH7H=WMoAziE8f@mail.gmail.com' \
    --to=mathias.buren@gmail.com \
    --cc=jlforrest@berkeley.edu \
    --cc=linux-raid@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).