Trying to create a raid5 array in ubuntu, ubuntu crashes.
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.