This document contains two main sections, the module setup, and the migration. Neither of these are documented anywhere on the net.
The Promise Fasttrak is a PCI Ultra 100 RAID Card. It can be used as a RAID card, or as standard IDE interfaces. This documentation DOES NOT address the issues of the 'ataraid' module, but addresses the issues of setting up the card with the propriety module 'ft', as supplied by 'Promise Technologies'.
The documentation that comes with the module contains erroneous instructions that if followed, cause the card to not work properly. Also, upon looking over the internet for such documentation, I found a lack.
Using the Promise Technology module. The module that Promise Technologies provide works well, but the documentation they provide is somewhat lacking.
This document, Linux Migration to Promise RAID Card-HOWTO, is copyrighted (c) 2002 by Benjamin Simkin. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is available at http://www.gnu.org/copyleft/fdl.html.
No liability for the contents of this document can be accepted. Use the concepts, examples and information at your own risk. There may be errors and inaccuracies, that could be damaging to your system. Proceed with caution, and although this is highly unlikely, the author does not take any responsibility.
All copyrights are held by their by their respective owners, unless specifically noted otherwise. Use of a term in this document should not be regarded as affecting the validity of any trademark or service mark. Naming of particular products or brands should not be seen as endorsements.
You may email me (<bensimkin (at) union.org.za>) with improvements and suggestions etc. Please include in the subject line: "Promise RAID HOWTO".
You will need an existing Red Hat Linux Install, and you will need to obtain the correct driver from the Promise website.
Choose your card type, and then choose FastTrak Family Red Hat Linux Driver Uniprocessor.
Put the RAID Card into the computer, but leave the hard drive(s) on the motherboard. Boot up into Linux. Login as root. You should have the tar file from the Promise site, if not, see "What?" section above.
The Fasttrak module, ft, needs scsi_mod. To use the card as a RAID Card, you will also need sd_mod.
To boot off the card, we will need to create a ramdisk, with the required modules, so that linux can see the hard drive(s).
If your kernel version is 2.4.2-2, you would issue the command:
Now move the newly created ramdisk image to /boot. Its time to edit lilo.conf.
Before we edit lilo.conf, its best to make a floppy boot disk with the ft module included.
This is very important, as something may go terribly wrong. If LILO stops working, then we just put the disk in and fix the problem. You will need the mkbootdisk program.
If your kernel version is 2.4.2-2, then issue the following
Instead of editing our current working system, we merely create an entry for our new system. So if something stuffs up, we just reboot and we're fine.
Example lilo.conf file:
Just copy, and edit the kernel part, as follows:
Note, how we setup the ramdisk, and we setup the root value. Don't set it as default yet. Now run lilo, in verbose mode.
If you don't see any errors, we're fine, so halt the system.
Put only ONE hard drive on the Card, the hard drive with the existing Linux system.
Boot up, and go into the card bios. Delete the array of the current set.
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 Create and Build the array. After that is done, follow the instructions of the next section.
Choose "LinuxFromRaid" Option at LILO.
It should boot up without any errors. It will, however complain about swap. Ignore that, as we will fix it in a moment.
You may receive an error about incorrect module version, or a kernel mismatch. Please see the "troubleshooting" section about this.
After we have booted up on the new system, we must edit a few files:
The parts in italics have been edited. (See the original lilo.conf file as stated earlier on in this HOWTO)
Now, save the file, and run lilo to write the boot record.
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:
If you saw this in your fstab, you would need to change /dev/hda2 to /dev/sda2 Now reboot your system. That's it. After the reboot, its best to check the status of the RAID.
You can get detailed information by looking at the directory /proc/scsi/fasttrak/
In that directory, you will see the file which corresponds to your array.
You may get a kernel mismatch error message. This means that you don't have the correct version module for use with your kernel. If you cannot get the correct module version for use with your kernel, choose the closest one, and follow these steps;
This may not work in some instances, so remember to have your boot disk handy.
Now modify 'insmod ft' to 'insmod -f ft'.
This will force the sytem to load the module. Save the file, and exit from vi (or emacs :))
You will obviously have to use the correct filename for your initrd file. I am using 2.4.2-2 as example.
Now, reboot, and all should be well.