Surge,
It looks like you are working off old documentation. Have a look at Jakob's
HOWTO, either in the raidtools package, at /usr/doc/raidtools, or at
http://ostenfeld.dk/~jakob/Software-RAID.HOWTO/.
I think Glenn has spotted your main problem. You say you haven't made the md
device yet, but you are trying to boot with a root=/dev/md0 line in your
lilo.conf. How do you expect this to work?
When you do get it working, that append="md=0,0,4,0,/dev/hda1,/dev/hdc1
ether=0,0,0,0,eth1" line won't help. You needed that for the old mdtools, but
with raidtools-0.90 (which I take it is what you are using, as you have used the
latest raid patch), you don't need it any more. As long as your raid partitions
are type 0xfd, the kernel should automatically recognize and start the arrays.
However, you will need a separate /boot partition not on a raid device. It's
possible to get round it with raid-1, because each partition in the array holds
a full copy of the filesystem. But with raid-0, everything is striped across the
partitions, so until raid is running, you cannot access anything useful from the
separate partitions. Lilo needs to point at certain files (the kernel image, the
system map etc.) at a specific point on a specific disk. But under raid-0, these
files would be spread across each disk, so lilo can't do this, and therefore
can't start the system. I don't know if you can get round this with grub (I
doubt it), but with lilo + raid-0, you will definitely need a non-raided /boot
partition.
With regard to your partition sizes, you can raid-0 partitions of unequal size,
but performance will deteriorate when the section of the larger partition which
is not sriped on the smaller partition is being accessed. You would generally be
better off using partitions of rougly equal size. And I take it you realize that
you will lose all the data on the partitions when you create the array?
Cheers,
Bruno Prior [EMAIL PROTECTED]
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Kelina
> Sent: 23 September 1999 13:51
> To: [EMAIL PROTECTED]
> Subject: running raid as boot
>
>
> I'm trying to run a raid0 setup as boot device with ide 2 disks on my linux
> 2.2.12 kernel patched with the latest raidpatch and ide patch and
> compiled with raid linear and raid 0 support.
>
> What i get when booting is the following:
>
> Warning: unable to open an initial console
> Kernel Panic: No init found. Try passing init= option to kernel.
>
> It does detect some raid things, but things fly by too fast to see exactly
> what.
>
> My Config files are the following:
> /etc/lilo.conf:
> boot=/dev/hda
> map=/boot/map
> install=/boot/boot.b
> prompt
> timeout=50
> image=/boot/vmlinuz
> label=linux
> root=/dev/md0
> append="md=0,0,4,0,/dev/hda1,/dev/hdc1 ether=0,0,0,0,eth1"
> read-only
>
> /etc/raidtab:
> raiddev /dev/md0
> raid-level 0
> nr-raid-disks 2
> persistent-superblock 1
> chunk-size 4
> device /dev/hda1
> raid-disk 0
> device /dev/hdc1
> raid-disk 1
>
> I changed both /dev/hda1 and /dev/hdc1 partition types to 0xfd with fdisk.
> Hda is abt 3 gig with 2 gig of data on it already, hdc is almost 2 gig and
> completely emtpy. Both hda1 and hdc1 are formatted as ext2.
>
> Does any1 know what i'm doing wrong? Am i doing something incredebly
> stupid? (very possible :-) And most of all Can anyone pleaze help me! :)
>
> Surge
>
>
>