On Mon, 19 Apr 1999, Abed M. Hammoud wrote:

        Hi,

> I am trying to get raid level one working on my machine. I have
> installed
> 
> raidtools-0.50beta10-2
> 
> and I have enabled the raid as a module in my kernel.
> 
> The output of the df command is:
> 
> /dev/hda1              54410   25292    26309     49%   /
> /dev/sda5            17072834      13  16183684      0%   /local
> /dev/sdb5            17072834      13  16183684      0%   /local1
> /dev/hda7            7068742  836518  5865944     12%   /usr
> /dev/hda6             303251   23454   264136      8%   /var
> 
> 
> I have put /etc/raid1.conf which contains:
> 
> raiddev                 /dev/md0
> raid-level              1
> nr-raid-disks           2
> nr-spare-disks          0
> 
> device                  /dev/sda5
> raid-disk               0
> 
> device                  /dev/sdb5
> raid-disk               1

        You have to think in raid as special partitions, and as such, they
can't be formatted while mounted. RAIDs are built by combining several
partitions, obtaining an "special" one (mdX) that you will then deal as
usually, i.e., format it (while unmounted, and you will lose all the data 
they previously have stored in) and later mount it and use.

> So please what am I doing wrong. I am trying to make /local and /local1
> mirror each other.

        The mirroring is done at the partition level, you won't need to
mount the seperately.

> Thanks for any pointers.

http://www.nyx.net/~sgjoen/disk.html (MultiDisk Howto)
http://linas.org/linux/Software-RAID/Software-RAID.html (Old Raid Howto)
http://ostenfeld.dk/~jakob/Software-RAID.HOWTO/Software-RAID.HOWTO.html
(New RAID Howto)

        I would read them in that order. The old raid howto deals widely
with concepts and theory of operation, while the newer one aims the latest
changes and tools.

        Greetings,

*****---(*)---**********************************************---------->
Francisco J. Montilla              Systems & Network administrator
[EMAIL PROTECTED]      irc: pukka        Seville            Spain   
INSFLUG (LiNUX) Coordinator. www.insflug.org   -   ftp.insflug.org

Reply via email to