Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Aug 1999 15:05:14 -0600 (MDT)
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        walton@nordicrecords.com
Cc:        freebsd-scsi@FreeBSD.ORG
Subject:   Re: Adaptec AEC-4412 SCSI-SCSI RAID
Message-ID:  <199908052105.PAA05911@panzer.kdm.org>
In-Reply-To: <19990805204226.21354.qmail@modgud.nordicrecords.com> from Dave Walton at "Aug 5, 1999 01:40:45 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Dave Walton wrote...
> On 3 Aug 99, at 20:49, Kenneth D. Merry wrote:
> 
> > Dave Walton wrote...
> > > 
> > > And here's what I see in dmesg:
> > > 
> > >   (ahc0:0:0): "Adaptec AEC-4412BS 1.2." type 0 fixed SCSI 2
> > >   sd0(ahc0:0:0): Direct-Access 8999MB (70420800 134 byte 
> > > sectors)
> > > 
> > > The problem?  The array on LUN 0 has a capacity of 34381MB, not 
> > > 8999MB.  For some reason, it's reporting 134 byte sectors, instead 
> > > of the standard 512 byte sectors (which would produce the correct 
> > > disk size).  What could be causing this, and how can I correct it?
> > 
> > If you want to change the sector size, edit mode page 3.  To find out how
> > to edit mode pages, read the scsi(8) man page.
> 
> Well, that was an adventure in confusion.  The man page is not 
> entirely helpful for someone who has never even heard of mode 
> pages before.  Anyway, I figured out that
>   scsi -f /dev/rsd0.ctl -m 3
> was probably a good place to start.  That gave me:
> 
>   Tracks per Zone:  0
>   Alternate Sectors per Zone:  0
>   Alternate Tracks per Zone:  0
>   Alternate Tracks per Logical Unit:  0
>   Sectors per Track:  128
>   Data Bytes per Physical Sector:  512
>   Interleave:  0
>   Track Skew Factor:  0
>   Cylinder Skew Factor:  0
>   SSEC:  0
>   HSEC:  1
>   RMB:  0
>   SURF:  0
> 
> But what's this?  512 bytes per sector?  Why does it say 512 here, 
> but 134 whenever I try to access the device (see below).

I don't know.  You might ask Adaptec.

> > > Another thing I notice is that I cannot seem to access sd0 with 
> > > anything.  Any attempt returns "Device not configured".  
> > > Suggestions?
> > 
> > It may have something to do with the sector size, though.  I dunno for
> > sure.
> 
> I'm pretty sure that's it.  I notice that every time I try to access sd0 
> with fdisk or whatever else, /var/log/messages gets an entry saying:
>   /kernel: sd0: Can't deal with 134 bytes logical blocks
> That's pretty conclusive for that part of the puzzle.  

Yeah, that's why you can't talk to the disk.  The sd driver gets the sector
size from the SCSI READ CAPACITY command.

> Any other suggestions?

You might try booting with a 3.2 boot floppy, just to see if it comes up
with the same sector size.

This really sounds like a configuration issue of some sort.  If the 3.2
floppy doesn't come up with the correct information, you'll probably need
to talk to Adaptec tech support or something.

If the array insists on reporting bogus parameters, there's not much we can
do on the FreeBSD side of things.

Ken
-- 
Kenneth Merry
ken@kdm.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908052105.PAA05911>