--- build.xml Mon Sep 16 00:37:43 2002 +++ build_w_raid.xml Mon Sep 16 00:17:28 2002 @@ -112,6 +112,17 @@

Above, we modprobe the aic7xxx SCSI driver and then make sure that SCSI CD-ROM (sr_mod) and disk (sd_mod) support is loaded.

+ +

If you are using hardware raid, you will want to load the modules for ataraid and for your raid controller

+ +
+# insmod ataraid
+# insmod pdcraid
+	(Promise Raid Controller)
+# insmod hptraid
+	(Highpoint Raid Controller)
+
+ hdparm is included on the Gentoo iso. If any of your drives require tweaking, now would be a good time to do so. On reasonably modern hardware @@ -324,6 +335,12 @@ At this point, create your partitions using fdisk. Note that your partitions should be of type 82 if swap and 83 for regular filesystems (whether XFS, ReiserFS or ext2). +If you are using raid your partitions will be a little different. +You will have the partitions like this: +/dev/ataraid/discX/partY +X is the arrays you have made, so if you only have made 1 array, then it will +be disc0.Y is the partition number as in /dev/hdaY +

Once you've created your partitions using fdisk, it's time to initialize the filesystems that will be used to house our data. Initialize swap as follows:

@@ -646,6 +663,10 @@ also choose to use modules, then echo -e "ide-scsi\nsg\nsr_mod" >> /etc/modules.autoload to have them automatically added at boot time. +If you are using hardware raid you will need to enable a couple more options in the kernel: +For Highpoint raid controller)select hpt366 chipset support, support for IDE Raid controllers and Highpoint +370 software RAID.For Promise raid controllers select PROMISE PDC202{46|62|65|67|68|69|70} support, support for IDE Raid +controllers and Support Promise software RAID (Fasttrak(tm)) For those who prefer it, it is now possible to install Gentoo Linux with a 2.2 kernel. @@ -919,7 +940,11 @@

The easiest way to install grub is to simply type grub at your chrooted shell prompt:

 # grub
-

You'll be presented with the grub> grub command-line prompt. Now, you need to type in the + +If you are using hardware raid this part will not work at this time. +Skip to the section on making your menu.lst. After that we will complete the +grub setup for raid controllers +

You'll be presented with the grub> grub command-line prompt. Now, you need to type in the right commands to install the GRUB boot record onto your hard drive. In my example configuration, I want to install the GRUB boot record on my hard drive's MBR (master boot record), so that the first thing I see when I turn on the computer is the GRUB prompt. In my case, the commands @@ -953,6 +978,11 @@ root (hd0,0) kernel /boot/bzImage root=/dev/hda3 + #Below is for setup using hardware raid +title=My Gentoo Linux on raid +root (hd0,0) +kernel /boot/bzImage root=/dev/ataraid/discX/partY + # Below needed only for people who dual-boot title=Windows NT Workstation root (hd0,5) @@ -978,13 +1008,30 @@ add them to the end of the kernel command. We're already passing one option (root=/dev/hda3), but you can pass others as well. In particular, you can turn off devfs by default (not recommended unless you know what you're doing) by -adding the gentoo=nodevfs option to the kernel command. +adding the gentoo=nodevfs option to the kernel command.

Unlike in earlier versions of Gentoo Linux, you no longer have to add devfs=mount to the end of the kernel line to enable devfs. In rc6 devfs is enabled by default. -

+

If you are using hardware raid, you must make a grub boot disk. With hardware raid +if you try to install grub from your chrooted shell it will fail. So we will make a grub +boot disk, and when you reboot the first time we will install grub to the mbr. Make your +bootdisk like this:

+ +
+# mke2fs /dev/fd0
+# mount /dev/fd0 /mnt/floppy
+# mkdir /mnt/floppy/boot
+# cp /usr/share/grub/i386-pc/stage1 /mnt/floppy/boot/grub
+# cp /usr/share/grub/i386-pc/stage2 /mnt/floppy/boot/grub
+
+# grub
+
+grub> root (fd0)
+grub> setup (fd0)
+grub> quit
+
@@ -1012,6 +1059,9 @@ the /etc/modules.conf file. Instead of modifying this file directly, you should generally make changes to the files in /etc/modules.d.
+Remerber if you are running hardware raid, you must use the bootdisk for the first reboot. +then go back and install grub the way everyone else did the first time. You are done, congratulations +

If you have any questions or would like to get involved with Gentoo Linux development, consider joining our gentoo-user and gentoo-dev mailing lists (there's a "click to subscribe" link on our main page).