LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-10-2005, 05:59 AM   #1
Registered: Oct 2004
Location: India
Distribution: RH9,Fedora
Posts: 75

Rep: Reputation: 15


I am trying to setup a test RAID5 and i'm using three partitions(5,6,7) of the same disk...(2 of 500M and 1 300M). After setting them up as Linux raid autodetect with fdisk(rebooted as well), i try to run mkraid /dev/md0, (made proper entries in /etc/raidtab) but it shows me that "/dev/hda5 appears to contain an ext2 filesystem, use -f to override." I have tried to delete the partitions and then recreated them also and i didn't even format them with ext or ext3...but it shows me the same message

Please help..

PS : when i tried using mkraid -f /dev/md0 it gave me a warning page and then i tried -R it removed the data but then again reconstructed it...
Old 03-17-2005, 10:53 AM   #2
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Rep: Reputation: 16
To get RAID5 working you will need a minimum of 3 DISKS with 1 "Linux Raid" (type fd) partition per disk.

When you have got another 2 disks you should be able to use the 'mkraid /dev/md0' command to get it to work.
Old 03-17-2005, 04:33 PM   #3
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
use mdadm,Its a bit easier.
mdadm -C /dev/md0 -c32 -l5 -p left-symmetric -n3 -x1 /dev/sd{a,b,c,d}3

in the above;
-C creates the array
-c32 is blocks...32 is about default for avg use in raid 5
-l is the raid level raid 5 l5
-p can be left out as mdadm uses left-symmetric by default with raid 5
-n is number of disks in array
-x is spare disks...use if you have 4 or more and want a lil more redundancey...leave out in your case

In my case I had 4 disks and wanted all the disks 3rd partition for sda3 sdb3 sdc3 sdd3 I do /dev/sd{a,b,c,d}3

in your case /dev/hda5,6,7

More tools in mdadm to work with your array as well.

If there was a previous array you must zero the partition
Id zero it anyway.

Last edited by ironwalker; 03-17-2005 at 04:34 PM.


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
raid5 rebuild JVWay Linux - General 3 09-20-2005 02:11 PM
Software RAID5 disasters Hamsjael Linux - Hardware 8 06-15-2005 05:05 AM
Raid5, wont use spare.. DigitalVixen Linux - Hardware 2 03-05-2005 01:28 PM
raid5 problems dwater Fedora 0 01-02-2005 09:45 AM
Scsi 320 Raid5 Badfish Linux - Hardware 6 11-01-2004 08:43 PM

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