Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-26-2005, 04:57 PM   #1
LQ Newbie
Registered: Jul 2005
Location: Los Angeles, CA
Posts: 18

Rep: Reputation: 0
Raid5 creation issue, using fedora 4


So i am trying to put a filesystem on 7 scsi drives that i have set up in raid 5.
I used fdisk to create partitions on the scsi drives, /dev/sda thru /dev/sdg.
I then run this command to create the raid array.
I am using fedora core 4

mdadm --create --verbose /dev/md0 --level=5 --raid-devices=7 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1

If i read the man page correctly, then level=5 means i want raid5 and raid-devices=7 means that i have 7 drives.

now after This is finished, i cat /proc/mdstat and i get this.

Personalities : [raid5]
md0 : active raid5 sdg1[7] sdf1[5] sde1[8](F) sdd1[3] sdc1[2] sdb1[1] sda1[0]
860231808 blocks level 5, 64k chunk, algorithm 2 [7/5] [UUUU_U_]

ok, so now i want to lay a filesystem down on /dev/md0.
I run this command:

mkfs.ext3 /dev/md0

mke2fs 1.37 (21-Mar-2005)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
107544576 inodes, 215057952 blocks
10752897 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=218103808
6564 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848

Writing inode tables: done

However, when this is finished i get the following error.

ext2fs_mkdir: Attempt to read block from filesystem resulted in short read while creating root dir

So this is were i am stuck, any ideas?
Old 10-28-2005, 03:24 AM   #2
Senior Member
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
I hope your drives are all identical, or that you quoted the maximum size of the smallest drive.
Old 11-15-2005, 04:10 AM   #3
LQ Newbie
Registered: Nov 2002
Location: Stockholm
Posts: 27

Rep: Reputation: 15
You see that two of your disks in your raid are "down"


A raid5 only has 1 parity disk. If more than 1 disk dies or are down the raid are inoperable. You need to reassemble the raid. First check your disks with "badblocks" and smartctl (if that is available for SCSI?).

Use RAID6 if you need 2 disk failsafe. And/or a spare disk.

Last edited by holst; 11-15-2005 at 04:11 AM.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
raid5 rebuild JVWay Linux - General 3 09-20-2005 01:11 PM
Raid5 IwantLINUX Linux - Newbie 2 03-17-2005 03:33 PM
raid5 problems dwater Fedora 0 01-02-2005 08:45 AM
general user creation issue mehesque Linux - Newbie 2 10-17-2003 12:55 PM
adding new hd in raid5 software slack66 Linux - Hardware 1 08-27-2003 12:29 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:47 PM.

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