Re: ZFS + usb in trouble?

From: Pawel Jakub Dawidek <pjd_at_FreeBSD.org>
Date: Tue, 22 Jan 2013 19:10:12 +0100
On Tue, Jan 22, 2013 at 11:47:29PM +0900, Alexander Nedotsukov wrote:
> Hi Pawel,
> 
> Here what I did.
> 
> # geli onetime -a hmac/sha1 -s 4096 /dev/da5 
> # dmesg | tail -15
> wlan0: link state changed to UP
> ugen5.4: <USBest Technology> at usbus5
> umass2: <USBest Technology USB Mass Storage Device, class 0/0, rev 2.00/1.00, addr 4> on usbus5
> umass2:  SCSI over Bulk-Only; quirks = 0x0100
> umass2:4:2:-1: Attached to scbus4
> da5 at umass-sim2 bus 2 scbus4 target 0 lun 0
> da5: <USB2.0 FlashDisk 0.00> Removable Direct Access SCSI-2 device 
> 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 4096.
> GEOM_ELI: da5.eli: Failed to authenticate 4096 bytes of data at offset 0.
> 
> # dd if=/dev/random of=/dev/da5.eli bs=1m
> 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)
> 
> # dd if=/dev/da5.eli of=/dev/null bs=1m
> 874+1 records in
> 874+1 records out
> 917151744 bytes transferred in 178.874312 secs (5127353 bytes/sec)
> 
> All clear. No new errors.
> 
> Zpool created on the same usb stick is still failing with cksum errors.
> 
> # usbconfig -d 5.4 add_quirk UQ_MSC_NO_SYNC_CACHE
> 
> umass2:  SCSI over Bulk-Only; quirks = 0x4000
> 
> 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?

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://tupytaj.pl

Received on Tue Jan 22 2013 - 17:09:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:34 UTC