Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-22-2005, 06:24 PM   #1
LQ Newbie
Registered: Aug 2005
Posts: 13

Rep: Reputation: 0
Software RAID-5 Setup Help

I have 4 Seagate 300GB HDDs and a Promise SATAII150 TX4 Controller on a gigabyte motherboard with AMD 1800+. Running Debian Sarge 3.1 with 2.6.12 Kernel

I havebeen struggling with this setup for a few days with no luck.
Here is what I did:

- Compiled new kernel to get support for the TX4
- Partitioned each drive cfdisk as "Linux RAID autodetect"
- Used mdadm to setup a RAID device ("mdadm -C /dev/md0 -v -l 5 -n 4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1" was the exact command) created the device and started the recovery process (i was told I could reboot with no problem at this point and the recovery would continue when it started again . I didn't reboot yet though)
- That all seemed to work just fine, so I used mkfs to create an ext3 filesystem on my RAID-array. ("mkfs -V -t ext3 /dev/md0" was the exact command)
- I added the device to my fstab file and mounted it (I added "/dev/md0 /archives ext3 defaults 0 0") It mounted fine and I could write to it and read from it.

I was excited....BUT

when I restarted my computer I got a "Bad Superblock" error

so i started over and this time let the recovery process continue overnight before I rebooted. It finished and I reboot to the same error...I just don't get it, but I an new to software RAID (maybe this should be in the newbie section)
Thanks for your time.

Last edited by ryoojin83; 08-22-2005 at 06:29 PM.
Old 08-22-2005, 07:18 PM   #2
LQ Newbie
Registered: Aug 2005
Posts: 13

Original Poster
Rep: Reputation: 0
...please help
Old 08-22-2005, 10:32 PM   #3
Registered: Jan 2005
Posts: 34

Rep: Reputation: 15
I also faced the same problem.
But then I became busy with work, so didnt find much time to do research.

I can suggest a work around.
Dont make rootfs as part of RAID
in fstab configure md0 not to mount on boot

Now it should boot.
Now try mounting your md0. It should mount
Old 08-26-2005, 09:21 PM   #4
LQ Newbie
Registered: Aug 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Unhappy ahhhhhh

I cannot get this to work for the LIFE OF ME!

PLEEEAAAASSSSEEEE someone point me in the direction of a write-up on how to make a RAID 5 work.
I have been trying for a WEEK to get this to work and it just doesn't. My superblocks are always "bad" when i reboot and try to mount the RAID. even when I was able to mount and read/write to it before the reboot. I even let the drives fully sync before attempting to reboot. What is the recommended filesystem? what steps should i take to create the array and fs on the array? the steps I took already are above....

ppppplllleeeaaasssseeee help me!

ps. on thing i changed from above was to not add the array to my fstab and then mount it manually after reboot.....didn;t change anything.

Last edited by ryoojin83; 08-26-2005 at 09:23 PM.
Old 08-27-2005, 04:40 PM   #5
LQ Newbie
Registered: Aug 2005
Posts: 13

Original Poster
Rep: Reputation: 0

bumpty boo please helpty doo
Old 08-27-2005, 04:50 PM   #6
LQ Newbie
Registered: Aug 2005
Posts: 13

Original Poster
Rep: Reputation: 0
looks like the data remains if I recreate the array everytime i boot the computer....
thats not very comforting for storing data safely...chances are ill type a 3 instead of a 4 and loose all my data....not cool...

ANY ideas? I bet its something incredibly stupid and noobish that I'm just forgetting to me?


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Software Raid Setup How To... Help globaltekit Linux - Software 2 06-05-2005 01:40 AM
setup software raid ust Linux - Distributions 1 05-04-2005 08:01 AM
software raid 1 setup xrado Linux - Newbie 3 02-19-2005 01:46 PM
Software RAID setup KevinGuy Linux - General 5 03-24-2004 01:40 PM
Software RAID Setup scottpioso Linux - Software 4 07-16-2003 03:56 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:52 AM.

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