linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robin Hill <robin@robinhill.me.uk>
To: Stefan Lamby <webmaster@peter-speer.de>
Cc: "linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>
Subject: Re: Raid 10 Issue
Date: Fri, 6 Mar 2015 08:54:07 +0000	[thread overview]
Message-ID: <20150306085407.GA32079@cthulhu.home.robinhill.me.uk> (raw)
In-Reply-To: <1888475554.226351.1425578160090.JavaMail.open-xchange@app09.ox.hosteurope.de>

[-- Attachment #1: Type: text/plain, Size: 1860 bytes --]

On Thu Mar 05, 2015 at 06:56:00PM +0100, Stefan Lamby wrote:

> Hello List.
> 
> I was setting up a new machine using ubuntu 14.04.02 lts using its installer,
> configuring a raid 10 with 2 disks and lvm on top of it. I was using 2 disks and
> now I like to add 2 more disks to the array so i want to end up with 4 disks, no
> spare.
> 
> Searching the internet I found that I am not able to --grow the array with the
> mdadm version this ubuntu is using (v3.2.5).
> Is that right?
> 
> So I decided to build a new array that way and try to move my data afterwards,
> which failed:
> (Is it OK to do it that way or do you recommend another?)
> 
> root@kvm15:~# mdadm --verbose --create --level=10 --raid-devices=4 /dev/md10
> missing missing /dev/sdc1 /dev/sdd1
> mdadm: layout defaults to n2
> mdadm: layout defaults to n2
> mdadm: chunk size defaults to 512K
> mdadm: /dev/sdc1 appears to be part of a raid array:
>     level=raid10 devices=4 ctime=Fri Feb 27 15:49:14 2015
> mdadm: /dev/sdd1 appears to be part of a raid array:
>     level=raid10 devices=4 ctime=Fri Feb 27 15:49:14 2015
> mdadm: size set to 1904165376K
> Continue creating array? y
> mdadm: Defaulting to version 1.2 metadata
> mdadm: RUN_ARRAY failed: Input/output error
>               <<<<<<<<<<<<<<<<<<<<<<<<<<<
> root@kvm15:~# 
>
IIRC, in a RAID10 setup, the redundant pair is held on adjacent drives.
You've specified two adjacent drives as missing, so the array cannot be
run. Try doing:
    mdadm --verbose --create --level=10 --raid-devices=4 /dev/md10 \
        missing /dev/sdc1 missing /dev/sdd1

HTH,
    Robin
-- 
     ___        
    ( ' }     |       Robin Hill        <robin@robinhill.me.uk> |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

  parent reply	other threads:[~2015-03-06  8:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-05 17:56 Raid 10 Issue Stefan Lamby
2015-03-05 20:07 ` Phil Turmel
2015-03-06 10:09   ` Raid 10 Issue - Swapping Data from Array to Array Stefan Lamby
2015-03-06 12:57     ` Phil Turmel
2015-03-09  8:51       ` Raid 10 Issue - Swapping Data from Array to Array [SOLVED] Stefan Lamby
2015-03-06 19:06     ` Raid 10 Issue - Booting in case raid failed Stefan Lamby
2015-03-06 20:12       ` Phil Turmel
2015-03-08 14:59   ` Raid 10 Issue Wilson, Jonathan
2015-03-06  8:54 ` Robin Hill [this message]
2015-03-06  9:32   ` Raid 10 Issue [SOLVED] Stefan Lamby

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=20150306085407.GA32079@cthulhu.home.robinhill.me.uk \
    --to=robin@robinhill.me.uk \
    --cc=linux-raid@vger.kernel.org \
    --cc=webmaster@peter-speer.de \
    /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).