Thank-you.  This solved the problem.

I just found a very old FAQ that lists this problem.  It's
specific to SPARCs, where Sun writes the diskinfo in the first
1K of the disk, and raidtools then overwrites that.

I think this should get added to the "Pitfalls" section of the
newer HOWTO at ostenfeld.dk.  


-Robb







On Tue, Dec 21, 1999 at 01:28:39AM +0000, [EMAIL PROTECTED] wrote:
> try starting all your partitions at cyl 1 instead of 0. (ie- leave first cyl
> unused)
> 
> allan
> 
> 
> Robert Dubinski <[EMAIL PROTECTED]> said: 
> 
> > 
> > Hi,
> > 
> > I'm trying to set up a RAID-0 device over three disks in a Sparc
> > Storage Array with RedHat 6.1/SPARC, but am having a problem.  I
> > searched the archives of this list and couldn't find a solution or
> > a thread on this particular problem.
> > 
> > mkraid works fine, as well as the formatting and mounting of my
> > md0 device.  I can raidstop and raidstart the device all I
> > want, and /proc/mdstat happily reports the devices existence.  
> > >From what I can see, it works fine...until I reboot:
> > 
> > At a reboot, when the disks are checked, the latter two in the
> > RAID complain about "bad magic".  The md0 device doesn't come
> > online, and when I go to fdisk the latter two disks...the
> > disklabel and partition info have vanished.
> > 
> > I tried a number of things, such as toggling auto-detection  and
> > removing the persistent-superblock mode, but to no avail: I always
> > get the "bad magic" error upon reboot.
> > 
> > First, my raidtab:
> > 
> > #
> > raiddev /dev/md0
> > raid-level 0
> > nr-raid-disks 3
> > persistent-superblock 1
> > chunk-size 8
> > device /dev/sdc5
> > raid-disk 0
> > device /dev/sdm5
> > raid-disk 1
> > device /dev/sdw5
> > raid-disk 2
> > #
> > 
> > My partition table format:
> > 
> > Disk /dev/sdc (Sun disk label): 19 heads, 80 sectors, 2733 cylinders
> > Units = cylinders of 1520 * 512 bytes
> > 
> >    Device Flag    Start       End    Blocks   Id  System
> > /dev/sdc3  u          0      2733   2077080    5  Whole disk
> > /dev/sdc5             0      2733   2077080   83  Linux native
> > 
> > (when I toggled autodetection, I changed it to fd as the HOWTO
> > mentions).
> > 
> > And lastly, the 'dmesg' upon bootup:
> > 
> > Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdn at scsi1, channel 3, id 2, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0418
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdo at scsi1, channel 3, id 3, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0418
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdp at scsi1, channel 3, id 4, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0420
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdq at scsi1, channel 4, id 0, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0418
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdr at scsi1, channel 4, id 1, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0418
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sds at scsi1, channel 4, id 2, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0418
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdt at scsi1, channel 4, id 3, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0418
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdu at scsi1, channel 4, id 4, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0418
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdv at scsi1, channel 5, id 0, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0418
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdw at scsi1, channel 5, id 1, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0418
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdx at scsi1, channel 5, id 2, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0418
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdy at scsi1, channel 5, id 3, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0418
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdz at scsi1, channel 5, id 4, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0418
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdaa at scsi1, channel 6, id 0, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0418
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdab at scsi1, channel 6, id 1, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0418
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdac at scsi1, channel 6, id 2, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0418
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdad at scsi1, channel 6, id 3, lun 0
> >   Vendor: SEAGATE   Model: ST32550W SUN2.1G  Rev: 0418
> >   Type:   Direct-Access                      ANSI SCSI revision: 02
> > Detected scsi disk sdae at scsi1, channel 6, id 4, lun 0
> > scsi : detected 1 SCSI cdrom 31 SCSI disks total.
> > esp0: target 6 asynchronous
> > Uniform CDROM driver Revision: 2.56
> > esp0: target 0 [period 100ns offset 15 20.00MHz FAST-WIDE SCSI-II]
> > SCSI device sda: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdb: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdc: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdd: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sde: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdf: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdg: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdh: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdi: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdj: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdk: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdl: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdm: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdn: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdo: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdp: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdq: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdr: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sds: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdt: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdu: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdv: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdw: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdx: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdy: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdz: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0 GB]
> > SCSI device sdaa: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0
> GB]
> > SCSI device sdab: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0
> GB]
> > SCSI device sdac: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0
> GB]
> > SCSI device sdad: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0
> GB]
> > SCSI device sdae: hdwr sector= 512 bytes. Sectors= 4194995 [2048 MB] [2.0
> GB]
> > sunhme.c:v1.10 27/Jan/99 David S. Miller ([EMAIL PROTECTED])
> > eth0: HAPPY MEAL (SBUS) 10/100baseT Ethernet 08:00:20:82:7a:21 
> > Partition check:
> >  sda: sda1 sda2 sda3
> >  sdb: sdb3 sdb5
> >  sdc: sdc3 sdc5
> >  sdd: sdd3 sdd5
> >  sde: sde3 sde5
> >  sdf: sdf3 sdf5
> >  sdg: sdg3 sdg5
> >  sdh: sdh3 sdh5
> >  sdi: sdi3 sdi5
> >  sdj: sdj3 sdj5
> >  sdk: sdk3 sdk5
> >  sdl: sdl3 sdl5
> >  sdm:Dev 08:c0 Sun disklabel: bad magic 0000
> >  unknown partition table
> >  sdn: sdn3 sdn5
> >  sdo: sdo3 sdo5
> >  sdp: sdp3 sdp5
> >  sdq: sdq3 sdq5
> >  sdr: sdr3 sdr5
> >  sds: sds3 sds5
> >  sdt: sdt3 sdt5
> >  sdu: sdu3 sdu5
> >  sdv: sdv3 sdv5
> >  sdw:Dev 41:60 Sun disklabel: bad magic 0000
> >  unknown partition table
> >  sdx: sdx3 sdx5
> >  sdy: sdy3 sdy5
> >  sdz: sdz3 sdz5
> >  sdaa: sdaa3 sdaa5
> >  sdab: sdab3 sdab5
> >  sdac: sdac3 sdac5
> >  sdad: sdad3 sdad5
> >  sdae: sdae3 sdae5
> > md.c: sizeof(mdp_super_t) = 4104
> > VFS: Mounted root (ext2 filesystem) readonly.
> > Adding Swap: 404304k swap-space (priority -1)
> > (read) sdc5's sb offset: 2076992 [events: 0000000e]
> > blkdev_open() failed: -6
> > md: could not lock sdm5, zero-size? Marking faulty.
> > could not import sdm5, trying to run array nevertheless.
> > blkdev_open() failed: -6
> > md: could not lock sdw5, zero-size? Marking faulty.
> > could not import sdw5, trying to run array nevertheless.
> > autorun ...
> > considering sdc5 ...
> >   adding sdc5 ...
> > created md0
> > bind<sdc5,1>
> > running: <sdc5>
> > now!
> > sdc5's event counter: 0000000e
> > md0: former device sdm5 is unavailable, removing from array!
> > md0: former device sdw5 is unavailable, removing from array!
> > mask fffffff8
> >  rdev->size: 2076992
> >  masked rdev->size: 2076992
> >   new md_size: 2076992
> > md0: max total readahead window set to 384k
> > md0: 3 data-disks, max readahead per data-disk: 128k
> > md: md0, array needs 3 disks, has 1, aborting.
> > raid0: disks are not ordered, aborting!
> > pers->run() failed ...
> > do_md_run() returned -22
> > unbind<sdc5,0>
> > export_rdev(sdc5)
> > md0 stopped.
> > ... autorun DONE.
> > eth0: Auto-Negotiation unsuccessful, trying force link mode
> > eth0: Link has been forced up using internal transceiver at 10Mb/s, Half
> Duplex.
> > 
> > 
> > Can anyone help me?  I think this is something easy, but I just
> > don't see what I'm doing wrong.
> > 
> > 
> > Thanks much,
> > 
> > 
> > -Robb
> > 
> > 
> > 
> 
> 

-- 
---                                 \*/                                      ---
Robert S. Dubinski, Computer Systems Technician, MSCS Dept. Marquette University
    Email: [EMAIL PROTECTED]  Web: http://www.mscs.mu.edu/~tech
---            "The NC was not dead, just Linux-impaired"  --Me               ---

Reply via email to