Hello,

we are trying to set up RAID1 as described in the Software-RAID-howto.

md-support is compiled into the kernel (not as module) and RAID1 too.
Raid0 ist not compiled in, because the Kernel appears to support Raid0
for swap by default (correct me, when I'm wrong). Swap is setup as RAID0
and seems to work fine.

[RAID1]
There are two partition equally sized on two different HDs:
sdb6 and sdc6 both with no filesystem on them.

[mkraid]
root@felix:~ > mkraid /dev/md0
handling MD device /dev/md0
analyzing super-block
disk 0: /dev/sdb6, 128488kB, raid superblock at 128384kB
disk 1: /dev/sdc6, 128488kB, raid superblock at 128384kB
mkraid: aborted, see the syslog and /proc/mdstat for potential clues.

There is no message in the syslog.
[/proc/mdstat]
root@felix:~ > cat /proc/mdstat
Personalities : [3 raid1]
read_ahead not set
md0 : inactive
md1 : inactive
md2 : inactive
md3 : inactive

What does 'read_ahead not set' mean?

[/etc/raidtab]
# Diese Datei steuert das Software-Raid System auf Felix!!!
# Also, vorsichtig damit :-)
# Aufgesetzt am: 14.9.1999
# Aufgesetzt von: Andi Guldner ([EMAIL PROTECTED])
 
# Wie soll unser neuen Device denn heissen?
raiddev /dev/md0
 
# Raid 1 soll gefahren werden!
raid-level 1
 
# Wieviel Partitionen nehmen am Raid teil?
nr-raid-disks 2
 
# Wieviele Ersatzpartitionen gibt es?
# (IMMER 0 bei Raid 1!)
nr-spare-disks 0
 
chunk-size 4
persistent-superblock 1
# So, jetzt sage ich Dir, welche Partitionen mitmachen...
device /dev/sdb6
 raid-disk 0
 
device /dev/sdc6
 raid-disk 1
 

I tried to strace mkraid and it seems to have problems with the device:
------------cut--------------
open("/dev/md0", O_RDONLY)              = 4
ioctl(4, 0x40480923, 0x8051710)         = -1 EINVAL (Invalid
argument)write(2, "mkraid: aborted, see the syslog "..., 70mkraid:
aborted, see the syslog and /proc/mdstat for potential clues.
) = 70
close(3)                                = 0
munmap(0x4000d000, 4096)                = 0
munmap(0x4000e000, 4096)                = 0
_exit(1)                                = ?


Any help would be appreciated, cause were stuck.
TIA,  :)

-rolf

Reply via email to