[H]ard|Forum

Go Back   [H]ard|Forum > [H]ard|Ware > Data Storage Systems

Reply
 
Thread Tools Search this Thread
  #1  
Old 01-04-2007, 02:03 PM
Karandras69 [H]ard|Gawd, 8.8 Years
 
Karandras69 is offline
RAID newb, 2 drives, mobo raid + Linux CertOS

Alright, here we go. Setting up a Linux box for a phone system and we want to have a RAID setup in the box. I have looked all over for info on this but can't seem to find it so I'm turing to the [H] for some help.

Setup:

Mobo - K8V-MX
HDDs - Segate Barracuda 7200.9 80gig (x2) SATA2

if you need everything else I'll provide it too, anyways, onto the issue.

My Boss knows more about computer then I do but with both of us we don't know much about RAID setups. The question is: Once the motherboard RAID (Not sure if it is software or hardware RAID) is setup as RAID 1 should everything automatically write to both drives?

I've read that I have to setup Linux to see that there are two drives and to write to both of them at the same time. My boss says that the hardware RAID on board will automatically and magically do everything for us, if there is a drive failure shut the machine down, unplug the crapped hdd, plug in a fresh one and the onboard RAID will rebuild the broken hdd.

So, do I need a driver/software for Linux or does the onboard RAID do it all?

Thanks for any info.
__________________
"Built By Gamers For Gamers"
"Its nice to be important, but its more important to be nice" - Scooter
  #2  
Old 01-04-2007, 02:23 PM
unhappy_mage [H]ard|DCer of the Month - October 2005, 5.4 Years
 
