hozumi wrote:
> 
> Hello,
> 
> I am writing e-mail from Japan.
> I use 2.0.36 kernel and get Raidtools from /pub/linux.(version is 0.41)
> I succeed 'make all' and 'make install' and got 'mdadd','mdrun' and so forth.
> The I like to start linear personality as follows.
> make a file /etc/mdtab as  /dev/md0 linear /dev/sda4  /dev/sdb4
> And then like to run 'mdadd -a'
> I got a message from mdadd saying '/dev/md0 is not a flie or directory'.
> 
> How can I initialize /dev/md0?
> My understanding is that 2.0.36 includes RAID0 by default,
> no need to do special thing to get /dev/md0?
> 
First, raid0 != linear.

To make a running md0 device do:
1.) recompile your kernel if 'dmesg|grep personality' does not display
your raid level.
2.) create /dev/md0 with /dev/MAKEDEV script or look into
/usr/src/linux/Documentation/devices.txt to find out minor and major
numbers.
3.) do a 'mdcreate linear /dev/md0 <list-of-devices>' (or so, look at
manpage).
4.) do a 'mdadd -a'
5.) make a filesystem on it
6.) mount it.

I may have skipped a step. look at the manpages of md... tofind out what
to do exactly.

Marc

Reply via email to