linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Jeff Breidenbach <jeff@jab.org>
Cc: linux-raid@vger.kernel.org
Subject: Re: transferring RAID-1 drives via sneakernet
Date: Wed, 13 Feb 2008 12:25:14 +0300	[thread overview]
Message-ID: <47B2B77A.5070702@msgid.tls.msk.ru> (raw)
In-Reply-To: <e03b90ae0802121914q595a492ft844bde202bd09a0d@mail.gmail.com>

Jeff Breidenbach wrote:
>> It's not a RAID issue, but make sure you don't have any duplicate volume
>> names.  According to Murphy's Law, if there are two / volumes, the wrong
>> one will be chosen upon your next reboot.
> 
> Thanks for the tip. Since I'm not using volumes or LVM at all, I should be
> safe from this particular problem.

If you don't use names, you use numbers - like md0, md10 etc.
The numbers, as they now ARE names, should be different too.

There's more to this topic, much more.

There are different ways to start (assemble) the arrays.  I know at
least 4 - kernel autodetection, mdadm with mdadm.conf listed some
devices, mdadm with "empty" mdadm.conf and with using of 'homehost'
parameter (assemble all "our" arrays), and mdrun utility.  Also,
some arrays may be assembled during initrd/initramfs stage, and some
after...

The best is either mdadm with something in mdadm.conf, or mdadm with
homehost.  Note that neither of these ways, your "foreign" array(s)
will be assembled, and you will have to do it manually - wich is much
better than to screw things up trying to mix-n-match pieces of the
two systems.  You'll just have to figure the device numbers of your
"foreign" disks and issue an appropriate command, like this:

  mdadm --assemble /dev/md10 /dev/sdc1 /dev/sdd1 ...

using not yet taken mdN number and the right device nodes for your
disks/partitions.

If you want to keep the disks here, you can add the array info into
mdadm.conf or refresh superblock to have new homehost.

But if you're using kernel autodetection or mdrun... well, I for
one can't help here, -- your arrays will be numbered/renumbered
by a chance...

/mjt

  reply	other threads:[~2008-02-13  9:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-12  0:59 transferring RAID-1 drives via sneakernet Jeff Breidenbach
2008-02-12  9:13 ` David Greaves
2008-02-12 18:50   ` Jeff Breidenbach
2008-02-12 19:00     ` Brendan Conoboy
2008-02-13  3:14       ` Jeff Breidenbach
2008-02-13  9:25         ` Michael Tokarev [this message]
2008-02-13  9:32         ` David Greaves
     [not found]           ` <47B33011.4090900@tmr.com>
2008-02-14  8:57             ` Jeff Breidenbach

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=47B2B77A.5070702@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=jeff@jab.org \
    --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).