From: Alan Stern <stern@rowland.harvard.edu> To: tmhikaru@gmail.com Cc: Jan Kara <jack@suse.cz>, <linux-kernel@vger.kernel.org>, <linux-usb@vger.kernel.org>, Jens Axboe <axboe@kernel.dk>, <linux-scsi@vger.kernel.org>, <linux-ext4@vger.kernel.org> Subject: Re: Weird I/O errors with USB hard drive not remounting filesystem readonly Date: Tue, 24 Nov 2009 12:16:17 -0500 (EST) [thread overview] Message-ID: <Pine.LNX.4.44L0.0911241111410.2881-100000@iolanthe.rowland.org> (raw) In-Reply-To: <20091123234234.GA22126@roll> On Mon, 23 Nov 2009 tmhikaru@gmail.com wrote: > Thank you. I've gotten output of it screwing up, but it's a 62MB file. I > don't think I'm allowed to send attachments here, nor do I know what I'm > supposed to be looking for in this output. So, instead I'm putting the > (compressed) file up on my home computer. If you've got suggestions for what > I should use instead, let me know. > > http://hikaru.no-ip.info:3000/1.mon.out.xz > > Although I don't think you'll need it, I've included the dmesg output of > what happened when I ran my backup script, just in case it helps at all. Here's an annotated example of one of those hiccups: f1aa1f00 2416018820 S Bo:1:003:1 -115 31 = 55534243 07050100 00100000 80000a28 000000ae ef000008 00000000 000000 f1aa1f00 2416018929 C Bo:1:003:1 0 31 > The computer issued a READ command for 8 blocks (4096 bytes) starting at block number 0x0000aeef = 44783. d2588b00 2416019342 S Bi:1:003:2 -115 4096 < d2588b00 2416019428 C Bi:1:003:2 -32 0 f1aa1f00 2416019435 S Co:1:003:0 s 02 01 0000 0082 0000 0 f1aa1f00 2416019554 C Co:1:003:0 0 0 The drive returned 0 bytes of data. f1aa1f00 2416019560 S Bi:1:003:2 -115 13 < f1aa1f00 2416019678 C Bi:1:003:2 0 13 = 55534253 07050100 00100000 00 And then it returned a status indicating no error but 4096 bytes residue (i.e., incorrect or undelivered data). This caused the usb-storage driver to send the SCSI layer a result code of DID_ERROR with no sense data. > sd 0:0:0:0: [sda] Unhandled error code > sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00 > end_request: I/O error, dev sda, sector 44783 The DID_ERROR code caused the SCSI layer to display this error message. > sd 0:0:0:0: [sda] Unhandled error code > sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00 > end_request: I/O error, dev sda, sector 51823 I would have expected the READ to be retried, but in these two cases it wasn't. The usbmon log contained five instances of this error sequence; the other three were retried successfully. I don't know what the difference was. Alan Stern
WARNING: multiple messages have this Message-ID (diff)
From: Alan Stern <stern@rowland.harvard.edu> To: tmhikaru@gmail.com Cc: Jan Kara <jack@suse.cz>, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Jens Axboe <axboe@kernel.dk>, linux-scsi@vger.kernel.org, linux-ext4@vger.kernel.org Subject: Re: Weird I/O errors with USB hard drive not remounting filesystem readonly Date: Tue, 24 Nov 2009 12:16:17 -0500 (EST) [thread overview] Message-ID: <Pine.LNX.4.44L0.0911241111410.2881-100000@iolanthe.rowland.org> (raw) In-Reply-To: <20091123234234.GA22126@roll> On Mon, 23 Nov 2009 tmhikaru@gmail.com wrote: > Thank you. I've gotten output of it screwing up, but it's a 62MB file. I > don't think I'm allowed to send attachments here, nor do I know what I'm > supposed to be looking for in this output. So, instead I'm putting the > (compressed) file up on my home computer. If you've got suggestions for what > I should use instead, let me know. > > http://hikaru.no-ip.info:3000/1.mon.out.xz > > Although I don't think you'll need it, I've included the dmesg output of > what happened when I ran my backup script, just in case it helps at all. Here's an annotated example of one of those hiccups: f1aa1f00 2416018820 S Bo:1:003:1 -115 31 = 55534243 07050100 00100000 80000a28 000000ae ef000008 00000000 000000 f1aa1f00 2416018929 C Bo:1:003:1 0 31 > The computer issued a READ command for 8 blocks (4096 bytes) starting at block number 0x0000aeef = 44783. d2588b00 2416019342 S Bi:1:003:2 -115 4096 < d2588b00 2416019428 C Bi:1:003:2 -32 0 f1aa1f00 2416019435 S Co:1:003:0 s 02 01 0000 0082 0000 0 f1aa1f00 2416019554 C Co:1:003:0 0 0 The drive returned 0 bytes of data. f1aa1f00 2416019560 S Bi:1:003:2 -115 13 < f1aa1f00 2416019678 C Bi:1:003:2 0 13 = 55534253 07050100 00100000 00 And then it returned a status indicating no error but 4096 bytes residue (i.e., incorrect or undelivered data). This caused the usb-storage driver to send the SCSI layer a result code of DID_ERROR with no sense data. > sd 0:0:0:0: [sda] Unhandled error code > sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00 > end_request: I/O error, dev sda, sector 44783 The DID_ERROR code caused the SCSI layer to display this error message. > sd 0:0:0:0: [sda] Unhandled error code > sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00 > end_request: I/O error, dev sda, sector 51823 I would have expected the READ to be retried, but in these two cases it wasn't. The usbmon log contained five instances of this error sequence; the other three were retried successfully. I don't know what the difference was. Alan Stern
next prev parent reply other threads:[~2009-11-24 17:16 UTC|newest] Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-11-13 5:09 Weird I/O errors with USB hard drive not remounting filesystem readonly tmhikaru 2009-11-19 16:07 ` Jan Kara [not found] ` <20091120082359.GA29538@roll> [not found] ` <20091120094641.GB15422@duck.suse.cz> 2009-11-23 8:09 ` tmhikaru 2009-11-23 10:54 ` Jan Kara 2009-11-23 15:06 ` Alan Stern 2009-11-23 15:06 ` Alan Stern 2009-11-23 16:09 ` Jan Kara 2009-11-23 18:20 ` Alan Stern 2009-11-23 18:20 ` Alan Stern 2009-11-23 18:54 ` Jan Kara 2009-11-23 19:50 ` tmhikaru 2009-11-23 20:06 ` tmhikaru 2009-11-23 20:06 ` tmhikaru-Re5JQEeQqe8AvxtiuMwx3w 2009-11-23 20:33 ` Alan Stern 2009-11-23 20:33 ` Alan Stern 2009-11-23 23:42 ` tmhikaru 2009-11-23 23:42 ` tmhikaru-Re5JQEeQqe8AvxtiuMwx3w 2009-11-24 17:16 ` Alan Stern [this message] 2009-11-24 17:16 ` Alan Stern 2009-11-24 17:47 ` Boaz Harrosh 2009-11-24 19:28 ` Alan Stern 2009-11-24 19:28 ` Alan Stern 2009-11-24 19:56 ` Jan Kara 2009-11-24 20:13 ` Alan Stern 2009-11-24 20:13 ` Alan Stern 2009-11-24 20:39 ` Jan Kara 2009-11-24 21:50 ` tmhikaru 2009-11-24 22:23 ` tmhikaru 2009-11-25 8:42 ` Jan Kara 2009-11-25 9:37 ` tmhikaru 2009-11-25 16:10 ` Alan Stern 2009-11-25 16:10 ` Alan Stern 2009-11-27 9:43 ` tmhikaru 2009-11-27 13:13 ` Jan Kara 2009-11-27 17:58 ` Alan Stern 2009-11-27 17:58 ` Alan Stern 2009-11-27 17:58 ` Alan Stern 2009-11-29 4:30 ` tmhikaru 2009-11-24 18:00 ` Jan Kara
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=Pine.LNX.4.44L0.0911241111410.2881-100000@iolanthe.rowland.org \ --to=stern@rowland.harvard.edu \ --cc=axboe@kernel.dk \ --cc=jack@suse.cz \ --cc=linux-ext4@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-scsi@vger.kernel.org \ --cc=linux-usb@vger.kernel.org \ --cc=tmhikaru@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.