Linux-Promise-RAID1-HOWTO(1).pdf

(24 KB) Pobierz
Linux Migration to Promise RAID Card HOWTO
Linux Migration to Promise RAID Card HOWTO
Benjamin Simkin
2002−12−16
Revision History
Revision 1.5
2003−03−25
Revised by: bs
Revision 1.4
2002−12−16
Revised by: bs
Changed URL for Promise website
Revision 1.3
2002−09−04
Revised by: bs
Added Troubleshooting section
Revision 1.1
2002−08−05
Revised by: bs
This document aims to outline the steps of how to migrate an existing (Red Hat) Linux install onto a Promise
TX2 Card for the purposes of RAID−1 Mirroring. Although I am concentrating on Red Hat, the same
principles may be applied to any other distribution.
184432148.002.png
Linux Migration to Promise RAID Card HOWTO
Table of Contents
1. Introduction. ....................................................................................................................................................1
1.1. What?. ...............................................................................................................................................1
1.2. Why?. ................................................................................................................................................1
1.3. How?. ................................................................................................................................................1
1.4. Copyright and License. .....................................................................................................................1
1.5. Disclaimer. ........................................................................................................................................1
1.6. Contact the Author. ...........................................................................................................................1
2. Module Installation. ........................................................................................................................................2
2.1. What?. ...............................................................................................................................................2
2.2. How?. ................................................................................................................................................2
2.2.1. Extracting the module .............................................................................................................2
2.2.2. Creating the Initial RAM Disk. ...............................................................................................2
2.2.3. Creating the Boot Disk. ...........................................................................................................3
3. Linux Configuration. ......................................................................................................................................4
3.1. What?. ...............................................................................................................................................4
3.2. How?. ................................................................................................................................................4
4. Array Configuration. ......................................................................................................................................5
4.1. Building the Array. ...........................................................................................................................5
4.2. Changing Configuration Files. ..........................................................................................................5
4.2.1. /etc/lilo.conf. ............................................................................................................................5
4.2.2. /etc/fstab. .................................................................................................................................6
5. Monitoring the Array. ....................................................................................................................................7
6. Troubleshooting. .............................................................................................................................................8
i
184432148.003.png
1. Introduction
This document contains two main sections, the module setup, and the migration. Neither of these are
documented anywhere on the net.
1.1. What?
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'.
1.2. Why?
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.
1.3. How?
Using the Promise Technology module. The module that Promise Technologies provide works well, but the
documentation they provide is somewhat lacking.
1.4. Copyright and License
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
1.5. Disclaimer
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.
1.6. Contact the Author
You may email me ( < bensimkin (at) union.org.za > ) with improvements and suggestions etc.
Please include in the subject line: "Promise RAID HOWTO".
1. Introduction
1
184432148.004.png
2. Module Installation
2.1. What?
You will need an existing Red Hat Linux Install, and you will need to obtain the correct driver from the
Choose your card type, and then choose FastTrak Family Red Hat Linux Driver Uniprocessor .
2.2. How?
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.
2.2.1. Extracting the module
· Issue this command: tar vxf ftrhup_120b9.tar
Put the tar file into /tmp .
· Now we have access to the modules.cgz file. Issue the following:
# gzip −dc modules.cgz > modules.cpio
# cpio −idumv < modules.cpio
·
A few directories will be created, so move to the correct directory, depending on your kernel version.
You can get your kernel version, by issuing: uname −r
·
You will see the ft.o file. Copy this file to the
/lib/modules/kernel−version/kernel/drivers/scsi directory.
2.2.2. Creating the Initial RAM Disk
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).
# /sbin/mkinitrd −−preload scsi_mod −−preload sd_mod −−with ft initrd−kernel−version.img kernel−version
If your kernel version is 2.4.2−2 , you would issue the command:
# /sbin/mkinitrd −−preload scsi_mod −−preload sd_mod −−with ft initrd−2.4.2−2.img 2.4.2−2
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.
2. Module Installation
2
184432148.005.png
Linux Migration to Promise RAID Card HOWTO
2.2.3. Creating the Boot Disk
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.
# /sbin/mkbootdisk −−device /dev/df0 −−mkinitrdargs '−−preload scsi_mid −−preload sd_mod −−with ft' kernel−version
If your kernel version is 2.4.2−2 , then issue the following
# /sbin/mkbootdisk −−device /dev/df0 −−mkinitrdargs '−−preload scsi_mid −−preload sd_mod −−with ft' 2.4.2−2
2. Module Installation
3
184432148.001.png
Zgłoś jeśli naruszono regulamin