Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2492145imm; Sat, 9 Jun 2018 17:11:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIZxFGdzIuHX5lqPjEzt6Ib//j6YnvGm0DVY7aTfx78Qpz4l6R9x60waxmpt9k0Oor0h/R+ X-Received: by 2002:a62:494f:: with SMTP id w76-v6mr11744487pfa.152.1528589476032; Sat, 09 Jun 2018 17:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528589476; cv=none; d=google.com; s=arc-20160816; b=oQsqjP4dkly7a2KJGQJ1FwP3lN2QVPea4KRqQvWiJMuF2rsDmO/ST166M2iUmT8wHk NKARKf+SPiYeSp99K/IhTPBFFKVluoGlm6kZrUmIGfSnJ133MhKD2ecIC/ziRAqU7mo0 HIAiOb4B7jysQ+k8PyoRkJvT8h2u1qOfm+OEP2iFBL6oVbvXMp/S1VaroYIsA083dJ3H VHZn2IPrtZYtACT+Xb3gxVT8qsWXIJRdzepsUJJ2VNKwG/2Z9E4ZnRWSVqTQSHYBfvwR V22SrFkjQ4QNHZdsi6/KcCIlbWCooDwBTGNbLAw2Pddu12dbCXZwR5MPN2JY779v3u1p Xzqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:reply-to :arc-authentication-results; bh=nK+vrkkinLU3CUrkNW+0zqvL6ProXmqV8iDM5Pg0yfY=; b=YFFkJGZxPG0DEvuE3gOSsWHvMEtUf7Ciqls5nIrgivjsI9rduuwqNWl9lBnMQAOxu+ g+jSKLTNJVkAxBqm+QA5CXT26zGkuqubGN6+Vcw8svvShSIo1DcgwB6G9aztdnCnna7q 4QdVmk+co24RfQ/qos1KyskimM0CpdbXtDKTCYwWeGLxf3XrdLN8sTT37uyQ9U2BQa/U 13Jk0rtxx5SfVJ5z07/LZNHdrh30LyvFmxZz5lO/CcDv1AwnTAvFR5sg5q51TG6Ejrmj LcyxUEUzB3Du3pCYfS8p/G1VtwMVvMSaTrQgfLsMHaLiCdZ9jH+vkz6NjlFkx+N8VFRU lZ/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3-v6si58865868pld.513.2018.06.09.17.11.00; Sat, 09 Jun 2018 17:11:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753540AbeFJAKf (ORCPT + 99 others); Sat, 9 Jun 2018 20:10:35 -0400 Received: from smtp.infotech.no ([82.134.31.41]:46952 "EHLO smtp.infotech.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753231AbeFJAKd (ORCPT ); Sat, 9 Jun 2018 20:10:33 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp.infotech.no (Postfix) with ESMTP id 23900204237; Sun, 10 Jun 2018 02:10:31 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.6 (20110518) (Debian) at infotech.no Received: from smtp.infotech.no ([127.0.0.1]) by localhost (smtp.infotech.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ehu1H1OXMlAl; Sun, 10 Jun 2018 02:10:28 +0200 (CEST) Received: from [192.168.48.23] (host-45-58-196-245.dyn.295.ca [45.58.196.245]) by smtp.infotech.no (Postfix) with ESMTPA id EB68220414C; Sun, 10 Jun 2018 02:10:27 +0200 (CEST) Reply-To: dgilbert@interlog.com Subject: Re: sd 6:0:0:0: [sdb] Unaligned partial completion (resid=12, sector_sz=512) To: Christoph Anton Mitterer , Randy Dunlap , linux-kernel@vger.kernel.org, linux-scsi References: <2cbab96cfb722ef8ad8f9fe6f5060226108cf033.camel@scientia.net> From: Douglas Gilbert Message-ID: <071361b8-96c0-17cd-d1d7-61ea6357eb83@interlog.com> Date: Sat, 9 Jun 2018 20:10:25 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <2cbab96cfb722ef8ad8f9fe6f5060226108cf033.camel@scientia.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-06-09 07:50 PM, Christoph Anton Mitterer wrote: > Thanks for CCing me to the right list. > > Some further info: > > I had two disks attached via the following USB/SATA bridge (twice the > same, which in turn is connected via a USB3.0 hub): > Jun 09 23:16:11 heisenberg kernel: usb 2-2.2: new SuperSpeed USB device number 23 using xhci_hcd > Jun 09 23:16:11 heisenberg kernel: usb 2-2.2: New USB device found, idVendor=174c, idProduct=55aa > Jun 09 23:16:11 heisenberg kernel: usb 2-2.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1 > Jun 09 23:16:11 heisenberg kernel: usb 2-2.2: Product: ASMT1053 > Jun 09 23:16:11 heisenberg kernel: usb 2-2.2: Manufacturer: asmedia > Jun 09 23:16:11 heisenberg kernel: usb 2-2.2: SerialNumber: 123456789012 > Jun 09 23:16:11 heisenberg kernel: usb 2-2.2: Device is not authorized for usage > Jun 09 23:16:15 heisenberg kernel: usb-storage 2-2.2:1.0: USB Mass Storage device detected > Jun 09 23:16:15 heisenberg kernel: usb-storage 2-2.2:1.0: Quirks match for vid 174c pid 55aa: 400000 > Jun 09 23:16:15 heisenberg kernel: scsi host7: usb-storage 2-2.2:1.0 > Jun 09 23:16:15 heisenberg kernel: usb 2-2.2: authorized to connect > Jun 09 23:16:16 heisenberg kernel: scsi 7:0:0:0: Direct-Access ASMT 2105 0 PQ: 0 ANSI: 6 > Jun 09 23:16:16 heisenberg kernel: sd 7:0:0:0: Attached scsi generic sg2 type 0 > Jun 09 23:16:16 heisenberg kernel: sd 7:0:0:0: [sdc] Spinning up disk... > Jun 09 23:16:25 heisenberg kernel: ........ready > Jun 09 23:16:25 heisenberg kernel: sd 7:0:0:0: [sdc] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB) > Jun 09 23:16:25 heisenberg kernel: sd 7:0:0:0: [sdc] 4096-byte physical blocks > Jun 09 23:16:25 heisenberg kernel: sd 7:0:0:0: [sdc] Write Protect is off > Jun 09 23:16:25 heisenberg kernel: sd 7:0:0:0: [sdc] Mode Sense: 43 00 00 00 > Jun 09 23:16:25 heisenberg kernel: sd 7:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA > Jun 09 23:16:25 heisenberg kernel: sdc: sdc1 sdc2 > Jun 09 23:16:25 heisenberg kernel: sd 7:0:0:0: [sdc] Attached SCSI disk > > > The errors only occurred on one of the two disks... but few times when > I swapped the USB/SATA bridges between the two disks, because I wanted > to see whether it's the bridge which is faulty. > Since it happened with USB/SATA bridges swapped, I thought it couldn't > be that, but rather the HDD. > I tried again with the USB3.0 hub removed (and the bridges directly > connected to USB3.0 ports of the notebook)... and the errors still > appeared (on the same disk). > > > Then, they suddenly went away, and despite quite some swapping around > of bridges, cables, etc. ... it hasn't appeared again (though I stopped > copying for today some 2 hours ago). > > Another interesting fact: While I was copying in the first place, where > the error occurred quite frequently,... the data must have been read > correctly. > The fs is btrfs (so there is checksumming) and in addition I have my > own SHA512 sums, attached as XATTRs to the files, and for those that > were already copied, they verified correctly. > > > So my naive assumption would be that either I have some pretty new but > somehow weirdly failing HDD, which sometimes shows these errors and > sometimes not (yet, so far, giving the correct data)... or... > there were some (also strange) connectivity issues (maybe something > with the cables?) and when I swapped things around these got finally > "resolved". > > > So in addition to the basic question: What would the "Unaligned partial > completion" mean, I wonder: Would any errors on the USB level (or > below) show up as the block device level errors that I've seen? > And what could explain that I still got the right data out? Retries > that succeed? ECC? > > Or should I rather backup ASAP and throw the device with the error > messages away, too? Hmmm, probably yes. But before you throw it away, try running 'smartctl -a' (or 'smartctl -x') on it and record the output. Also try 'smartctl -t short' (a short self-test) on it and then re-run '-a' to see what the self-test log says. The disk should keep logs of the number of unrecovered read errors (and recovered ones as well). If the disk is only one year old, perhaps it might be covered by a warranty from the manufacturer. Doug Gilbert > On Sat, 2018-06-09 at 15:21 -0700, Randy Dunlap wrote: >> [adding linux-scsi mailing list] >> >> >> On 06/09/2018 12:23 PM, Christoph Anton Mitterer wrote: >>> Hey. >>> >>> I'm seeing these errors: >>> Jun 09 21:13:22 heisenberg kernel: sd 6:0:0:0: [sdb] Unaligned >>> partial completion (resid=16, sector_sz=512) >>> Jun 09 21:13:22 heisenberg kernel: sd 6:0:0:0: [sdb] tag#0 FAILED >>> Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE >>> Jun 09 21:13:22 heisenberg kernel: sd 6:0:0:0: [sdb] tag#0 Sense >>> Key : Medium Error [current] >>> Jun 09 21:13:22 heisenberg kernel: sd 6:0:0:0: [sdb] tag#0 Add. >>> Sense: Unrecovered read error >>> Jun 09 21:13:22 heisenberg kernel: sd 6:0:0:0: [sdb] tag#0 CDB: >>> Read(16) 88 00 00 00 00 01 cd e6 de 40 00 00 00 e0 00 00 >>> Jun 09 21:13:22 heisenberg kernel: print_req_error: critical medium >>> error, dev sdb, sector 7749426752 >>> Jun 09 21:13:31 heisenberg kernel: sd 6:0:0:0: [sdb] Unaligned >>> partial completion (resid=12, sector_sz=512) >>> Jun 09 21:13:31 heisenberg kernel: sd 6:0:0:0: [sdb] tag#0 FAILED >>> Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE >>> Jun 09 21:13:31 heisenberg kernel: sd 6:0:0:0: [sdb] tag#0 Sense >>> Key : Medium Error [current] >>> Jun 09 21:13:31 heisenberg kernel: sd 6:0:0:0: [sdb] tag#0 Add. >>> Sense: Unrecovered read error >>> Jun 09 21:13:31 heisenberg kernel: sd 6:0:0:0: [sdb] tag#0 CDB: >>> Read(16) 88 00 00 00 00 00 00 14 59 60 00 00 01 00 00 00 >>> Jun 09 21:13:31 heisenberg kernel: print_req_error: critical medium >>> error, dev sdb, sector 1333600 >>> Jun 09 21:13:53 heisenberg kernel: sd 6:0:0:0: [sdb] Unaligned >>> partial completion (resid=12, sector_sz=512) >>> Jun 09 21:13:53 heisenberg kernel: sd 6:0:0:0: [sdb] tag#0 FAILED >>> Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE >>> Jun 09 21:13:53 heisenberg kernel: sd 6:0:0:0: [sdb] tag#0 Sense >>> Key : Medium Error [current] >>> Jun 09 21:13:53 heisenberg kernel: sd 6:0:0:0: [sdb] tag#0 Add. >>> Sense: Unrecovered read error >>> Jun 09 21:13:53 heisenberg kernel: sd 6:0:0:0: [sdb] tag#0 CDB: >>> Read(16) 88 00 00 00 00 00 c3 a2 56 80 00 00 01 00 00 00 >>> Jun 09 21:13:53 heisenberg kernel: print_req_error: critical medium >>> error, dev sdb, sector 3282196096 >>> >>> (many of them) on a Seagate 8TB Archive HDD. >>> The disk is only a year old and barely used (since it's just one of >>> the >>> backups of my main data disks - and the primary disk another >>> Seagate >>> 8TB HDD broke just few days ago). >>> >>> I have connected them via USB/SATA bridge... and when I now started >>> copying from the backup (which is sdb) to a fresh HDD I started >>> seeing >>> vast numbers of these errors. >>> >>> However, fsck, cp seem to do fine, and the data (as far as it has >>> been >>> copied) seems good (I have sha512 sums of all of it). >>> >>> >>> Any ideas what "Unaligned partial completion" and these errors >>> mean? >>> >>> >>> Thanks, >>> Chris. >>> >> >> >