Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
software raid 5
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
patbe
n00b
n00b


Joined: 17 Mar 2003
Posts: 39

PostPosted: Tue Apr 08, 2003 1:47 pm    Post subject: software raid 5 Reply with quote

I'm a total newbie on this game but I'm trying to setup a raid 5 on my gentoo box, when I run mkraid /dev/md0 I get: aborted..

the /proc/mdstat is as follows:

person... [raid5]
read_ahead not set
md0 : inactive scsi/host0/bus0/target2/lun0/part1[1] scsi/host0/bus0/traget1/lun0/part1[0]
0 blocks
unused devices: <none>

any ideas?

.p
Back to top
View user's profile Send private message
dirtyjake
n00b
n00b


Joined: 06 Jul 2002
Posts: 60

PostPosted: Wed Apr 09, 2003 12:45 am    Post subject: Reply with quote

What does your raidtab say? And for good measure, what does `fdisk -l` report?
Back to top
View user's profile Send private message
patbe
n00b
n00b


Joined: 17 Mar 2003
Posts: 39

PostPosted: Wed Apr 09, 2003 4:45 am    Post subject: Reply with quote

# cat /etc/raidtab
raiddev /dev/md0
raid-level 5
nr-raid-disks 4
nr-spare-disks 1
persistent-superblock 1
parity-algorithm left-symmetric
chunk-size 32
device /dev/sdb1
raid-disk 0
device /dev/sdc1
raid-disk 1
device /dev/sdd1
raid-disk 2
device /dev/sde1
raid-disk 3
device /dev/sdf1
spare-disk 0


# fdisk -l

Disk /dev/scsi/host0/bus0/target0/lun0/disc: 4512 MB, 4512701440 bytes
255 heads, 63 sectors/track, 548 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 * 1 13 104391 83 Linux
/dev/scsi/host0/bus0/target0/lun0/part2 14 30 136552+ 82 Linux swap
/dev/scsi/host0/bus0/target0/lun0/part3 31 548 4160835 83 Linux

Disk /dev/scsi/host0/bus0/target1/lun0/disc: 4512 MB, 4512701440 bytes
255 heads, 63 sectors/track, 548 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target1/lun0/part1 1 548 4401778+ fd Linux raid autodetect

Disk /dev/scsi/host0/bus0/target2/lun0/disc: 4512 MB, 4512701440 bytes
255 heads, 63 sectors/track, 548 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target2/lun0/part1 1 548 4401778+ fd Linux raid autodetect

Disk /dev/scsi/host0/bus0/target3/lun0/disc: 4512 MB, 4512701952 bytes
255 heads, 63 sectors/track, 548 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target3/lun0/part1 1 548 4401778+ fd Linux raid autodetect

Disk /dev/scsi/host0/bus0/target4/lun0/disc: 4512 MB, 4512701440 bytes
255 heads, 63 sectors/track, 548 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target4/lun0/part1 1 548 4401778+ fd Linux raid autodetect

Disk /dev/scsi/host0/bus0/target5/lun0/disc: 4512 MB, 4512701440 bytes
255 heads, 63 sectors/track, 548 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target5/lun0/part1 1 548 4401778+ fd Linux raid autodetect


.p
Back to top
View user's profile Send private message
dirtyjake
n00b
n00b


Joined: 06 Jul 2002
Posts: 60

PostPosted: Wed Apr 09, 2003 5:32 pm    Post subject: Reply with quote

Well, everything looks good so far. Are you sure there was no error other than "mkraid: aborted"? Generally, there is at one error printed prior to that.

Were any of these disks part of an array before now? Here are a couple of things you can try. First, see if `mkraid --debug /dev/md0` gives any more info than just "aborted". Next, try to kill the superblocks on your RAID partitions in case that is causing a problem:

Code:

for i in b c d e f; do dd if=/dev/zero of=/dev/sd$1 count=1; done

* be absolutely sure you don't need any data on those partitions!

Retry your mkraid. If that doesn't work, try `mkraid --really-force /dev/md0` but again, be absolutely sure you don't need any data on those partitions. If that still doesn't work, add the --debug flag and report back all your --debug outputs (including the first --debug above).

good luck
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum