Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Sep 1999 10:35:07 -0600 (MDT)
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        kris@airnet.net (Kris Kirby)
Cc:        scsi@freebsd.org
Subject:   Re: Reformatting a 520-byte-per-sector drive
Message-ID:  <199909171635.KAA57340@panzer.kdm.org>
In-Reply-To: <37E1B079.27022011@airnet.net> from Kris Kirby at "Sep 16, 1999 10:07:37 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Kris Kirby wrote...
> Kenneth D. Merry wrote:
> > Well, I neglected the fact that the length parameter in the mode page
> > header is reserved for mode select.  The above error is pointing to the
> > first byte in the parameter list.  So, try this instead:
> > 
> > camcontrol cmd da0 -v -c "15 10 0 0 c 0" -o 0xc "0 0 0 8 0 v:i3 0 v:i3" 1962030 512
> 
> This latest incantation produces:
> #root:orgy: {7} fmt.sh
> Sep 16 22:03:05 orgy /kernel: (pass0:aha0:0:6:0): CCB 0xc04992e0 - timed
> out
> Sep 16 22:03:05 orgy /kernel: aha0: ahadone - Attempt to free non-active
> ACCB 0xbf89d000
> camcontrol: error sending command
> CAM status is 0x14b
> #root:orgy: {8} Sep 16 22:03:05 orgy /kernel: aha0: ahadone - Attempt to
> free non-active ACCB 0xbf89d000
> Sep 16 22:03:08 orgy /kernel: (pass0:aha0:0:6:0): CCB 0xc04992e0 - timed
> out
> Sep 16 22:03:05 orgy /kernel: aha0: ahadone - Attempt to free non-active
> ACCB 0xbf89d000
> Sep 16 22:03:08 orgy /kernel: (pass0:aha0:0:6:0): CCB 0xc04992e0 - timed
> out
> Sep 16 22:03:08 orgy /kernel: aha0: No longer in timeout

Which command causes the errors?  The mode select or the format?

If it's the mode select, there's definitely something weird going on.  If
it's the format, you probably haven't set the timeout long enough.

> Usually the machine panics here (I think only when the id is 0). I've
> been disconnecting the drive to allow it to finish, without the machine.
> I'm using a AHA-1542B:
> aha0: AHA-1540/1542 64 head BIOS FW Rev. 1.1 (ID=41) SCSI Host Adapter,
> SCSI ID 
> 7, 16 CCBs

It would be helpful if you could send a stack trace from the panic.

> I've changed the drive's id to 6. And it _still_ thinks it has 520 byte
> sectors. :-/. Well, I've tried all that I can think of. I'm about to
> return the drives to the owner and let him deal with it.

Hmm.  Well, if the format has been able to go all the way through after you
changed the sector size, and it still thinks it has 520 byte sectors, yeah,
you may be out of luck.

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?199909171635.KAA57340>