From owner-freebsd-stable@FreeBSD.ORG Sat Jul 11 15:05:14 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3A251065670 for ; Sat, 11 Jul 2009 15:05:14 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out0.tiscali.nl (smtp-out0.tiscali.nl [195.241.79.175]) by mx1.freebsd.org (Postfix) with ESMTP id 5E9F08FC17 for ; Sat, 11 Jul 2009 15:05:14 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [212.123.145.58] (helo=sjakie.klop.ws) by smtp-out0.tiscali.nl with esmtp id 1MPe8X-0007qF-4s; Sat, 11 Jul 2009 17:05:13 +0200 Received: from 82-170-177-25.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id DF09AA2A9; Sat, 11 Jul 2009 17:05:11 +0200 (CEST) Date: Sat, 11 Jul 2009 17:05:11 +0200 To: "Henri Hennebert" , "Ronald Klop" From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <4A54727D.9080205@restart.be> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <4A54727D.9080205@restart.be> User-Agent: Opera Mail/9.64 (FreeBSD) Cc: "freebsd-stable@freebsd.org" Subject: Re: Zfs on usb-disk checksum errors? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jul 2009 15:05:15 -0000 On Wed, 08 Jul 2009 12:18:37 +0200, Henri Hennebert wrote: > Ronald Klop wrote: >> Hi. >> I put zfs on my external usb-disk, so I can backup my harddisk with >> zfs send/receive. >> I now have corruption on this volume. >> [root@sjakie ~]# zpool status -v >> pool: extern >> state: ONLINE >> status: One or more devices has experienced an error resulting in data >> corruption. Applications may be affected. >> action: Restore the file in question if possible. Otherwise restore the >> entire pool from backup. >> see: http://www.sun.com/msg/ZFS-8000-8A >> scrub: scrub completed after 0h2m with 0 errors on Wed Jul 8 00:35:09 >> 2009 >> config: >> NAME STATE READ WRITE CKSUM >> extern ONLINE 1 0 0 >> da0 ONLINE 9 0 0 >> errors: Permanent errors have been detected in the following files: >> <0x3f>:<0xf5d6> >> I don't really understand which files have corruption. :-( >> In my syslog is this: (repeated quite often) >> Jul 8 10:00:37 sjakie kernel: (da0:umass-sim0:0:0:0): SYNCHRONIZE >> CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 >> Jul 8 10:00:37 sjakie kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI >> Status Error >> Jul 8 10:00:37 sjakie kernel: (da0:umass-sim0:0:0:0): SCSI Status: >> Check Condition >> Jul 8 10:00:37 sjakie kernel: (da0:umass-sim0:0:0:0): ILLEGAL REQUEST >> asc:20,0 >> Jul 8 10:00:37 sjakie kernel: (da0:umass-sim0:0:0:0): Invalid command >> operation code >> Jul 8 10:00:37 sjakie kernel: (da0:umass-sim0:0:0:0): Unretryable error >> > I experience the same error with 'Kingston DataTraveler II 1.13'. I > simply add in /usr/src/sys/dev/usb/usbdevs: > > product KINGSTON DATATRAVELER_2 0x1600 DAtaTraveler II > > (VENDOR was already in the file). > > and in sys/dev/usb/storage/umass.c: > > { USB_VENDOR_KINGSTON, USB_PRODUCT_KINGSTON_DATATRAVELER_2, > RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, > NO_SYNCHRONIZE_CACHE }, > Note the flag NO_SYNCHRONIZE_CACHE and everything return to normal. > > PS - I encounter this problem on 7.2_STABLE with the MFC of ZFS v13. > > Henri Thanks a lot. I owe you a beer! It works great now. Ronald.