From owner-freebsd-current@FreeBSD.ORG Tue Jan 22 18:09:37 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7B4B5825; Tue, 22 Jan 2013 18:09:37 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id 2F164A20; Tue, 22 Jan 2013 18:09:36 +0000 (UTC) Received: from localhost (global-1-11.nat.csx.cam.ac.uk [131.111.184.11]) by mail.dawidek.net (Postfix) with ESMTPSA id 836BAAEB; Tue, 22 Jan 2013 19:07:02 +0100 (CET) Date: Tue, 22 Jan 2013 19:10:12 +0100 From: Pawel Jakub Dawidek To: Alexander Nedotsukov Subject: Re: ZFS + usb in trouble? Message-ID: <20130122181012.GD1714@garage.freebsd.pl> References: <20130121205851.GB1341@garage.freebsd.pl> <20130121211718.GD1341@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T7mxYSe680VjQnyC" Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Current , hselasky@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2013 18:09:37 -0000 --T7mxYSe680VjQnyC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 22, 2013 at 11:47:29PM +0900, Alexander Nedotsukov wrote: > Hi Pawel, >=20 > Here what I did. >=20 > # geli onetime -a hmac/sha1 -s 4096 /dev/da5=20 > # dmesg | tail -15 > wlan0: link state changed to UP > ugen5.4: at usbus5 > umass2: on usbus5 > umass2: SCSI over Bulk-Only; quirks =3D 0x0100 > umass2:4:2:-1: Attached to scbus4 > da5 at umass-sim2 bus 2 scbus4 target 0 lun 0 > da5: Removable Direct Access SCSI-2 device=20 > da5: 40.000MB/s transfers > da5: 983MB (2015231 512 byte sectors: 64H 32S/T 983C) > GEOM_ELI: Device da5.eli created. > GEOM_ELI: Encryption: AES-XTS 128 > GEOM_ELI: Integrity: HMAC/SHA1 > GEOM_ELI: Crypto: software > GEOM_ELI: da5.eli: Failed to authenticate 4096 bytes of data at offset 40= 96. > GEOM_ELI: da5.eli: Failed to authenticate 4096 bytes of data at offset 0. >=20 > # dd if=3D/dev/random of=3D/dev/da5.eli bs=3D1m > dd: /dev/da5.eli: short write on character device > dd: /dev/da5.eli: end of device > 875+0 records in > 874+1 records out > 917151744 bytes transferred in 1530.831674 secs (599120 bytes/sec) >=20 > # dd if=3D/dev/da5.eli of=3D/dev/null bs=3D1m > 874+1 records in > 874+1 records out > 917151744 bytes transferred in 178.874312 secs (5127353 bytes/sec) >=20 > All clear. No new errors. >=20 > Zpool created on the same usb stick is still failing with cksum errors. >=20 > # usbconfig -d 5.4 add_quirk UQ_MSC_NO_SYNC_CACHE >=20 > umass2: SCSI over Bulk-Only; quirks =3D 0x4000 >=20 > Re-created zpool is still failing with cksum errors. Every new scrub run = is triggering another "repairing". Interesting. Can you put ZFS on top of GELI with authentication after filling da0.eli with random random and see if GELI will report corruption when ZFS will or if only ZFS will report corruption? --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl --T7mxYSe680VjQnyC Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlD+1gQACgkQForvXbEpPzS00ACeI7A/Orl3ISZNXqs//iKBTUKu SsEAnAhCVir8jIyWs3Pxbf4Uhf3JlPBF =0fKt -----END PGP SIGNATURE----- --T7mxYSe680VjQnyC--