Re: Configuring RAID1 after install



Ewan Mac Mahon a écrit :
On Sat, Mar 18, 2006 at 04:44:35PM -0600, John Lyon wrote:
On 3/18/06 4:00 PM, "Ewan Mac Mahon" <ewan@xxxxxxxxxxxxxx> either wrote,
forwarded or quoted:

OK; presumably you've got one disk at the moment, and you're planning to
add a second to create the mirror?
<snip>
This is exactly my situation. The boot disk has two partitions, '/' and a
swap.

Shouldn't I create the partitions on the second disk I'm adding to be
exactly like the partitions on the current boot disk?

In practice probably, but not necessarily. It is, of course, important
that the partitions on each disk that go into the RAID are the same, but
you don't actually have to use the existing partitions. Let's say you
wanted to divide things up so you had swap, / and /home on separate
partitions - you could create the partitions on the new disk the way you
want them, copy the data over, restart, remove the old partitions from
from the original disk, and then create a copy of the new layout on it
to put the RAID on.

That's entirely optional though, if you're happy with your current
layout, keep it.


In any option, use the power of sfdisk to dump your disk/partitions table layout and easily restore/apply it to another hdd... this reailly is the easyest way to have several hdds with the same layout.
+ if your disks happen not to have the same size... who cares ! The dump is in text format and can be adapted :)

Oh, and note that it's probably not worth RAIDing the swap, and if you
did want to do that it may require some additional fiddling around.


AFAIU, you need to RAID1 your swap if you really want disk failover isn't it ?! I have SWAP on /dev/md1 configured from/with the debian installer and runs nicely up to now...

Final note for John (and others ;)... another tricky part is bootloader setup (google and read carefully), but either lilo and grub will nicely boot from RAID1 /boot partition. If you can't find relevant infos, just raise your hand ! ;)


Bests



--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • LVM on SW RAID for sarge - success
    ... I've just had success migrating Debian Sarge to root on LVM on RAID. ... First make sure the SCSI BIOS boots from the first disk. ... I made reiserfs on all the filesystem partitions and completed the ... The remaining two disks were partitioned and used to create RAID arrays ...
    (Debian-User)
  • Re: Replace SCSI Drive
    ... from there you can manipulate other hard drives attached to the machine. ... It should 'just work' but watch out that you keep disk devices ... vi-a) Write a BSD partition table into the slice, then set up your required FreeBSD partitions: ... items under the 'Custom Install' to achieve the desired result. ...
    (freebsd-questions)
  • Re: Best drive configuration?
    ... > I'm moving drives between my PC, my server and my spares. ... To be used as a "hot pluggable" disk? ... Presume you know that having swap on different hds only "gains" you ... Partitions will depend on how you use the PC -- less critical here ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Best drive configuration?
    ... > I'm moving drives between my PC, my server and my spares. ... To be used as a "hot pluggable" disk? ... Presume you know that having swap on different hds only "gains" you ... Partitions will depend on how you use the PC -- less critical here ...
    (comp.os.linux.setup)
  • Re: RAMDisk and HardDisk strikes back!
    ... One disk with only one partition as large as FBA setup; ... Two disk with one or more partitions for each. ... @ 20:32:55.252 #W059 Selecting best compatible driver failed. ... @ 20:53:51.166 #T211 Install Device: Changing registry settings as specified ...
    (microsoft.public.windowsxp.embedded)