On 07/08/2007 07:49 AM, Brandon Carl wrote:
> Device: /dev/hda
> Size: 232.8 Gb
> F:
> Type: ST3250623A
> Mount:
> Mount By:
> Start: 0
> End: 30400
> Used By: RAID sli_ahahafdeeibj
> Label:
> Device ID: ata-ST3250623A_4ND4WY67
> Device Path: pci-0000:00:0f.0-ide-0:0
>
> Device: /dev/hdb
> Size: 232.8 Gb
> F:
> Type: WDC-WD2500jB-00REA0
> Mount:
> Mount By:
> Start: 0
> End: 30400
> Used By: RAID sli_ahahafdeeibj
> Label:
> Device ID: ata-WDC_WD2500jB-00REA0_WD-WMANK5725185
> Device Path: pci-0000:00:0f.0-ide-0:1
>
>
> The /dev/hda is the hard drive that openSUSE is currently installed on.
> The /dev/hdb is the new hard drive I would like to use as a mirror.
> I would like to have the entire system mirrored, but I only require
> the /home to be mirrored, because it contains all of my important data.
I am not too familiar with the DM RAID, which I think is the fake raid
driver for your motherboard (or raid card IIRC from your first post). 
Assuming that is correct, I wouldn't use it.  Software raid now uses the
mdadm program instead of raidtools.  You could do this, which I am sure
would work but will take time.  You will need two drives with matching
partition sizes for each raid 1 partition.  At the point you are at, I
don't think it really matters.  If you like the partitioning scheme you
have on /dev/hda, match it on /dev/hdb.  each partition will need to be
marked as Linux Raid.  Then, you could create a raid 1 for each
partition on /dev/hdb with mdadm with only one disk initially, then
format the new raid 1 partitions, then copy from /dev/hda.  After
copying, you will need to change the partition type of each raided
partition on /dev/hda to Linux raid.  Then use mdadm to add those
partition to your raid 1 partitions from /dev/hdb.  This will sync each
one in turn.  You will then need to edit /etc/fstab to correct your
partitions, i.e /dev/hda2 / to /dev/md0 /, etc.  You should also edit
/boot/grub/menu.lst and correct as necessary (root=/dev/md0, etc), then
I would double check everything and reboot.  You may or may not need to
reinstall Grub, though I probably would via the grub command prompt to
triple check it can find everything it needs BEFORE I am booting and it
tells me it cannot find.....  I have done the above, and it will work. 
It is a bit of work, and depending on data size will take a while. 
ALSO, one other thing I just thought about, you would need to add raid1
module to your initrd modules and run mkinitrd to create the raid
bootable image.  Check out
http://lists.opensuse.org/opensuse-amd64/2006-09/msg00034.html for
additional info.

-- 
Joe Morris
Registered Linux user 231871 running openSUSE 10.2 x86_64





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to