All of lore.kernel.org
 help / color / mirror / Atom feed
From: Changsen Xu <xucs007@yahoo.com>
To: Neil Brown <neilb@cse.unsw.edu.au>, linux-raid@vger.kernel.org
Subject: Re: mdadm: which device set as source to mirror?
Date: Sun, 11 Sep 2005 18:07:09 -0500	[thread overview]
Message-ID: <1126480029.5932.6.camel@r40> (raw)
In-Reply-To: <17188.44497.481437.390441@cse.unsw.edu.au>

Thanks for your quick response.

It won't matter if I want to use 2 blank partitions to build RAID1;

But now I wish to use mdadm to backup my /home partition, which
already has tons of files on it;

If mdadm happens to choose the other blank partition as source
to do mirroring, all my data on /home will be lost;

Hardware RAID always allows me to choose which partition/drive
to be used as source.

Regards,




On Mon, 2005-09-12 at 08:21 +1000, Neil Brown wrote:
> On Sunday September 11, xucs007@yahoo.com wrote:
> > Dear Neil Brown,
> > 
> > I'm trying to learn how to use your great mdadm,
> > one thing I'm not quite sure, and couldn't find
> > any clue in your man page, is,
> > 
> > During create or assemble mode, for RAID1, which
> > device mdadm uses as source to make the mirroring?
> > Is there any differences to determine it
> > for situations of same-size devices and different-size
> > devices (>1% differences) ?
> 
> I think it copies from the smallest numbered working drive (i.e. drive
> 0 if that is working, else drive 1, etc).  However it really
> shouldn't matter to you.  If you are doing something that depends on
> having the right answer to this, you are probably doing it the wrong
> way.  
> 
> If you would like to discuss it further, I suggest explaining what you
> want to do, and why you think you need to know this, to
> linux-raid@vger.kernel.org. 
> 
> NeilBrown
> 
-- 
  Changsen Xu
 


       reply	other threads:[~2005-09-11 23:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1126458858.6042.6.camel@r40>
     [not found] ` <17188.44497.481437.390441@cse.unsw.edu.au>
2005-09-11 23:07   ` Changsen Xu [this message]
2005-09-11 23:39     ` mdadm: which device set as source to mirror? Neil Brown
2005-09-11 23:22   ` Changsen Xu

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=1126480029.5932.6.camel@r40 \
    --to=xucs007@yahoo.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@cse.unsw.edu.au \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.