Hi,

when I try to (re)start a Raid0 device after a raidstop, I get the
following error message:

# mkraid  --xxxxxxxxxxx  /dev/md2
  (xxxxxxxxxx is the option that you may not mention in emails :-)
DESTROYING the contents of /dev/md2 in 5 seconds, Ctrl-C if unsure!
handling MD device /dev/md2
analyzing super-block
disk 0: /dev/sda7, 1985520kB, raid superblock at 1985408kB
disk 1: /dev/sdb7, 1985520kB, raid superblock at 1985408kB
huh9???
bind<sda7,1>
nonpersistent superblock ...
bind<sdb7,2>
nonpersistent superblock ...
mask fffffff0
 rdev->size: 1985520
 masked rdev->size: 1985520
  new md_size: 1985520
 rdev->size: 1985520
 masked rdev->size: 1985520
  new md_size: 3971040
raid0: looking at sda7
raid0:   comparing sda7(1985520) with sda7(1985520)
raid0    END
raid0:   ==> UNIQUE
raid0: 1 zones
raid0: looking at sdb7
raid0:   comparing sdb7(1985520) with sda7(1985520)
raid0    EQUAL
raid0: FINAL 1 zones
zone 0
 checcking sda7 ... contained as device 0
 (1985520) is smallest!.
 checcking sdab ... contained as device 1
 zone->nb_dev: 2, size: 3971040
current zone offset: 1985520
raid0 : md_size is 3971040 blocks.
raid0 : conf->smallest->size is 3971040 blocks.
raid0 : nb_zone is 1.
raid0 : Allocating 8 bytes for hash.
# raidstop /dev/md2
marking sb clean...
unbind<sdb7,1>
export_rdev(sdb7)
unbind<sdba,0>
export_rdev(sda7)
# raidstart /dev/md2
(read) sda7's offset: 1985408
md: invalid raid superblock magic on sda7
md: sda7 has invalid sb, marking faulty!
can not autostart based on faulty sda7!
export_rdev(sda7)
autostart sda7 failed!
/dev/md2: Invalid argument 

------------
some remarks: obviously two different offsets (1985520 and 1985408)
              come into play

              the bind an unbind arguments do not match

              the "huh9???" line is puzzling. This might be a truncated
              file name of an earlier filesystem on /dev/sda7.

Im am runnung raidtools vers 0.90 on linux 2.0.35

Here is my /etc/raidtab:

raiddev /dev/md0
    raid-level                1
    nr-raid-disks             2
    nr-spare-disks            0
    chunk-size                128

    device                    /dev/sda5
    raid-disk                 0
    device                    /dev/sdb5
    raid-disk                 1

raiddev /dev/md1
    raid-level                1
    nr-raid-disks             2
    nr-spare-disks            0
    chunk-size                128
                                   
raiddev /dev/md2
    raid-level                0
    nr-raid-disks             2
    nr-spare-disks            0
    chunk-size                16

    device                    /dev/sda7
    raid-disk                 0
    device                    /dev/sdb7
    raid-disk                 1

------------------------

Any hints?

Cheers, Thomas

Reply via email to