If your command line really was "mkraid /dev/md0" try "mkraid --really-force /dev/md0".
A message like "All data on /dev/md0 will be destroyed..." will be given and after a 
few seconds the raid will be initialized.
Seems that noone read the manpage of mkraid or the readme of the 0.90 raidtools.

Greetings, Dietmar

>----- Urspr�ngliche Nachricht -----
>Absender: [EMAIL PROTECTED]
>Betreff: Can't get started with raid 1
>Empf�nger: [EMAIL PROTECTED]
>Datum: 13. Apr 1999 00:45
>
> I built 2.2.5 (and 2.2.3, and 2.0.35 and 2.0.36) and am having no luck
> getting started.  With 2.2.5 (no kernel patches -- can't find any that
> apply or can be applied -- in fact all patching of these kernels failed for
> me..??)  So, what am I doing wrong?  It must be something simple since I
> haven't even started yet, right???  Thanks for all help and suggestions!
> 
> -- Joe Beauchamp
> 
> mkraid /dev/md0
> 
> handling MD device /dev/md0
> analyzing super-block
> disk 0: /dev/hdb2, 1967962kB, raid superblock at 1967872kB
> disk 1: /dev/hdb3, 1911735kB, raid superblock at 1911616kB
> mkraid: aborted
> -------------------
> I keep getting this aborted -- the IOCTL fails...
> 
> strace shows:  (on slackware)
> 
> read(5, "/dev/hda1 / ext2 rw 0 0\n/dev/hd"..., 4096) = 75
> read(5, "", 4096)                       = 0
> close(5)                                = 0
> munmap(0x400ca000, 4096)                = 0
> _llseek(0x4, 0, 0x400, 0xbfffe730, 0)   = 0
> read(4, "\377\377\377\377\377\377\377\377"..., 1024) = 1024
> _llseek(0x4, 0, 0x74ad0000, 0xbfffe730, 0) = 0
> read(4, "\232\303\f\335\353\32.\356u\10H5"..., 4096) = 4096
> close(4)                                = 0
> open("/dev/md0", O_RDONLY)              = 4
> ioctl(4, 0x40480923, 0x804f758)         = -1 EINVAL (Invalid argument)
> write(2, "mkraid: aborted\n", 16mkraid: aborted
> )       = 16
> close(3)                                = 0
> munmap(0x40008000, 4096)                = 0
> _exit(1)                                = ?
> ---------------------------------------------
> /etc/raidtab is:
> 
> # Sample raid-1 configuration
> raiddev                 /dev/md0
> raid-level              1
> nr-raid-disks           2
> nr-spare-disks          0
> chunk-size              4
> persistent-superblock   1    # set this to 1 if you want autostart,
> 
> device                  /dev/hdb2
> raid-disk               0
> 
> device                  /dev/hdb3
> raid-disk               1
> 
> 
> ___________________________________________________________________
>  Joe Beauchamp -- CIO, Interactive Commerce Group -- (610) 768-1444
> 

Reply via email to