unhappy_mage is offline
I suggest you use Linux Software Raid instead of the "hardware" (really, it's driver-based) raid on the board. It would let you move to another board in the future, and the monitoring tools for it actually work. Look at the man page for 'mdadm'; it explains what you need to do to create an array.

If you run into problems, post back and I'll help you out.
__________________
"I know not what course others may take; but as for me, give me liberty or give me death!"
-- Patrick Henry, 1775
  #3  
Old 01-04-2007, 02:45 PM
Karandras69 [H]ard|Gawd, 8.8 Years
 
Karandras69 is offline
Thanks man. I found mdadm a little bit ago and I'm trying to install it. This is a trixbox machine if you have heard of it. I'm having problems installing mdadm. I've tried yum, rpm and the archives off of the mdadm site tar doesn't like, says something about "This does not look like a tar archive" (I'm somewhat of a Linux newb as well...bad combo) using the argument "tar xvvf mdadm-2.6.tgz". Any help here is appreciated!
__________________
"Built By Gamers For Gamers"
"Its nice to be important, but its more important to be nice" - Scooter
  #4  
Old 01-04-2007, 02:57 PM
unhappy_mage [H]ard|DCer of the Month - October 2005, 5.4 Years
 
unhappy_mage is offline
You'll have to throw a 'z' in there. 'tar zxvf mdadm....tgz', IOW. Since it's a gzipped tar archive, this tells tar to decompress it first. If you had a bzip2 archive (.tar.bz2 or .tbz2 extension, usually) you'd need to use the logical letter... 'j'.

Did you run 'yum install mdadm'? What did it return?
__________________
"I know not what course others may take; but as for me, give me liberty or give me death!"
-- Patrick Henry, 1775
  #5  
Old 01-04-2007, 03:10 PM
Karandras69 [H]ard|Gawd, 8.8 Years
 
Karandras69 is offline
Alright bunch of stuff. Tried that different argument, didn't work got this for an error:

extracted some files to the correct directory then:

tar: Skipping to next hear
tar: Archive contains obsolescent base-64 headers

gzip: stdin: invalid compressed data-format voilated
tar: Child returned status 1
tar: Error exit delayed from previous errors

back to a prompt. Tried to make install but then I get:

Makefile:54: *** missing separator. Stop.

:-/

//"yum install mdadm" returns:

Setting up install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages from CentOS-4 - Updates
Finished
Excluding Packages from CentOS-4 - Base
Finished
Excluding Packages from CentOS-4 - Addons
Finished
Excluding Packages from CentOS-4 - Extras
Finished
Parsing package install arguments
Nothing to do

:-/ Not sure what more I can try.

Thanks for your help btw

PS - Forgot to include that I tried both the 2.5 and 2.6 archives with the same "Archive contains obsolescent base-64 headers" error.

Last edited by Karandras69; 01-04-2007 at 03:12 PM.. Reason: forgot to include
__________________
"Built By Gamers For Gamers"
"Its nice to be important, but its more important to be nice" - Scooter
  #6  
Old 01-04-2007, 03:26 PM
Karandras69 [H]ard|Gawd, 8.8 Years
 
Karandras69 is offline
Tried on another install of CertOS (different machine) got this:

[root@localhost ~]# tar zxvf mdadm-2.6.tgz
mdadm-2.6/
mdadm-2.6/util.c
mdadm-2.6/ANNOUNCE-2.0
mdadm-2.6/ANNOUNCE-2.4.1
mdadm-2.6/ANNOUNCE-2.1
mdadm-2.6/Assemble.c

gzip: stdin: invalid compressed data--format violated
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
__________________
"Built By Gamers For Gamers"
"Its nice to be important, but its more important to be nice" - Scooter
  #7  
Old 01-04-2007, 03:39 PM
unhappy_mage [H]ard|DCer of the Month - October 2005, 5.4 Years
 
unhappy_mage is offline
Is mdadm installed already, perhaps? What happens when you run 'mdadm' from the command line? That "nothing to do" sounds like it's already done it.
__________________
"I know not what course others may take; but as for me, give me liberty or give me death!"
-- Patrick Henry, 1775
  #8  
Old 01-04-2007, 03:45 PM
Karandras69 [H]ard|Gawd, 8.8 Years
 
Karandras69 is offline
Hmmm...well kick me in the head and call me retarded....the one thing I didn't try :-/ haha. Alright now comes the fun. I'll see if I can figure this out. If not then I'll post again. Thanks for pointing out the obvious to me ;-)
__________________
"Built By Gamers For Gamers"
"Its nice to be important, but its more important to be nice" - Scooter
  #9  
Old 01-04-2007, 03:48 PM
Karandras69 [H]ard|Gawd, 8.8 Years
 
Karandras69 is offline
Alright stupid Linux user question. How can I list the hdds and where they are mounted so I know which I'm adding to the array?

thnx
__________________
"Built By Gamers For Gamers"
"Its nice to be important, but its more important to be nice" - Scooter
  #10  
Old 01-04-2007, 03:55 PM
unhappy_mage [H]ard|DCer of the Month - October 2005, 5.4 Years
 
unhappy_mage is offline
You can do "fdisk -l" to display what disks and partitions there are.

Does that distro have support for installing to md volumes? That would greatly simplify things as compared to migrating your existing install.
__________________
"I know not what course others may take; but as for me, give me liberty or give me death!"
-- Patrick Henry, 1775
  #11  
Old 01-04-2007, 03:58 PM
Karandras69 [H]ard|Gawd, 8.8 Years
 
Karandras69 is offline
Ok, ignore the last question google is always a good help. Here is the next question. Can I create a RAID array with two drives that are already in the computer and already in use? I tried "mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /devsdb1" that gaves me

"
md: could not bd_claim sda1
md: error, md_import_device() returned -16
mdadm: ADD_NEW_DISK for /dev/sda1 failed: Devices or resource busy
"

Yay, another fun issue :-D
__________________
"Built By Gamers For Gamers"
"Its nice to be important, but its more important to be nice" - Scooter
  #12  
Old 01-04-2007, 04:04 PM
unhappy_mage [H]ard|DCer of the Month - October 2005, 5.4 Years
 
unhappy_mage is offline
What it appears you'll need to do is create a broken raid1 array (use "missing" instead of a device name), copy the data from the corresponding device, and add that device to the raid 1 array. See this tutorial for how to do this on another Linux distro.

I'm downloading trixbox right now. If you run into problems I'll go through and get step-by-step instructions.
__________________
"I know not what course others may take; but as for me, give me liberty or give me death!"
-- Patrick Henry, 1775
  #13  
Old 01-04-2007, 04:46 PM
Karandras69 [H]ard|Gawd, 8.8 Years
 
Karandras69 is offline
Cool. Just following the instructions for installing the RAID on the box right now.

Ran into a little problem I'm assuming that we don't want to use this software RAID with the RAID that is onboard the mobo right? Cause I just created the partitions, rebooted to activate the table and it went all fubar. So I'm removing the drives from the mobo RAID, reinstalling and trying just mdadm.
__________________
"Built By Gamers For Gamers"
"Its nice to be important, but its more important to be nice" - Scooter
  #14  
Old 01-04-2007, 04:54 PM
unhappy_mage [H]ard|DCer of the Month - October 2005, 5.4 Years
 
unhappy_mage is offline
Correct. It sounds like the motherboard's software raid wasn't working - you shouldn't've been able to see two drives in Linux - but it could conflict with mdadm and cause problems.

Still downloading - sourceforge is being slow today
__________________
"I know not what course others may take; but as for me, give me liberty or give me death!"
-- Patrick Henry, 1775
  #15  
Old 01-04-2007, 05:07 PM
Karandras69 [H]ard|Gawd, 8.8 Years
 
Karandras69 is offline
Wow, it crashes really hard when I change the partitions on the 2nd drive. even from a fresh install it breaks it good. gives me a kernel panic, I'm going to try an install with just the one hdd attached to make sure that the software hasn't been altered and trying to write something to the 2nd hdd. This sucks :-/
__________________
"Built By Gamers For Gamers"
"Its nice to be important, but its more important to be nice" - Scooter
  #16  
Old 01-04-2007, 05:45 PM
Karandras69 [H]ard|Gawd, 8.8 Years
 
Karandras69 is offline
Ehh....I've reached Step 7, it asks for "palo -f /mnt/etc/palo.conf -I /dev/sdb". Tried that, I get "-bash: palo: command not found".....ehhhh :-/
__________________
"Built By Gamers For Gamers"
"Its nice to be important, but its more important to be nice" - Scooter
  #17  
Old 01-04-2007, 07:04 PM
unhappy_mage [H]ard|DCer of the Month - October 2005, 5.4 Years
 
unhappy_mage is offline
palo is the boot loader for that particular architecture. If you're using grub or lilo, they fill a similar role. Try grub-install (hd1) or setup lilo to write to /dev/sdb in /etc/lilo.conf.

Dang, it took me way too long to type that. Kept trying to tab-complete
__________________
"I know not what course others may take; but as for me, give me liberty or give me death!"
-- Patrick Henry, 1775
  #18  
Old 01-04-2007, 07:57 PM
Karandras69 [H]ard|Gawd, 8.8 Years
 
Karandras69 is offline
Thanks. I'll try that tomorrow right when I get into work. Hope that is going to work for me.

What would be the full command that I would use in place of palo?

Thanks for sticking with the newb on this one ;-)
__________________
"Built By Gamers For Gamers"
"Its nice to be important, but its more important to be nice" - Scooter
  #19  
Old 01-05-2007, 10:39 AM
Karandras69 [H]ard|Gawd, 8.8 Years
 
Karandras69 is offline
I'm seriously having no luck figuring out the commands to make this work in grub. Tried to go into Grub and enter the following:

grub> root (hd1,1)
Filesystem type is ext2fs, partition type 0xfd

grub> kernel /vmlinux root=/dev/md2

Error 15: File not Found

grub> kernel /vmlinux root=/dev/sdb2

Error 15: File not Found


Now I'm stuck between a rock and a hard place again :-/ I'm going to keep trying random commands in grub to see if I can get it to recognize :-/

Thanks.
__________________
"Built By Gamers For Gamers"
"Its nice to be important, but its more important to be nice" - Scooter
  #20  
Old 01-05-2007, 01:46 PM
Karandras69 [H]ard|Gawd, 8.8 Years
 
Karandras69 is offline
I found an article on trixbox.org that says the easiest way to do it is to create a new kickstart file on the iso, reburn the CD and go from there. I'm going to try that, should work no problem (crossing fingers) and I'll post back. Going to take a bit since I need to search for a freeware ISO editor tough to find.

thanks again., oh here is the linky:

http://www.trixbox.org/modules/newbb...er=ASC&start=0
__________________
"Built By Gamers For Gamers"
"Its nice to be important, but its more important to be nice" - Scooter
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

Forum Jump


All times are GMT -5. The time now is 07:03 PM.


Valid XHTML 1.0 Transitional

Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2000 - 2009 KB Networks, Inc.