I got a few hints off the mailing list, but not all the information I
needed, so last night I just decided to try and make it work with a couple
of test partitions. Eventually I did get raid-0 to work, by just trying
various things. The biggest thing I found was that you (apparnetly) need
to run mkraid on level-0 even though the man pages say you do not need to.
These were the steps I did:
1. used cfdisk to create two new partitions.
2. rebooted the computer (this seemed to be necessary for the OS to learn
about the new partitions)
3. mkraid --force /dev/md0
This appears to be necessary even for raid-0, even though "man mkraid"
says otherwise). I also put the "chunk-size" parameter in the /etc/raidtab
even though the examples in "man raidtab" show it's not needed, it seems
to, in fact, be needed. Here is my complete /etc/raidtab:
raiddev /dev/md0
raid-level 0
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
device /dev/hdc7
raid-disk 0
device /dev/hdc8
raid-disk 1
4. raidstart /dev/md0
This gives an error message that "dev/md0" already exists. Apparently
this is ok that it already exists.
5. mke2fs /dev/md0
6. mount /dev/md0 /mnt/raid
If anyone sees somthing wrong or not needed with the above, I would
appreciate hearing about it.
This morning an email posted a URL with some very good info:
http://www.ostenfeld.dk/~jakob/Software-RAID.HOWTO
That URL cleared up a lot of stuff for me. So now I am trying to figure
out how to move my files into a RAID partition. See, I have about 10 gigs
of data that I want to put into a raid-0 and the disk that has the 10 gigs
on it needs to be part of that raid-0.
Best Regards,
Robert
On Thu, 30 Sep 1999, Paul VanDyke wrote:
> I got my stuff to work... I had to change some things in my /etc/raidtab
> file...
>
> What is your situation?? Give details on your /etc/raidtab file and disk
> layouts..
>
> Paul
>