Bug 124186 - [zfs] Illegal request messages when using ZFS on USB flash drive
Summary: [zfs] Illegal request messages when using ZFS on USB flash drive
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-01 11:50 UTC by arnaud.houdelette
Modified: 2009-05-29 00:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arnaud.houdelette 2008-06-01 11:50:01 UTC
When creating a zpool on a certain usb flash disk, I keep getting kernel messages:
(da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:20,0
(da0:umass-sim0:0:0:0): Invalid command operation code
(da0:umass-sim0:0:0:0): Unretryable error

However, the zpool and file system on it seem to work as expected.

I can't reproduce the problem with another (more recent) usb flash drive.

Below are the (verbose) dmesg output for the usb keys.
umass0: <vendor 0x0930 USB Flash Memory, class 0/0, rev 2.00/1.00, addr 2> on uhub5
umass0:0:0:-1: Attached to scbus0
umass1: <USB DISK 2.0, class 0/0, rev 2.00/12.19, addr 3> on uhub5
umass1:1:1:-1: Attached to scbus1
da0 at umass-sim0 bus 0 target 0 lun 0
da0: < USB Flash Memory 1.00> Removable Direct Access SCSI-2 device
da0: Serial Number \^_
da0: 40.000MB/s transfers
da0: 1930MB (3953664 512 byte sectors: 255H 63S/T 246C)
da1 at umass-sim1 bus 1 target 0 lun 0
da1: <USB DISK 2.0 1219> Removable Direct Access SCSI-0 device
da1: Serial Number \^_
da1: 40.000MB/s transfers
da1: 1912MB (3915776 512 byte sectors: 255H 63S/T 243C)

How-To-Repeat: Plug a certain type (?) of usb key. 
Enter the following : 

zfs create testusb /dev/da0
Comment 1 Remko Lodder freebsd_committer freebsd_triage 2008-06-01 11:59:29 UTC
Responsible Changed
From-To: freebsd-bugs->pjd

Hi Pawel, can you help sorting this out please?
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2009-05-28 23:23:30 UTC
Responsible Changed
From-To: pjd->freebsd-fs

With pjd's permission, reassing ZFS-related PRs to freebsd-fs.
Comment 3 K. Macy freebsd_committer freebsd_triage 2009-05-29 00:19:05 UTC
State Changed
From-To: open->closed


This isn't a zfs issue. Many USB keys need a quirk indicating the non-availability of  
"SYNCHRONIZE CACHE".