LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-19-2004, 04:52 PM   #1
erlend
LQ Newbie
 
Registered: Feb 2004
Distribution: Gentoo Linux
Posts: 20

Rep: Reputation: 0
From FastTrak to md...


I don't know if this can even be done...

Currently I have a dell dimension, with a FastTrak TX2Plus RAID Controller Card. On which I have two SATA drives as RAID 0 (my boot drives). I am running kernel(s) 2.4.21 and 2.4.23, using the ft3xx.o driver available from Promise's website.

There is a new (open-source) driver as part of the libata patch: sata_promise.o. This lets linux see your raided drives separately. This is built into the 2.6 kernel. Obviously, I can't boot with this. It just tries to boot directly off the first drive (sda3) which effectively only contains half a filesystem!

I've been puzzling this in my head. How do I, and others in my position, upgrade to the 2.6 kernel when required? I think I'll need to set up software raid, creating /dev/md0 as a stripe of /dev/sda3 and /dev/sdb3, trouble is I can't do this in the old kernel (sdb3 doesn't exist), and I can't see my filesystem using the 2.6 kernel. Quite tricky!

Has anyone got ideas?

Thanks,

Erlend
 
Old 03-20-2004, 09:13 AM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
It was a restriction that the boot stuff had to be on RAID 1. Striping (RAID 0) is faster for reading large files, but most people need to read large numbers of smaller files to load programmes or to serve files, so I recommend RAID 1 for the speed increase obtained by being able to read two files simultaneously.
 
Old 03-20-2004, 09:40 AM   #3
erlend
LQ Newbie
 
Registered: Feb 2004
Distribution: Gentoo Linux
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
It was a restriction that the boot stuff had to be on RAID 1
Eh? Why's that? Does this mean I should create a separate parition for /boot and raid mirror that between sda4 and sdb4?

I've tried a few things to get the 2.6 kernel working with my raid0 partition (it is already raid0). One of them was to load the 2.4 kernel with the libata patch and once linux had loaded, modprobe sata_promise... it didn't work, kinda stalled my computer... probably didn't like the conflict of two drivers for one device!

I thought of installing SuSE Linux 9 on another computer, networking them, and using that compter's harddrive as root (I think you can do that, not sure tho?) so that I can boot.

Cheers,

Erlend
 
Old 03-20-2004, 12:16 PM   #4
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
If you have the space, create a partition as RAID1. Make a filesystem on it. Copy your raid0 system (at least, /boot) to
the new partition. Adjust /etc/fstab and lilo or grub to show the new mount point for /boot.



From http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/ch-software-raid.html
Quote:

If you are making a RAID partition of /boot, you must choose RAID level 1, and it must use one of the first two drives (IDE first, SCSI second). If you are not creating a RAID partition of /boot, and you are making a RAID partition of /, it must be RAID level 1 and it must use one of the first two drives (IDE first, SCSI second).
I am puzzled. Have you been running 2.4 with hardware RAID0? To do that your kernel would need to have the driver compiled in. Since booting is rare with Linux , there is little penalty to
using RAID 1 for /BOOT. I always use software RAID 1 now, because it is simpler and discs are so cheap. It is also true that many (disc) heads are better than one.
 
Old 03-20-2004, 02:05 PM   #5
erlend
LQ Newbie
 
Registered: Feb 2004
Distribution: Gentoo Linux
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks for your replies.

I have the FastTrak Tx2Plus SATA RAID Controller Card. It is not actually hardware raid, it is software raid with (optional, primarily bios) hardware support. At the moment I am using it with kernel 2.4.21 (and 2.4.23) using the ft3xx.o driver as a module available from the Promise website. I use an initrd to boot (since driver is module).

The trouble is that this driver doesn't work with the 2.6 kernel. Instead, there is the sata_promise driver (which is actually now an option in the 2.6 kernel, and can be patched into older kernels). This is part of the libata patch. Basically this patch "removes the raid", each drive is seen as an individual drive, and so you are left to set up software (md) raid as you with. The trouble is, I already have a raid 0 array (which I'm not too keen on removing) on the disks, so when i boot in 2.6 the sata_promise driver loads, sees both disks (sda, sdb) and tries to boot off /dev/sda3. This fails, since sda3 only contains half the filesystem.

Cheers,

Erlend
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
new kernel with FastTrak supermatt Linux - General 5 01-28-2004 09:08 PM
fasttrak promise support... trouby Linux - Hardware 2 12-22-2003 07:21 AM
Fasttrak SX6000 - Compatibility? hypernetics Linux - Hardware 2 11-25-2003 02:18 PM
Promise Fasttrak controllers Darkl0rd Linux - Hardware 0 06-03-2003 02:15 AM
Promise FastTRAK TX2000 j0han Slackware 2 09-20-2002 02:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration