All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mitchell Laks <mlaks@verizon.net>
To: linux-raid@vger.kernel.org
Subject: how to move a raid1 drive to a new machine
Date: Mon, 10 Jan 2005 03:43:01 -0500	[thread overview]
Message-ID: <200501100343.01672.mlaks@verizon.net> (raw)

Hi gurus,

A simple question. I have studied the documents

Software raid howto
http://www.tldp.org/HOWTO/Boot+Root+Raid+LILO.html
and scoured google.

Given a raid1 on a machine 

/dev/md0 consists of /dev/hdc and /dev/hde.

I want to grab one of those disks and move it to a new machine and make it 
available there.

What I have thought about:

turn off machine. grab /dev/hde. put in new machine say at position
/dev/hdc (for grins).

now take an identical copy of /etc/raidtab from the original machine.
install it as /etc/raidtab
modprobe raid1
mknod /dev/md0 b 9 0 (if necessary).
raidstart /dev/md0

will this work? 

questions:
1) when do i do mkraid /dev/md0 (ie what does that do... will it zap all the 
stuff in /dev/hdc => ie what was on old /dev/hde??)
2) what is the mysterious failed-disk parameter in /etc/raidtab used for - ie 
will it help here preserve the data while we start up the raid.
3) lets say i want to start the raid without a partner drive, ie just with 
/dev/hdc ( "drive that used to be known as /dev/hde" "my apologies to glyph 
who used to be Prince"), what do i do???

Thanks,
Mitchell

 
 

             reply	other threads:[~2005-01-10  8:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-10  8:43 Mitchell Laks [this message]
2005-01-10  8:55 ` how to move a raid1 drive to a new machine wimpunk

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=200501100343.01672.mlaks@verizon.net \
    --to=mlaks@verizon.net \
    --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 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.