LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-26-2004, 11:52 PM   #1
crowmobe
LQ Newbie
 
Registered: Nov 2004
Location: Huntsville, AL
Distribution: Fedora Core 3
Posts: 13

Rep: Reputation: 0
Setting up new drives on Raid 1 after install


I've searched for similar threads, but can't find an exact answer, so here I am posting for the first time.
I installed Fedora several weeks ago. For the most part I love it, but there are some really frustrating things that seem to come up. For instance now I would like to set up raid 0 on some new drives that I am installed that will just hold data. The os is already on another drive. This should be easy right? I put a Promise S150 TX2 plus card in my A7V8X mobo, and connected my two drives up to it. The computer detected them, but it obviously wasn't set up right, there was more to do, and I go to google and read for a few hours to figurre out what. I read and read about the hunt for decent drivers. But I think all of that was wasted time because it seems like Fedora already has the right drivers in it. Outdated information can really derail you.
Without much information I remember the nice partition program that I used on install. Oddly I can't figure out how to bring it up, so I put the install disk in and bring it up. It is called Druid, and I can quickly see how I can intuitively do what I need to do with it. I can create raid partitions, create a raid device. It would be so easy, if it worked. apparently there is no way to use Druid unless you are installing. This is unbelievably frustrating. I have the perfect program running on the machine, but there is no way to use it when I really need it. I'm not the only person who has been upset over this. Is it a joke, is someone devising ways to upset a new linux user? Sometimes it seems that way.
So I read that I can use fdisk, only I'm not sure how to use that either. It won't run from the prompt. I download qtparted, which is similar to how nice it would be to use druid after install, but I can't figure out how to set up raid with it. It may not be supported.
So what do I do. Hours spent and no progress. Just dead ends. And damn I am pissed and really starting to hate linux. I am almost to the point of doing a reinstall just to be able to use druid. Every time I realize that I can't use druid without doing this I want to swear at someone. I thought I would just ask you nice people to help, then go to bed mad and defeated. Maybe I will have some insight tomorrow and it will make for a better day.
Also do you suggest making my new raid array (if I ever get it set up) LVM or ext3. Actually I am not sure if it is an or, I think it can be both. Maybe make it an LVM with the whole drive an ext3 extension. Any suggestions?
Thanks in advance!
 
Old 11-27-2004, 09:38 AM   #2
MrJoshua
Member
 
Registered: Apr 2002
Location: Houston Texas
Distribution: Debian / Gentoo / RHEL
Posts: 209

Rep: Reputation: 31
Hmmm

I am in no way trying to upset you, but RAID on Linux may sound easy but it took me some time on my work servers. See the problem is that onboard RAID controllers, are software RAID controllers, so you have to install the proper drivers at boot time (Fedora, Gentoo, WinXP etc...) Or they will show up as 2 drives to the OS. A hardware controller would show only the Volumes to the OS. If you see two drives on Disk Druid then either your RAID is not configured correctly or your are using generic (but very good) libata drivers for them. If you see two drives and make a RAID through Disk druid that is fine, that is what I do on software RAID controllers! But later I recommend that you install a RAID monitoring tool on your system. There are built in programs to monitor your raid, like /proc/mdstat

If you will give some more specifics on your system I will try and help. I need to know SATA chipset, Fedora Version, I also need the results of an #lsmod and #cat /proc/mdstat posted here.


#cat /proc/mdstat
Personalities : [raid0] [raid1] [raid5]
md1 : active raid1 hdg1[1] hde1[0]
98176 blocks [2/2] [UU]

md3 : active raid1 hdg3[1] hde3[0]
116088256 blocks [2/2] [UU]

unused devices: <none>
 
Old 11-27-2004, 10:30 AM   #3
crowmobe
LQ Newbie
 
Registered: Nov 2004
Location: Huntsville, AL
Distribution: Fedora Core 3
Posts: 13

Original Poster
Rep: Reputation: 0
It is Fedora Core 3. And the card is a Promise FastTrak S150 TX2plus.
http://www.promise.com/product/produ...107&familyId=2

Yes, I am seeing them as two separate drives in druid rather than one mirrored drive like I have setup on the raid controller.
So what you are saying is that I shouldn't even have to setup software raid, because this card is supposed to take care of raid itself isn't it. That makes since. Only now I am more confused than before about where to start.
Thanks for you time though.
 
Old 11-27-2004, 10:31 AM   #4
crowmobe
LQ Newbie
 
Registered: Nov 2004
Location: Huntsville, AL
Distribution: Fedora Core 3
Posts: 13

Original Poster
Rep: Reputation: 0
#cat /proc/mdstat
Personalities :
unused devices: <none>

#lsmod
bash: lsmod: command not found

