old-www/HOWTO/Root-RAID-HOWTO.html

140 lines
6.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Root RAID HOWTO cookbook</TITLE>
<LINK HREF="Root-RAID-HOWTO-1.html" REL=next>
</HEAD>
<BODY>
<A HREF="Root-RAID-HOWTO-1.html">Next</A>
Previous
Contents
<HR>
<H1>Root RAID HOWTO cookbook</H1>
<H2>Michael A. Robinton,
<A HREF="mailto:michael@bzs.org">michael@bzs.org</A></H2>v1.13, July 17, 2000
<P><HR>
<EM>This document only applys to the <B>OLD</B> raidtools, versions 0.50 and
under. The workarounds and solutions addressed in this write up have largely
been made obsolete by the vast improvment in the 0.90 raidtools and
accompanying kernel patch to the 2.0.37, 2.2x and 2.3x series kernels. You
may find the detailed descriptions useful, particularly if you plan to run
root raid or use initrd. Check these links for a reference to set up of
<A HREF="Root-RAID-HOWTO-1.html#newhowto">Boot Root Raid using conventional LILO</A> and accompanying initrd working scripts. What
follows is the description of the now <B>OBSOLETE Root RAID HOWTO</B>.
This document was originally written to provide a cookbook for creating a root mounted raid filesystem and companion fallback rescue system using linux initrd. There are complete step-by-step instruction for both raid1 and raid5 md0 devices. Each step is accompanied by an explanation of it's purpose.
Included with this revision is a generic <B>linuxrc</B> initrd file which may
be configured with a single three line
<A HREF="Root-RAID-HOWTO-4.html#raidboot-conf">/etc/raidboot.conf</A> file for
raid1 and raid5 configurations.</EM>
<HR>
<P>
<H2><A NAME="toc1">1.</A> <A HREF="Root-RAID-HOWTO-1.html">Introduction</A></H2>
<UL>
<LI><A HREF="Root-RAID-HOWTO-1.html#ss1.1">1.1 Where to get Up-to-date copies of this document.</A>
<LI><A HREF="Root-RAID-HOWTO-1.html#ss1.2">1.2 More up-to-date Boot Root Raid with LILO howto</A>
<LI><A HREF="Root-RAID-HOWTO-1.html#ss1.3">1.3 Bugs</A>
<LI><A HREF="Root-RAID-HOWTO-1.html#ss1.4">1.4 Acknowledgements</A>
<LI><A HREF="Root-RAID-HOWTO-1.html#ss1.5">1.5 Copyright Notice</A>
</UL>
<P>
<H2><A NAME="toc2">2.</A> <A HREF="Root-RAID-HOWTO-2.html">What you need BEFORE YOU START</A></H2>
<UL>
<LI><A HREF="Root-RAID-HOWTO-2.html#ss2.1">2.1 Required Packages</A>
<LI><A HREF="Root-RAID-HOWTO-2.html#ss2.2">2.2 Other similar implementations.</A>
<LI><A HREF="Root-RAID-HOWTO-2.html#ss2.3">2.3 Documentation -- Recommended Reading</A>
<LI><A HREF="Root-RAID-HOWTO-2.html#ss2.4">2.4 RAID resources</A>
</UL>
<P>
<H2><A NAME="toc3">3.</A> <A HREF="Root-RAID-HOWTO-3.html">Quick Start for ROOT RAID</A></H2>
<P>
<H2><A NAME="toc4">4.</A> <A HREF="Root-RAID-HOWTO-4.html"><I>initrd</I> Cookbook for root mounted RAID</A></H2>
<UL>
<LI><A HREF="Root-RAID-HOWTO-4.html#ss4.1">4.1 Security Reminder</A>
<LI><A HREF="Root-RAID-HOWTO-4.html#ss4.2">4.2 Build the Kernel and Raid Tools</A>
<LI><A HREF="Root-RAID-HOWTO-4.html#ss4.3">4.3 Build the <I>initrd</I> Rescue and Boot filesystem</A>
<LI><A HREF="Root-RAID-HOWTO-4.html#ss4.4">4.4 Start the STEP by STEP instructions</A>
<LI><A HREF="Root-RAID-HOWTO-4.html#ss4.5">4.5 Install the distribution - Slackware Specific</A>
<LI><A HREF="Root-RAID-HOWTO-4.html#ss4.6">4.6 Install linux <B>pthreads</B></A>
<LI><A HREF="Root-RAID-HOWTO-4.html#ss4.7">4.7 Install Raid Tools</A>
<LI><A HREF="Root-RAID-HOWTO-4.html#ss4.8">4.8 Remove un-needed directories and files from new filesystem.</A>
<LI><A HREF="Root-RAID-HOWTO-4.html#ss4.9">4.9 Create /dev/md<I>x</I></A>
<LI><A HREF="Root-RAID-HOWTO-4.html#ss4.10">4.10 Create a bare filesystem suitable for <I>initrd</I></A>
<LI><A HREF="Root-RAID-HOWTO-4.html#ss4.11">4.11 Making 'initrd' boot the RAID device - linuxrc</A>
<LI><A HREF="Root-RAID-HOWTO-4.html#ss4.12">4.12 Modifying the rc-scripts for SHUTDOWN </A>
<LI><A HREF="Root-RAID-HOWTO-4.html#ss4.13">4.13 Configuring RAIDBOOT - raidboot.conf </A>
<LI><A HREF="Root-RAID-HOWTO-4.html#ss4.14">4.14 Kernel 'loadlin and lilo' variables for RESCUE and RAID</A>
</UL>
<P>
<H2><A NAME="toc5">5.</A> <A HREF="Root-RAID-HOWTO-5.html">Configuring the Production RAID system.</A></H2>
<UL>
<LI><A HREF="Root-RAID-HOWTO-5.html#ss5.1">5.1 System specs.</A>
<LI><A HREF="Root-RAID-HOWTO-5.html#ss5.2">5.2 Partitioning the hard drives.</A>
</UL>
<P>
<H2><A NAME="toc6">6.</A> <A HREF="Root-RAID-HOWTO-6.html">Building the RAID file system.</A></H2>
<UL>
<LI><A HREF="Root-RAID-HOWTO-6.html#ss6.1">6.1 /etc/raid5.conf </A>
<LI><A HREF="Root-RAID-HOWTO-6.html#ss6.2">6.2 /etc/raid1.conf </A>
<LI><A HREF="Root-RAID-HOWTO-6.html#ss6.3">6.3 Step by Step procedures for building production RAID file system.</A>
</UL>
<P>
<H2><A NAME="toc7">7.</A> <A HREF="Root-RAID-HOWTO-7.html">One last thought.</A></H2>
<P>
<H2><A NAME="toc8">8.</A> <A HREF="Root-RAID-HOWTO-8.html">Appendix A. - Bohumil Chalupa's md0 shutdown</A></H2>
<P>
<H2><A NAME="toc9">9.</A> <A HREF="Root-RAID-HOWTO-9.html">Appendix B. - Sample SHUTDOWN scripts </A></H2>
<UL>
<LI><A HREF="Root-RAID-HOWTO-9.html#ss9.1">9.1 Slackware - /etc/rc.d/rc.6 </A>
<LI><A HREF="Root-RAID-HOWTO-9.html#ss9.2">9.2 Debian bo - /etc/init.d/halt and /etc/init.d/reboot </A>
</UL>
<P>
<H2><A NAME="toc10">10.</A> <A HREF="Root-RAID-HOWTO-10.html">Appendix C. - other setup files</A></H2>
<UL>
<LI><A HREF="Root-RAID-HOWTO-10.html#ss10.1">10.1 linuxrc </A>
<LI><A HREF="Root-RAID-HOWTO-10.html#ss10.2">10.2 loadlin -- linux.bat file - boot.par </A>
<LI><A HREF="Root-RAID-HOWTO-10.html#ss10.3">10.3 linuxthreads Makefile.diff </A>
<LI><A HREF="Root-RAID-HOWTO-10.html#ss10.4">10.4 raid1.conf </A>
<LI><A HREF="Root-RAID-HOWTO-10.html#ss10.5">10.5 raid5.conf </A>
<LI><A HREF="Root-RAID-HOWTO-10.html#ss10.6">10.6 raidboot.conf </A>
<LI><A HREF="Root-RAID-HOWTO-10.html#ss10.7">10.7 rc.raidown </A>
</UL>
<P>
<H2><A NAME="toc11">11.</A> <A HREF="Root-RAID-HOWTO-11.html">Appendix D. - obsolete linuxrc and shutdown scripts </A></H2>
<UL>
<LI><A HREF="Root-RAID-HOWTO-11.html#ss11.1">11.1 Obsolete working - linuxrc</A>
<LI><A HREF="Root-RAID-HOWTO-11.html#ss11.2">11.2 Obsolete working - shutdown scripts</A>
</UL>
<P>
<H2><A NAME="toc12">12.</A> <A HREF="Root-RAID-HOWTO-12.html">Appendix E. - Gadi's raid stop patch for the linux kernel </A></H2>
<P>
<H2><A NAME="toc13">13.</A> <A HREF="Root-RAID-HOWTO-13.html">Appendix F. - rc.raidown </A></H2>
<P>
<H2><A NAME="toc14">14.</A> <A HREF="Root-RAID-HOWTO-14.html">Appendix G. - linuxrc theory of operation </A></H2>
<P>
<H2><A NAME="toc15">15.</A> <A HREF="Root-RAID-HOWTO-15.html">Appendix H. Setting up ROOT RAID on RedHat</A></H2>
<HR>
<A HREF="Root-RAID-HOWTO-1.html">Next</A>
Previous
Contents
</BODY>
</HTML>