linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Greaves <david@dgreaves.com>
To: Lieven Van Acker <lieven.vanacker@ugent.be>
Cc: linux-raid@vger.kernel.org
Subject: Re: modifying a running array
Date: Mon, 15 Nov 2004 15:19:06 +0000	[thread overview]
Message-ID: <4198C8EA.1070000@dgreaves.com> (raw)
In-Reply-To: <1100522100.31575.12.camel@xstar>

Lieven Van Acker wrote:

>Hey folks,
>
>I didn't find any direct pointers on this issue, so maybe you experts
>can advice me...
>
>I was setting up a system, had only one disk at setup time but wanted to
>configure raid 1 in advance...
>
>so I used 
>
>mdadm --create /dev/md0 --force --run --level=1 --raid-devices=1
>/dev/sda1
>  
>
On your new disk try this:
mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sdb1 missing

Then make a filesystem on it and copy over the data from /dev/md0
then stop /dev/md0

Once you've done all that try:

mdadm /dev/md1 -a /dev/sda1

I think that'll get you where you want to be.

you may want to hang back a while in case I made a typo ;)

David


PS from the manpage:
Setting a value of 1 is probably a mistake  and so requires that --force 
be specified first.
Guess what ;)

  reply	other threads:[~2004-11-15 15:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-15 12:35 modifying a running array Lieven Van Acker
2004-11-15 15:19 ` David Greaves [this message]
2004-11-15 21:55 ` Neil Brown

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=4198C8EA.1070000@dgreaves.com \
    --to=david@dgreaves.com \
    --cc=lieven.vanacker@ugent.be \
    --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).