I try to set up a RAID 1 mirror made up of 2 SCSI drives 4MB each.

The drives are connected to te system via an AIC78xx controller that
works just fine with single disks. Each disk has one singe partition
that covers the whole disk. According to the Software-RAID HOWTO, 
i changed the patition type of both disks to 'fd' = Linux RAID.
The disk patitions were wiped completetly, so 'mkraid' doesn't
complain about existing file systems.

There is a /etc/raidtab as follows

raiddev /dev/md0
          raid-level            1
          nr-raid-disks         2
          nr-spare-disks        0
          chunk-size            4k
          persistent-superblock 1
          device                /dev/sda1
          raid-disk             0
          device                /dev/sdb1
          raid-disk             1

The kernel is 2.2.13 built with static RAID support. 
Inspecting /proc/mdstat shows

Personalities : [1 linear] [2 raid0] [3 raid1] [4 raid5]
read_ahead not set
md0 : inactive
md1 : inactive
md2 : inactive
md3 : inactive

Now i try to run mkraid (Version 0.9): mkraid /dev/md0

it dies like this:
--------------
handling MD device /dev/md0
analyzing super-block
mkraid: aborted, see the syslog and /proc/mdstat for potential clues.
--------------

Of couse, neither /dev/mdstat nor syslog show _anything_.

Next step was to make mkraid a little more verbose by adding abort 
messages. So i got this:
---------------
handling MD device /dev/md0
analyzing super-block
     major_version:      0
     minor_version:      90
     patch_version:      0
             ctime:      946913315
             level:      1
              size:      0
          nr_disks:      2
        raid_disks:      2
          md_minor:      0
             utime:      946913315
             state:      0
      active_disks:      2
     working_disks:      2
      failed_disks:      0
       spare_disks:      0
            layout:      0
        chunk_size:      4096

            number:      0
             major:      8
             minor:      1
         raid_disk:      0
             state:      6

            number:      1
             major:      8
             minor:      17
         raid_disk:      1
             state:      6
makeOneRaid: ioctl SET_ARRAY_INFO failed: Invalid argument
mkraid: aborted, see the syslog and /proc/mdstat for potential clues.
-------------

Ha, the ioctl call to SET_ARRAY_INFO is broken !
Can anybody please tell me, what i might have done wrong ?

Regards, Andreas

P.S: __Please__ reply directly tom my email address rather than the
     list, as i currently have difficulties in getting the list
-- 

Dr. Andreas G. Schindler        c/o Alpha Zero One Computersysteme GmbH
[EMAIL PROTECTED]                Frankfurter Str. 141, D-63303 Dreieich
Tel +49 6103 936018             Germany

Reply via email to