The follow procedure can be used to implement software RAID under Redhat Linux 9. This will mirror two drives for fault tolerance.
Part One:
To remove all existing partitions, from the linux rescue disk if necessary, use the list-harddrives command to identify your hard drives.
1. Use the parted utility, as parted /dev/hda for hard drive a. (/sbin/parted if from root)
2. From the parted utility, type print to identify all partitions
3. Type rm 1 to remove partition 1. Remove all partitions on all drives, as necessary.
4. Type quit from parted. Linux is gone
Part Two Installation with RAID Partitioning in Setup:
Boot the Linux 9 CD disk 1
1. Proceed with the installation until the partitioning section.
2. Let the installer automatically partition, but only use ONE drive
3. Review the configuration. It will probably have:
102 MB /boot partition
2 GB of swap (two times memory on the target machine)
The rest of the disk for /
4. Click Edit for each partition, and change each partition type to Software RAID. The mount points will disappear. (Remember the mount points for each one.)
5. Click the RAID button
6. Choose "Clone", and it will copy the partition setup to the other drive(s).
7. Click the RAID button again. You have to do three things for each partion:
select the partition
set the mount point
set the type of RAID (select 1 for mirroring)
7a. Lets start with the "/boot" partition:
Note: You'll see six partitions if you took the default. All the check boxes will be checked.
Uncheck everything but the two 102 MB partitions.
Set the mount point as /boot
Set the RAID as RAID 1
Set the file type to ext3
7b. Lets start with the "/swap" partition:
Note: You'll now see just four partitions left. All four check boxes will be checked.
Select the two 2 GB partitions (or whatever the swap size is) by unchecking the other two remaining partitions.
Set the RAID to RAID 1
Set the file type to Swap (that will dim out the mount point)
7c. Lets do the "/" partition:
Note: You'll now see the two remaining partitions, both should be checked.
Leave the remaining two selected.
Set the mount point to /
Set the RAID to RAID 1
Set the file type to ext3
8. Proceed through the next screens until you get the point where you select the boot loader. Instead of taking the default, choose LILO, because this will write a seperate copy of the boot loader on each disk.
Adapted and expanded from original instructions posted and found in a google search.
previous page
|