Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Feb 2000 23:21:33 -0800
From:      Mike Smith <msmith@freebsd.org>
To:        "Kenneth D. Merry" <ken@kdm.org>
Cc:        scsi@FreeBSD.ORG
Subject:   Re: chio trap with not-ready changer 
Message-ID:  <200003010721.XAA04319@mass.cdrom.com>
In-Reply-To: Your message of "Wed, 01 Mar 2000 00:08:08 MST." <20000301000808.A28657@panzer.kdm.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > Unfortunately, it's still failing:
> > 
> > (ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 0 1d 0 20 0
> > (ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
> > (ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
> > (ch0:ahc0:0:4:0): fatal error, failed to attach to device
> > (ch0:ahc0:0:4:0): lost device
> > (ch0:ahc0:0:4:0): removing device entry
> > 
> > I don't know whether it's necessary to clear this condition somehow...
> 
> Well, normally, issuing any command other than an inquiry will clear a
> unit attention condition.
> 
> What happens if you do something like:
> 
> camcontrol tur passN -v
> 
> Where passN is the passthrough device that attached to it?  If it returns
> errors, try it a few times in a row.
> 
> Also, it might be interesting to see what CAM status is getting returned
> each time.  The attached patch is the same as the previous patch, except
> that it will print out the CAM status, SCSI status and retry count for
> each failed command during the probe phase.

(ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 0
(ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 8 1d 0 20 0
(ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
(ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
(ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 0
(ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 0 1d 0 20 0
(ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
(ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
(ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 0 1d 0 20 0
(ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
(ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
(ch0:ahc0:0:4:0): fatal error, failed to attach to device
(ch0:ahc0:0:4:0): lost device
(ch0:ahc0:0:4:0): removing device entry
...
fnord# camcontrol tur pass0 -v
Unit is not ready
(pass0:ahc0:0:4:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(pass0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
(pass0:ahc0:0:4:0): Power on, reset, or bus device reset occurred field replaceable unit: 4
fnord# camcontrol tur pass0 -v
Unit is ready

Looks like it might want a TEST UNIT READY to clear the condition?

-- 
\\ Give a man a fish, and you feed him for a day. \\  Mike Smith
\\ Tell him he should learn how to fish himself,  \\  msmith@freebsd.org
\\ and he'll hate you for a lifetime.             \\  msmith@cdrom.com




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?200003010721.XAA04319>