At 15:43 04.03.00, you wrote:
>3 disks scsi
>
>--> 3 partion ext2 in Raid 5 (mounted on / ) of 4081mb [md0]
>--> 3 partition swap in Raid 5 of  250mb [md1]
>
>it's possible and it is performing?

Almost - you can't boot off a raid5; however, you CAN boot off raid1. Also, 
I wouldn't use raid5 for swap - raid5 gives bad performance for many small 
updates (which you'll probably have with swap. Onlöy reason for swap on 
raid is redundancy, I'd sugest the followin configuration:

--> 3 partition ext2 in Raid 1 (mounted on /boot), size 3x20 MB
--> 3 partition ext2 in Raid 5 (mounted on /),
--> 3 partition swap in Raid 1

You'll need to use the raid-enabled lilo provided by redhat 6.1 or patch 
your lilo sources to enable it to boot off raid1 (patch at 
ftp://ftp.sime.com/pub/linux/lilo.raid1.gz).

The one thing you must be careful about is swap on raid: you MUST NOT have 
swap active on a raid device WHILE it's RESYNCHRONIZING. So, you should 
remove swapon -a from your startup files and instead insert a script that 
waits for resync to finish before turning on swap. Put the script right 
behind mounting the other filesystems & proc - it needs to read 
/proc/mdstat to get status of raiddevices and /var/log to write status 
messages. Important - let the script run in the background, it might have 
to wait quite a long time if you've got many big raid devices).

Here's the raidswapon script I'm using (slightly adapted from a script 
posted on the list - sorry, I don't remember the original author):

---------------------------------------
#!/bin/sh
# start swap on raid devices

RAIDDEVS=`grep swap /etc/fstab | grep /dev/md|cut -d" " -f1|cut -d/ -f3`

for raiddev in $RAIDDEVS
do
    while grep $raiddev /proc/mdstat | grep -q "resync="
    do
       echo "`date`: $raiddev resyncing" >> /var/log/raidswap-status
       sleep 20
    done
    /sbin/swapon /dev/$raiddev
done
exit 0
---------------------------------------

Bye, Martin

"you have moved your mouse, please reboot to make this change take effect"
--------------------------------------------------
  Martin Bene               vox: +43-316-813824
  simon media               fax: +43-316-813824-6
  Andreas-Hofer-Platz 9     e-mail: [EMAIL PROTECTED]
  8010 Graz, Austria
--------------------------------------------------
finger [EMAIL PROTECTED] for PGP public key

Reply via email to