Linux RAID subsystem development
 help / color / mirror / Atom feed
* Invalid argument when creating a RAID-0 array
@ 2003-06-14 14:53 Ari Pollak
  2003-06-14 23:02 ` Neil Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Ari Pollak @ 2003-06-14 14:53 UTC (permalink / raw)
  To: linux-raid

[Please CC me on replies]

I am currently trying to create a RAID-0 array using 5 SCSI drives with 
raidtools2 on Debian but it is failing. Any input would be appreciated. 
When I run 'mkraid /dev/md0', I get the following:

$ sudo mkraid /dev/md0
handling MD device /dev/md0
analyzing super-block
disk 0: /dev/sdb1, 4190400kB, raid superblock at 4190336kB
disk 1: /dev/sdc1, 4190400kB, raid superblock at 4190336kB
disk 2: /dev/sdd1, 4190400kB, raid superblock at 4190336kB
disk 3: /dev/sde1, 4180722kB, raid superblock at 4180608kB
disk 4: /dev/sdf1, 4190400kB, raid superblock at 4190336kB
/dev/md0: Invalid argument

Doing an strace of it gives the following reason for the Invalid argument:

open("/dev/md0", O_RDWR)                = 4
ioctl(4, 0x800c0930, 0xeffff7d8)        = -1 EINVAL (Invalid argument)
dup(2)                                  = 5
nfssvc(0x5)                             = 2
fstat64(5, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0x7001e000
_llseek(5, 0, 0xeffff4a0, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
write(5, "/dev/md0: Invalid argument\n", 27/dev/md0: Invalid argument
) = 27


Contents of my /etc/raidtab:
raiddev /dev/md0
         raid-level      0
         nr-raid-disks   5
         persistent-superblock 1
         chunk-size     4
         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
         raid-disk       4


Contents of /proc/mdstat:
Personalities : [raid0]
read_ahead not set
unused devices: <none>

kernel messages after running mkraid:
md: bind<sdb1,1>
md: bind<sdc1,2>
md: bind<sdd1,3>
md: bind<sde1,4>
md: bind<sdf1,5>
md: sdf1's event counter: 00000000
md: sde1's event counter: 00000000
md: sdd1's event counter: 00000000
md: sdc1's event counter: 00000000
md: sdb1's event counter: 00000000
too small chunk_size: 4096 < 8192
md: md0 stopped.
md: unbind<sdf1,4>
md: export_rdev(sdf1)
md: unbind<sde1,3>
md: export_rdev(sde1)
md: unbind<sdd1,2>
md: export_rdev(sdd1)
md: unbind<sdc1,1>
md: export_rdev(sdc1)
md: unbind<sdb1,0>
md: export_rdev(sdb1)



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-15  8:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-14 14:53 Invalid argument when creating a RAID-0 array Ari Pollak
2003-06-14 23:02 ` Neil Brown
2003-06-14 23:04   ` Ari Pollak
2003-06-15  8:14     ` Riley Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox