Hi,

I'm trying to create a linear RAID of two loopback devices. The code in the
standard 2.2.13 kernel acted very strangely, (sometimes it worked, mostly it
didn't) so I downloaded the raid0145-19990824-2.2.11 patch, and raidtools of
the same date.

However, I can't create /dev/md0 with the new raidtools... Can anyone spot
any errors here?


</scratch/raidtools-0.90> # cat ./raidtab
raiddev /dev/md0
    raid-level                linear
    nr-raid-disks             2
    persistent-superblock     1
    device                    /dev/loop0
    raid-disk                 0
    device                    /dev/loop1
    raid-disk                 1
    
</scratch/raidtools-0.90> # ./mkraid -c raidtab /dev/md0
handling MD device /dev/md0
analyzing super-block
disk 0: /dev/loop0, 563200kB, raid superblock at 563136kB
disk 1: /dev/loop1, 102400kB, raid superblock at 102336kB
/dev/md0: Invalid argument
</scratch/raidtools-0.90> #


Looking at an strace, this seems to be the problem:

open("/dev/md0", O_RDWR)                = 4
ioctl(4, 0x400c0930, 0xbffff61c)        = -1 EINVAL (Invalid argument)


  - Patrik Rådman

Reply via email to