Last edited by crowmobe; 11-27-2004 at 11:50 AM.
 
Old 11-27-2004, 12:47 PM   #5
LaKing
LQ Newbie
 
Registered: Oct 2004
Posts: 9

Rep: Reputation: 0
Hi crowmobe....

I am in a very similar situation and i try to let you know what i know at the moment.
First: I Absolutley agree with you on that Disk Druid stuff. It should be a graphical app out there to partition and mange discs.
You should make some posts in the fedora developer community to get that on....

Im also not the most experienced guy in Linux, and the RAID setup makes me also go crazy. (3rd day of searching solution)

About Hardware.
There are the low cost low profile RAID Cards out there, wich are fake-raid cards. In my system the Adaptec 1210SA is one of those, and i think yours is also a fake-raid card.
These Cards need to calculate the raid-logic on the CPU.
Fedora Core 3 detects all the Raid cards, then you see an array made in the raid bios as several disks. ... on the card there is no RAM, no processor, just aan io unit ... So the Raid card is just a SATA / IDE Card with software-raid support (i think Microsoft helps in selling fakes, and makes us all belive its a RAID card, but the raid logic is calculated with the help of the driver.)
In Linux you get the truth. You will see your disks, and if you want raid, make a software raid with the linux kernel.

The Hardware Raid cards are much more expensive, but they will see the raid array correctly. Adaptec 24xx and up, wich costs more then your motherboard. (integrated Raid is also fake)

So if you want a RAID in your system, Configure your Fasttrack bios in JBOD mode. That means dont create any arrays. In fedora set up a Software RAID.
DiskDruid or (fdisk, mdadm, format, mount, set up automount)

I think im at the last part of setting up automount, but when i see messages like :
md: Autodetecting RAID arrays.
md: invalid raid superblock magic on sda1
md: sda1 has invalid sb, not importing!
md: invalid raid superblock magic on sdb1
md: sdb1 has invalid sb, not importing!
md: autorun ...
md: ... autorun DONE.

Then i dont feel good.
I dont want to trust my 750GB IMPORTANT data, wich i cant backup anywhere to a system with invalid magic.

i try to write if i find my way back here after more success.

I like Linux very much, but its not the user-freindly os.
Linux is the future under construcktion.
We need much more drivers, apps, ....

Last edited by LaKing; 11-27-2004 at 12:49 PM.
 
Old 11-27-2004, 07:09 PM   #6
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Quote:
Originally posted by crowmobe
#lsmod
bash: lsmod: command not found
Ahh, fedora again. For some silly reason, Red Hat cannot seem to get the root user's PATH variable set right on Fedora. I can't help you with RAID, but I can tell you that most commands that are "not found" can be found in /sbin . Others may be found in /usr/sbin, /usr/local/sbin, or in other places.

There are three possible files that fedora might use for this. Chances are the change needs to take place in /root/.bashrc (I don't have fedora in front of me and can only guess). If there is a PATH= line, then add ":/sbin:/usr/sbin/:/usr/local/sbin" to the end of it. If it doesn't exist, you can add:

PATH=${PATH}:/sbin:/usr/sbin/:/usr/local/sbin

Hope this helps!
 
Old 11-29-2004, 02:40 PM   #7
crowmobe
LQ Newbie
 
Registered: Nov 2004
Location: Huntsville, AL
Distribution: Fedora Core 3
Posts: 13

Original Poster
Rep: Reputation: 0
I called Promise again and was assured that the card I have does support hardware raid rather than software raid. But he said there aren't drivers for Fedora yet. Apparently they support Redhat 9, but those drivers strangely won't work in Fedora from what he said.
I found a linux driver on their site, it says linux rather than redhat or any specific distro. Not the first time that I have been lied to by a level 1 tech. But I guess I am too much of a noob to understand the instructions that come with the linux driver. Can anyone give me their opinion on if I am on the right path, or what to do with this driver?

It's the forth one down under driver:
FastTrak S150 TX Series Linux Source Code 131.69KB 1.00.0.19 Linux
2003/12/11

http://www.promise.com/support/downl...ory=All&os=100

Thanks
 
Old 11-30-2004, 01:14 AM   #8
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
So everyone else can see what he's dealing with:

Quote:
/***********************************************************************
* PROMISE FastTrak TX4000/376/378/S150 TX Series Linux Driver README *
* *
* PROMISE Linux support team <support@promise.com.tw> 2003/07/03 *
***********************************************************************/

How to make and load a Driver module (UP/SMP) for FastTrak

1.) Make sure you have linux kernel source code in /usr/src/linux,
and the gcc version is 3.x by issuing the command -
# gcc -v

2.) Set the Kernel Compiling Environment -
# cd /usr/src/linux/
# make config(or menuconfig/xconfig)
To set kernel config items as you wish as below,
Processor type and features/Processor family
Processor type and features/High Memory Support
Processor type and features/Symmetric multi-processing support
# make dep clean

3.) Go to the directory where PROMISE driver code is located and edit
Makefile.

4.) Choose the parameters in Makefile (default parameter is INDEP586)
ex: INDEP586 for most common case
DEP586 for most common case including module version
SuSE_TB for SuSE linux and Turbolinux,
MDK for Mandrake linux

5.) Issue Linux command to make a FastTrak(UP/SMP) driver: ft3xx.o

#make clean all

6.) Be sure to load scsi_mod.o before "insmod ft3xx.o".

7.) Copy this module to /lib/modules/2.4.x/kernel/drivers/scsi/

8.) Issue "cat /proc/scsi/ft3xx/x" (x is a SCSI host number) to get the
RAID array status.
They look clear enough to me (I'm still largely a noob). I can't tell what all the commands do, but they should be easy to follow. (1)both the kernel source and gcc should be available as packages on your installation disk (though they may not be installed by default). When You get to (2) I would "make menuconfig" personally. I think there is a file in /etc that you need to add a reference to after you do (7), bearing (6) in mind, in order to get the driver (module) to load automatically when you boot. (8) isn't part of the install, but they're saying you can get information about the status of your raid there once it's up and running.

If someone will please correct me, and fill in the holes, it would be appreciated.

(curiosity: why would a hardware raid need a unique driver? Couldn't it rely on a generic ide or scsi, such as the one mentioned as a dependency? Does this set up a raid1, 0, or can the module autodetect?)
 
Old 11-30-2004, 09:00 PM   #9
crowmobe
LQ Newbie
 
Registered: Nov 2004
Location: Huntsville, AL
Distribution: Fedora Core 3
Posts: 13

Original Poster
Rep: Reputation: 0
Yes it's so clear now. :|
I can't even get the sources correctly! WTF
I was checking out the "Core 3 Kernel Sources" thread. I did a
# up2date --get-source kernel
and it downloaded. But when I try
# rpm -ihv kernel-2.6.9-1.681_FC3.src.rpm
kernel-2.6.9-1.681_FC3.src.rpm: not an rpm package (or package manifest):

It's clear that this just works for other people, but of course not me. And this looks like the easy step, how am I supposed to get through them all if I can't make this work.
So I am not actually changing my own kernel I am just using it to make the driver, is this correct?
I am unsure of what is meant to be done with the .o files, and the whole thing about doing something automatically. There just aren't enough words for it to make sense, and what words I can find more insrtuctions on just don't seem to work. When does it start to get easier?
 
Old 12-01-2004, 01:58 AM   #10
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Quote:
Originally posted by crowmobe
So I am not actually changing my own kernel I am just using it to make the driver, is this correct?
That was my understanding. Don't get me wrong, I don't think of this as the easy stuff. I see a lot of commands related to recompiling the kernel in there.

I don't use the rpm command very often, but I don't see anything wrong with what you typed. There are other ways to get it installed. There are other programs like Kpackage that will do it in a graphical environment. You may also be able to get an archive program like ark to read it (I think ark will read rpm's). If you do it that way, there should be a directory in the file named something like linux-BlahBlahVersionSomething. Just unpack this into the /usr/src directory. Then type:

cd /usr/src
cp -s linux-BlahBlahVersionSomething linux

I think that is all that rpm needs to do for this particular package. It is also possible that your file is corrupted...

Don't worry too much about understanding all of the commands. Understand them as well as you can, and then just try to follow along. Normally, when a kernel is compiled all the modules also get compiled and moved to a more permanent location. They use the example /lib/modules/2.4.x/kernel/drivers/scsi/ (where x could be anything). The 4 may also be a 6. Mine is "2.6.5-7-111-default". Since you're not recompiling the kernel (and also since the module is not a part of the kernel source), you will need to put the module there manually (otherwise it can't be found to be loaded). The ft3xx.o file that it keeps referring to is your module (driver) once it's compiled.

Part (4) is what would worry me the most. The Makefile is a special file that tells the make command how to go about compiling something. A mistake in there could spell problems (note: I haven't read your modules makefile, I hope it's well documented inside.).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding additional drives/resizing drives in RAID arrays kheldar Linux - Hardware 1 10-19-2005 01:21 PM
Setting up sw RAID-5 during Sarge install elmu Debian 0 10-08-2005 12:53 PM
setting up software RAID 1 after install caddis Linux - Newbie 2 03-02-2005 12:18 AM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 03:28 PM
raid on 2 different drives ronss Linux - Hardware 2 08-24-2002 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:07 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