raid on a new server
Mike Rambo
mrambo@lsd.k12.mi.us
Mon, 01 May 2000 10:37:31 -0400
Ben Pfaff wrote:
> Mike Rambo <mrambo@lsd.k12.mi.us> writes:
>
> > I'm new enough that I didn't know there *were* any mdutils. I'll
> > look for some man pages. I assume that you probably leave the space
> > that'll eventually be the raid device unallocated when the initial
> > install is done?
>
> That's one way to do it. Alternatively, you could just tell RH
> that those devices are going to be /home, since rebuilding the
> /home tree is trivial.
>
> The manpages you want are mdcreate(8), mdadd(8), mdrun(8), and
> mdtab(5), BTW.
I've got the raid device /dev/md0 coming up and (apparently) working. I
was able to mke2fs /dev/md0 with no errors. Now I'm stuck trying to
assign it a mount point. I wanted /home. As such I've moved the original
/home to /oldhome and added a line to and fstab to assign /home to
/dev/md0 ...
<fstab>
....
/dev/md0 /home ext2 defaults 1 2
....
</fstab>
... except it doesn't work. Is it because it's an md device? If not what
the heck have I missed? /dev/md0 comes up fine when the system boots but
I can't figure out how to assign it the mount point. Last time I did this
I just edited fstab (I think) - but then the last time I did this it
wasn't a raid device either. I've set it up as linear RAID if it matters.
/etc/raidtab
raiddev /dev/md0
raid-level linear
nr-raid-disks 2
persistent-superblock 1
chunk-size 16
device /dev/sda7
raid-disk 1
device /dev/sdb6
raid-disk 2
The tools for RH6+ are called raidtools (mkraid, raidstart, raidstop,
raid0run, and the config file /etc/raidtab) now instead of mdtools,
although they're based on mdtools, and they appear to be part of the
default install (I'm not aware of any boxes I checked that caused them to
install anyway).
Mike Rambo
Lansing School District