* transferring RAID-1 drives via sneakernet
@ 2008-02-12 0:59 Jeff Breidenbach
2008-02-12 9:13 ` David Greaves
0 siblings, 1 reply; 8+ messages in thread
From: Jeff Breidenbach @ 2008-02-12 0:59 UTC (permalink / raw)
To: linux-raid list
I'm planning to take some RAID-1 drives out of an old machine
and plop them into a new machine. Hoping that mdadm assemble
will magically work. There's no reason it shouldn't work. Right?
old [ mdadm v1.9.0 / kernel 2.6.17 / Debian Etch / x86-64 ]
new [ mdad v2.6.2 / kernel 2.6.22 / Ubuntu 7.10 server ]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: transferring RAID-1 drives via sneakernet
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
0 siblings, 1 reply; 8+ messages in thread
From: David Greaves @ 2008-02-12 9:13 UTC (permalink / raw)
To: Jeff Breidenbach; +Cc: linux-raid list
Jeff Breidenbach wrote:
> I'm planning to take some RAID-1 drives out of an old machine
> and plop them into a new machine. Hoping that mdadm assemble
> will magically work. There's no reason it shouldn't work. Right?
>
> old [ mdadm v1.9.0 / kernel 2.6.17 / Debian Etch / x86-64 ]
> new [ mdad v2.6.2 / kernel 2.6.22 / Ubuntu 7.10 server ]
I've done it several times.
Does the new machine have a RAID array already?
David
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: transferring RAID-1 drives via sneakernet
2008-02-12 9:13 ` David Greaves
@ 2008-02-12 18:50 ` Jeff Breidenbach
2008-02-12 19:00 ` Brendan Conoboy
0 siblings, 1 reply; 8+ messages in thread
From: Jeff Breidenbach @ 2008-02-12 18:50 UTC (permalink / raw)
To: David Greaves; +Cc: linux-raid list
> Does the new machine have a RAID array already?
Yes.. the new machine already has on RAID array.
After sneakernet it should have two RAID arrays. Is
there a gotcha?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: transferring RAID-1 drives via sneakernet
2008-02-12 18:50 ` Jeff Breidenbach
@ 2008-02-12 19:00 ` Brendan Conoboy
2008-02-13 3:14 ` Jeff Breidenbach
0 siblings, 1 reply; 8+ messages in thread
From: Brendan Conoboy @ 2008-02-12 19:00 UTC (permalink / raw)
To: Jeff Breidenbach; +Cc: David Greaves, linux-raid list
Jeff Breidenbach wrote:
>> Does the new machine have a RAID array already?
>
> Yes.. the new machine already has on RAID array.
> After sneakernet it should have two RAID arrays. Is
> there a gotcha?
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.
--
Brendan Conoboy / Red Hat, Inc. / blc@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: transferring RAID-1 drives via sneakernet
2008-02-12 19:00 ` Brendan Conoboy
@ 2008-02-13 3:14 ` Jeff Breidenbach
2008-02-13 9:25 ` Michael Tokarev
2008-02-13 9:32 ` David Greaves
0 siblings, 2 replies; 8+ messages in thread
From: Jeff Breidenbach @ 2008-02-13 3:14 UTC (permalink / raw)
To: Brendan Conoboy; +Cc: David Greaves, linux-raid list
> 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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: transferring RAID-1 drives via sneakernet
2008-02-13 3:14 ` Jeff Breidenbach
@ 2008-02-13 9:25 ` Michael Tokarev
2008-02-13 9:32 ` David Greaves
1 sibling, 0 replies; 8+ messages in thread
From: Michael Tokarev @ 2008-02-13 9:25 UTC (permalink / raw)
To: Jeff Breidenbach; +Cc: linux-raid
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: transferring RAID-1 drives via sneakernet
2008-02-13 3:14 ` Jeff Breidenbach
2008-02-13 9:25 ` Michael Tokarev
@ 2008-02-13 9:32 ` David Greaves
[not found] ` <47B33011.4090900@tmr.com>
1 sibling, 1 reply; 8+ messages in thread
From: David Greaves @ 2008-02-13 9:32 UTC (permalink / raw)
To: Jeff Breidenbach; +Cc: Brendan Conoboy, linux-raid list
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.
Volumes is being used as a generic term here.
You would be safest if, for the disks/partitions you are transferring, you made
the partition type 0x83 (linux) instead of 0xfd to prevent the kernel autodetecting.
Otherwise there is a risk that /dev/md0 and /dev/md1 will be transposed.
Having done that you can manually assemble the array and then configure
mdadm.conf to associate the UUID with the correct md device.
David
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: transferring RAID-1 drives via sneakernet
[not found] ` <47B33011.4090900@tmr.com>
@ 2008-02-14 8:57 ` Jeff Breidenbach
0 siblings, 0 replies; 8+ messages in thread
From: Jeff Breidenbach @ 2008-02-14 8:57 UTC (permalink / raw)
To: Bill Davidsen; +Cc: David Greaves, Brendan Conoboy, linux-raid list
I just finished the transfer and it went great. Thanks for all
the advice. I went with the assemble-by-uuid approach in
/etc/mdadm.conf which did very well. Especially since drive
letters danced around quite a bit between reboots. One of the
disks died during transit, and the redundancy part of RAID
earned its keep. The only thing I didn't figure out was SATA
hotplug. The SATA controller (an Areca 1230 in JBOD mode)
happily noticed when a drive was hotplugged into a port. But
Linux didn't seem to notice. I was using cfdisk to probe.
Is there a particular command needed to convince Linux to
look around and see if there are any new SATA devices?
Jeff
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-02-14 8:57 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2008-02-13 9:32 ` David Greaves
[not found] ` <47B33011.4090900@tmr.com>
2008-02-14 8:57 ` Jeff Breidenbach
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).