[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RAID 1 (Again)



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

| Hi people,
|
| I'm still trying to set up a system with a mirrored root partition
| (including /boot). My set up is like that:
|
| hda, a  20GB disk
| hda1 -> 19GB, to use as raid-disk 0
| hda2 -> a temp and misc partition
| hda4 -> swap
|
| hdd, a 40GB disk
| hdd1 -> 19GB, as raid-disk 1
| hdd2 -> 21GB to mount /var and /home (maybe I use lvm here, but that's
| not the problem)
|
| The problem I have is when I issue a mkraid. The mirror works fine,
| but I lost the partition table of  hdd and it becames identical hda's
| table
|
| I've heard something about to start the first partition at cylinder 1,
| not 0, but when a try this, openboot can't boot the system anymore. It
| can't find the image.
|
| My raidtab is like that:
| raiddev /dev/md0
|         raid-level      1
|         nr-raid-disks   2
|         nr-spare-disks  0
|         persistent-superblock 1
|         device          /dev/hda1
|         raid-disk       0
|         device          /dev/hdd1
|         raid-disk       1
|
| Could anyone help?
|
| thanks in advance
| --
| Eduardo Gonçvalves

I can confirm that this is possible I have a system similar to yours
working. Although /boot is on its own partition, but that makes no
difference. And I used the technic you describe (after figuring out that
if you use cyl-0 block-0 when you add that partition to the mirror, it
will overwrite the partition table. What I did was installing a minimal
system on /dev/hda2, making system bootable during the installation.
Debian put the right stuff into the beginning of the disk (little part
of silo I think). Then silo can read the image by itself something like
a line in silo config. Then all the other partition were created make
sure kernel has the right stuff for raid1 etc. then copy the whole
system to the raided partition ... carefully edit silo.conf and boot
from boot prompt boot disk0:1 or something similar if need be.

Here is my silo.conf relevant part (boot image actually work).

image=1/vmlinuz-2.6.8-2.gz
~        label=kernel-2.6.8-2
~        root=/dev/md4
~        append="md=4,/dev/hda4,/dev/hdc4 "
image=1/vmlinuz-2.6.8-3
~        label=kernel-2.6.8-3
~        root=/dev/md4
#       append="md=4,/dev/hda4,/dev/hdc4 "
~        alias=current


Note, that I found that append is not even needed.

I have verified that I can boot from booth disk when the other is
disconnected (you need to resync so do not do anything serious yet) from
ok> boot disk2 for the second drive ...

Hope this helps.

Gabor

- --
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
| Gabor Szilagyi (Mr.)                    Gabor.Szilagyi@nyo.unep.org |
| Computer System Adm.                        http://www.nyo.unep.org |
| UNEP/New York Office      Tel: +1-212-963-7781/Fax: +1-212-963-7341 |
|       I only open attachments I requested !!! No exceptions !!!     |
|            Put your message in the email body !!!                   |
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
"He who sacrifices freedom for security is neither secure nor free."

~                                                  Benjamin Franklin

"Those who desire to give up Freedom in order to gain Security,
~                will not have, nor do they deserve, either one."


Thomas Jefferson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB3FSyOUHwyD3jZqARAg6zAJ4ovea0lXgedhV23x2bDO+HFHDhhwCfcBAS
We9vyN6QrTqXn3PGoXiLoao=
=lvnE
-----END PGP SIGNATURE-----



Reply to: