From owner-freebsd-scsi@FreeBSD.ORG Thu Jan 9 07:37:03 2014 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CD1855ED for ; Thu, 9 Jan 2014 07:37:03 +0000 (UTC) Received: from mail-ie0-x22a.google.com (mail-ie0-x22a.google.com [IPv6:2607:f8b0:4001:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9888C1628 for ; Thu, 9 Jan 2014 07:37:03 +0000 (UTC) Received: by mail-ie0-f170.google.com with SMTP id tq11so2456341ieb.1 for ; Wed, 08 Jan 2014 23:37:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=r2NUFq/YEoDlwOqEie7qEQOKrIHbLjJEugIVLc9Mptg=; b=cCMKg40qWqkSGo0nMBgENgSIm5G/ipERZxk+SUGIwpufI48AvckxG6mX4q/Fz7gA40 rDNyViHFnAi+8T+h/xsYdtstFSG0e/m283RY55wUHM/KDUsN9w8jlLyXTHOcpIXNWZm8 RxJdTQTLKWCS5dQovfuQJBLJj1YWvOuhWrEQkywWmLa7m0If4LnFhYlE5WcMXRduULs/ UBp8Da3yZZ5mzu7F8PoNwO8BzJP9hMDJknt2tJGb1GtBrPiw7l9pXHoYh/sQoNj1Bn2+ /59swc0pse3Rzgc7tCvq9g4mhWk07V8ReiPDZl3s6OWkwfG9O6hBQ+oc0hXZKltplYfN N+Nw== MIME-Version: 1.0 X-Received: by 10.43.74.198 with SMTP id yx6mr1161315icb.40.1389253023064; Wed, 08 Jan 2014 23:37:03 -0800 (PST) Sender: benlaurie@gmail.com Received: by 10.64.225.103 with HTTP; Wed, 8 Jan 2014 23:37:02 -0800 (PST) In-Reply-To: References: <84D23688-DDC6-421E-9D21-3DA646229038@scsiguy.com> Date: Thu, 9 Jan 2014 07:37:02 +0000 X-Google-Sender-Auth: rQ5jM0A_6Ad3du4O9LMe01tC9uY Message-ID: Subject: Re: Dropped interrupts From: Ben Laurie To: "Justin T. Gibbs" Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Cc: freebsd-scsi@freebsd.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jan 2014 07:37:04 -0000 On 8 January 2014 06:44, Ben Laurie wrote: > On 7 January 2014 18:11, Justin T. Gibbs wrote: >> On Jan 7, 2014, at 12:36 AM, Ben Laurie wrote: >> >>> Attached. >>> >>> On 7 January 2014 05:46, Justin T. Gibbs wrote: >>>> On Jan 6, 2014, at 3:01 PM, Ben Laurie wrote: >>>> >>>>> Not subscribed to the list, so please cc on replies. >>>>> >>>>> I'm using Bacula with an LTO-2 SCSI drive. >>>>> >>>>> With increasing frequency lately, I've been getting errors like this >>>>> from bacula: >>>>> >>>>> backup-sd JobId 13092: Error: block.c:608 Write error at 23:6772 on >>>>> device "Ultrium" (/dev/nsa0). ERR=3DOperation not permitted. >>>>> >>>>> Associated with this, I see in dmesg: >>>>> >>>>> ahc0: Recovery Initiated >>>>> >>>>> [a lot of dump info, including=85] >>>> >>>> If you provide the dump info, I may be able to tell you why recovery i= s starting. >>>> >>>> The dmesg information from a boot of the system would be good to have = too. >>>> >>>> =97 >>>> Justin >> >> The target is keeping us in command phase for some reason. No parity or= other >> errors are being reported. My guess is that the tape drive does not lik= e the command >> that was issued for some reason. >> >> Attached are two totally untested/uncompiled changes for you to try out.= The first >> should give more information about the command that timed out so we can = better >> determine if it is well formed. The second is an attempted fix for spur= ious >> =93Interrupts may not be functioning=94 warnings. Can you attempt to re= plicate this >> again with these changes? > > Rebuilding now - you had a ; missing in the patch :-) > > Of course, now I've done this, it'll not fail for a month (its been > failing multiple times per day recently, but on average its a lot > rarer than that!). > > Will let you know when I get a fresh failure. As predicted, it has now done 3 complete tapes with no problems, and is on the fourth.