old-www/HOWTO/Linux-Promise-RAID1-HOWTO/arrayconf.html

309 lines
4.3 KiB
HTML

<HTML
><HEAD
><TITLE
>Array Configuration</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Linux Migration to Promise RAID Card HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Linux Configuration"
HREF="linuxconf.html"><LINK
REL="NEXT"
TITLE="Monitoring the Array"
HREF="x168.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 Migration to Promise RAID Card HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="linuxconf.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x168.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="arrayConf"
></A
>4. Array Configuration</H1
><P
></P
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="AEN133"
></A
>4.1. Building the Array</H2
><P
>&#13;Add the second hard drive to the card, and turn on your computer.
Go into the card bios, and create a mirror array, selecting the appropriate source disk. Make sure you <EM
>Create and Build</EM
> the array.
After that is done, follow the instructions of the next section.
</P
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="AEN137"
></A
>4.2. Changing Configuration Files</H2
><P
>&#13;Choose "LinuxFromRaid" Option at LILO.
</P
><P
>&#13;It should boot up without any errors. It will, however
complain about swap. Ignore that, as we will fix it in a moment.
</P
><P
>&#13;You may receive an error about incorrect module version, or a kernel mismatch. Please see the
"troubleshooting" section about this.
</P
><P
>&#13;After we have booted up on the new system, we must edit a few files:
</P
><P
>&#13;<P
></P
><UL
><LI
><P
><TT
CLASS="filename"
>/etc/lilo.conf</TT
></P
></LI
><LI
><P
><TT
CLASS="filename"
>/etc/fstab</TT
></P
></LI
></UL
>
</P
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN151"
></A
>4.2.1. <TT
CLASS="filename"
>/etc/lilo.conf</TT
></H3
><P
>&#13;The parts in italics have been edited. (See the original
<TT
CLASS="filename"
>lilo.conf</TT
> file as stated earlier on in this
HOWTO)
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;boot=/dev/<EM
>sda</EM
>
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
linear
default=<EM
>LinuxFromRAID</EM
>
image=/boot/vmlinuz-2.4.2-2
label=linux
read-only
root=/dev/hda5
image=/boot/vmlinuz-2.4.2-2
label=LinuxFromRAID
initrd=/boot/initrd-2.4.2-2.img
read-only
root=/dev/sda5
</PRE
></FONT
></TD
></TR
></TABLE
><P
>&#13;Now, save the file, and run lilo to write the boot record.
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN160"
></A
>4.2.2. <TT
CLASS="filename"
>/etc/fstab</TT
></H3
><P
>&#13;For every entry that pointed to the old location, you must now change
it to the scsi device, but use the same partition. For example:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;/dev/hda2 swap swap defaults 0 0
</PRE
></FONT
></TD
></TR
></TABLE
><P
>&#13;If you saw this in your fstab, you would need to
change <TT
CLASS="filename"
>/dev/hda2</TT
> to
<TT
CLASS="filename"
>/dev/sda2</TT
>
Now reboot your system. That's it.
After the reboot, its best to check the status of the RAID.
</P
></DIV
></DIV
></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="linuxconf.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="x168.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Linux Configuration</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Monitoring the Array</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>