old-www/HOWTO/ATA-RAID-HOWTO/installing.html

570 lines
9.1 KiB
HTML

<HTML
><HEAD
><TITLE
>Installing Red Hat 7.2</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"><LINK
REL="HOME"
TITLE="Linux ATA RAID HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Preparing RedHat 7.2 CDs"
HREF="preparing.html"><LINK
REL="NEXT"
TITLE="Installing Native Linux RAID"
HREF="nativeraid.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Linux ATA RAID HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="preparing.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="nativeraid.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="INSTALLING">5. Installing Red Hat 7.2</H1
><P
>Once you have created your CDs, you are ready to begin installing Red Hat 7.2 on your Linux system.
<P
></P
><OL
TYPE="1"
><LI
><P
>Restart the computer and press <B
CLASS="KEYCAP"
>Cntrl-F</B
> when you see FastTrack BIOS prompt on screen. This will take you into the Promise FastTrack BIOS.</P
></LI
><LI
><P
>Inside this BIOS, choose "delete array," "define array," and "choose Mirror."</P
></LI
><LI
><P
>Press <B
CLASS="KEYCAP"
>Cntrl-Y</B
> to save. </P
></LI
><LI
><P
>Choose »Create Only« and <B
CLASS="KEYCAP"
>ESC</B
> to reboot. When it reboots, you should see that Promise FastTrack now has 1x2 RAID Mirror defined over your two hard disks connected to FastTrack controller.</P
></LI
><LI
><P
>Insert your Red Hat 7.2, disk-1 into your CD-ROM and reboot.</P
></LI
><LI
><P
>At the boot-prompt, type:</P
><P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>linux noprobe</PRE
></FONT
></TD
></TR
></TABLE
></P
></LI
><LI
><P
>Now, installation will begin. Choose »Add device« and scroll through the list of available drivers to see if Promise FastTrack is listed. If it is not listed, press <B
CLASS="KEYCAP"
>F2</B
> to load external driver from a floppy. Insert your Promise FastTrack driver floppy and hit "OK."</P
></LI
><LI
><P
>Continue with installation. Choose only ext3 type partitions for now. You can make ext2 partions at the very end, if you really need them. </P
></LI
><LI
><P
>When the system you to create Boot Floppy, insert a blank floppy disk. The Red Hat installation program will create a Boot Floppy disk.<DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="90%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>NOTE</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>Please do not click on »Skip boot disk creation«. If you skip this step and do not create a Boot Floppy disk, you will be very sorry later.</P
></TD
></TR
></TABLE
></DIV
></P
></LI
><LI
><P
>When the install asks you to choose Boot loader configuration, please choose »LILO only«. Do not choose »GRUB« as your boot loader.</P
><P
>When the installation is finished, you will see »Congratulations« screen.</P
></LI
><LI
><P
>Press <B
CLASS="KEYCAP"
>Cntrl-ALT-F2</B
> to switch to <TT
CLASS="FILENAME"
>tty2</TT
>.</P
></LI
><LI
><P
>At the shell prompt, type:</P
><P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>cd /mnt/sysimage/lib/modules/2.4.7-10/kernel/drivers/scsi</PRE
></FONT
></TD
></TR
></TABLE
></P
></LI
><LI
><P
>Type <B
CLASS="COMMAND"
>ls</B
> and make sure the file <TT
CLASS="FILENAME"
>ft.o</TT
> exists. If not, you are going to need to manually install the module <TT
CLASS="FILENAME"
>ft.o</TT
> as follows:
<P
></P
><OL
TYPE="a"
><LI
><P
>Make sure your Driver floppy is mounted. Go into the floppy and type</P
><P
>
<TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>mv module.cgz /tmp
cd /tmp
gzip -dc module.cgz | cpio -idumv </PRE
></FONT
></TD
></TR
></TABLE
></P
></LI
><LI
><P
>Now, you will see a bunch of directories created under <TT
CLASS="FILENAME"
>/tmp</TT
>.</P
><P
>
<TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>cd /tmp/`uname -r`
cp ft.o /mnt/sysimage/lib/modules/`uname -r`/kernel/drivers/scsi</PRE
></FONT
></TD
></TR
></TABLE
></P
></LI
><LI
><P
>At the shell prompt, type:</P
><P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>less /mnt/sysimage/etc/lilo.conf</PRE
></FONT
></TD
></TR
></TABLE
></P
><P
>Check to see that the <TT
CLASS="FILENAME"
>lilo.conf</TT
> looks good. Especially, it should have the <TT
CLASS="FILENAME"
>initrd=</TT
> line and the corresponding <TT
CLASS="FILENAME"
>initrd.img</TT
> file must exist in <TT
CLASS="FILENAME"
>/mnt/sysimage/boot</TT
>. If not, you are going to create it manually as follows:</P
><P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>/mnt/sysimage/usr/sbin/chroot /mnt/sysimage /sbin/mkinitrd \
--preload jbd \
--preload ext3 \
--preload scsi_mod \
--with ft \
/boot/initrd.img 2.4.7-10</PRE
></FONT
></TD
></TR
></TABLE
></P
></LI
></OL
></P
></LI
><LI
><P
>Now, remove the floppy and the CD, and reboot. At this point, pray that your computer will boot without any problems.</P
></LI
><LI
><P
>If it does not boot, insert your Boot Floppy and reboot and login; And then repair as follows:
<P
></P
><OL
TYPE="a"
><LI
><P
>Make sure <TT
CLASS="FILENAME"
>/boot/initrd.img</TT
> exists. Make sure <TT
CLASS="FILENAME"
>/lib/modules/2.4.7-10/kernel/drivers/scsi/ft.o</TT
> exists (If not you have to manually fix these issues as explained above)</P
></LI
><LI
><P
> Type: <B
CLASS="COMMAND"
>/sbin/lilo</B
></P
></LI
><LI
><P
>Now, remove floppy and reboot. Your machine should boot into your new machine now using Promise Driver.</P
></LI
></OL
></P
></LI
><LI
><P
> Type <B
CLASS="COMMAND"
>df -k</B
> and you should see your hard disks as <TT
CLASS="FILENAME"
>/dev/sdaX</TT
> instead of <TT
CLASS="FILENAME"
>/dev/hdaX</TT
>. This is because the Promise Driver is actually a special type of Software Emulation RAID, not exactly Hardware RAID. (Promise RAID works through a BIOS Hack). </P
></LI
></OL
>&#13;</P
><P
>If your machine is SMP, you will have to manually create <TT
CLASS="FILENAME"
>initrdsmp.img</TT
>, when you boot into Uniprocessor Kernel as shown below, and edit <TT
CLASS="FILENAME"
>/etc/lilo.conf</TT
> and then test to see you can boot into SMP system.
<P
></P
><OL
TYPE="1"
><LI
><P
>When you boot your machine into <TT
CLASS="FILENAME"
>2.4.7-10</TT
> uniprocessor kernel, type the following to make <TT
CLASS="FILENAME"
>initrdsmp.img</TT
> to be used for <TT
CLASS="FILENAME"
>2.4.7-10smp</TT
> kernel:</P
><P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>/sbin/mkinitrd \
--preload jbd \
--preload ext3 \
--preload scsi_mod \
--with ft \
/boot/initrdsmp.img 2.4.7-10smp</PRE
></FONT
></TD
></TR
></TABLE
>
<DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="90%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>NOTE</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>If you are tired of remembering the command to create initrd files, dowload my <A
HREF="files/geninitrd.txt"
TARGET="_top"
>geninitrd</A
> script and keep it handy. </P
></TD
></TR
></TABLE
></DIV
>
</P
></LI
><LI
><P
>Adjust your <TT
CLASS="FILENAME"
>/etc/lilo.conf</TT
> accordingly for <TT
CLASS="FILENAME"
>2.4.7-10smp</TT
> (the SMP kernel section), type <B
CLASS="COMMAND"
>/sbin/lilo</B
> and reboot into the SMP kernel. <A
HREF="files/lilo.conf.txt"
TARGET="_top"
>Here is how <TT
CLASS="FILENAME"
>/etc/lilo.conf</TT
> should look like.</A
></P
></LI
></OL
></P
><P
>At this point, you have a working Red Hat 7.2 machine with SMP support, if applicable. If you are happy with the fact that you are running a fake Hardware RAID from Promise FastTrack using SCSI Emulation, then read no further.</P
><P
>Because Promise Driver is a SCSI emulation, it puts a lot of load on CPU(s). Read on if you want to enable true Linux native RAID and get rid of this Promise SCSI emulation.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="preparing.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="nativeraid.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Preparing RedHat 7.2 CDs</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Installing Native Linux RAID</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>