Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2482480imm; Sat, 9 Jun 2018 16:56:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIbTwgwjtqigfIPArit6PhIb1IgxsIvIPioAM5R/m8XXb+BNJYBlzlUjCJrk7pehCHOtpz3 X-Received: by 2002:a62:2394:: with SMTP id q20-v6mr11719828pfj.1.1528588576611; Sat, 09 Jun 2018 16:56:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528588576; cv=none; d=google.com; s=arc-20160816; b=ssbtR5qIhXUohNz7Q9Exakyebitnkp6cEGOjNNSE+Isn2DSXdE/gLriKm88+taqdcb gp4iT6NMMzVjTCu2Mzu/BAakJjxyNYZXqA1xwdW0jWHz8KvgPuGbJDJuxF3/+nvWLSO2 fcxS8HBsi+R52tk2nloaGtSHbnIoftdbGwoM4yDQOS4cGiFXfxP+UN5Wl2pBJi+5UvJb jbzZO4SAZYu1uc6iCfSUADuVqSYuvPoMLb4gz5jRCbB9DfnXoynOK9wU4FgMnVlFM8D9 t4HohYllNZDLaCEo2IfUSn48fUckyuhfXcHA0ZjBIGpvg8J5hqCeN/++LvGP9gMvn+6E YmjA== 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:mime-version :references:in-reply-to:date:to:from:subject:message-id :arc-authentication-results; bh=mQBFs76gHxHCRE5aNfDhow/aWEfFLipCYyafzGPXNG4=; b=KPgKPJAlgyof4p90VvL+f7BCyXNa3+vcU43X6VSkpYmxGsv2kb/FhkilqZCFrGwUC+ 3JJU1uJelLADdXBoomDqNOA0V4cp1RGPiCoiO3uu59x9uM3R+5F9qw8Cn/Z7B6YgS2dk tn5Q17nilKupFO19lX99X/QMllpFZPsaMfNeWxGU0eAB3HTAcTPNb7w8sAX8psO7+Hw7 2HlqB0Oq+Hcdiad/ejzDcFliSX2j43K/YTKtHhsRGw/hHHwJ0p0fHddwPHRQ4hsujrsS 8047/e+dF+VzziPpQbDDxXkzvYfWshv4whdcbFMz5w9/KX4GSs1hU7Do/cQ4mWMbVIlP TLwQ== 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 v199-v6si33184848pgb.87.2018.06.09.16.56.02; Sat, 09 Jun 2018 16:56:16 -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 S1753547AbeFIXuc (ORCPT + 99 others); Sat, 9 Jun 2018 19:50:32 -0400 Received: from mailgw-02.dd24.net ([193.46.215.43]:35279 "EHLO mailgw-02.dd24.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753516AbeFIXub (ORCPT ); Sat, 9 Jun 2018 19:50:31 -0400 Received: from mailpolicy-01.live.igb.homer.key-systems.net (mailpolicy-01.live.igb.homer.key-systems.net [192.168.1.26]) by mailgw-02.dd24.net (Postfix) with ESMTP id DB9DE5FC40; Sat, 9 Jun 2018 23:50:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mailpolicy-01.live.igb.homer.key-systems.net Received: from mailgw-02.dd24.net ([192.168.1.36]) by mailpolicy-01.live.igb.homer.key-systems.net (mailpolicy-01.live.igb.homer.key-systems.net [192.168.1.25]) (amavisd-new, port 10236) with ESMTP id xvO7miEpDBC7; Sat, 9 Jun 2018 23:50:27 +0000 (UTC) Received: from [192.168.0.102] (p54B6DCC8.dip0.t-ipconnect.de [84.182.220.200]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailgw-02.dd24.net (Postfix) with ESMTPSA; Sat, 9 Jun 2018 23:50:27 +0000 (UTC) Message-ID: <2cbab96cfb722ef8ad8f9fe6f5060226108cf033.camel@scientia.net> Subject: Re: sd 6:0:0:0: [sdb] Unaligned partial completion (resid=12, sector_sz=512) From: Christoph Anton Mitterer To: Randy Dunlap , linux-kernel@vger.kernel.org, linux-scsi Date: Sun, 10 Jun 2018 01:50:27 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.2-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Thanks, Chris. 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. > > > >