LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-24-2008, 08:31 AM   #1
randknu
LQ Newbie
 
Registered: Feb 2006
Location: Stavanger, Norway
Distribution: Slackware, Fedora
Posts: 20

Rep: Reputation: 0
Trying to create a raid5 array in ubuntu, ubuntu crashes.


I have already 2 raid arrays md0 and md1, I am now trying to make a raid5 array out of three 250Gb sata disks.

So i run on all the disks:
"sudo fdisk /dev/sda"
delete any filesystem that might be present, "d" (theese are old disks)
make a new partition "n" using the full disks capacity.
change type "t" to linux raid autodetect "fd"
Then write changes and exit.

Then i set up mdadm:
"sudo mdadm --create /dev/md2 --level=5 --raid-devices=3 /dev/sda /dev/sdb /dev/sdc"

This works fine and the array starts with 2 disks and one spare and immediately starts rebuilding the spare.

I can check the progress with:
sudo mdadm -D /dev/md2

After a while ubuntu stops responding. I have done this 4-5 times now and it always happens when rebuilding. I don't have any progress indication but based on the time it takes before it crashes and using the above command before it crashes tells me it must be around 50-60% done.

Only a hard reset will bring the computer back to life.

To the best of my knowledge the drives should be fine so i am starting to suspect the controller, witch is the onboard nforce4 controller.

Anyone have a clue to get this to work?
 
Old 02-24-2008, 09:20 AM   #2
randknu
LQ Newbie
 
Registered: Feb 2006
Location: Stavanger, Norway
Distribution: Slackware, Fedora
Posts: 20

Original Poster
Rep: Reputation: 0
Now i seem to be inable to do anything else with the drives as any change to the partition table will be undone by mdadm at the next reboot, where it starts to rebuild the array again, deleting anything present on the drives, and thus starting the countdown to the inevitable crash automatically.

This is getting really frustrating!
 
Old 02-26-2008, 12:51 PM   #3
Randall Slack
Member
 
Registered: Feb 2005
Location: Rotterdam, The Netherlands
Distribution: Debian - Ubuntu
Posts: 219

Rep: Reputation: 30
first remove the raid info from the disks with fdisk
then do
mdadm --zero-superblock /dev/sda
 
Old 02-27-2008, 12:00 PM   #4
randknu
LQ Newbie
 
Registered: Feb 2006
Location: Stavanger, Norway
Distribution: Slackware, Fedora
Posts: 20

Original Poster
Rep: Reputation: 0
Yep, that will remove the raid, i was hoping to get the raid to work though...
 
  


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 (2.6.15) won't recognize raid array on Ubuntu dapper coaltown Linux - Server 0 08-06-2007 04:12 PM
compaqProliant DL360 smart Array with ubuntu feisty sscultima Linux - Server 0 07-06-2007 02:50 PM
Hanging installing ubuntu on raid array mutti_wilson Ubuntu 0 02-08-2007 11:13 AM
Secure Deletion with RAID5 array neilschelly Linux - Security 2 12-05-2004 06:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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