Attempting ATA TRIM on SAS devices?

Steven Hartland killing at multiplay.co.uk
Wed Jan 8 20:36:07 UTC 2014


It should only do this if your drive reports it supports
ATA_TRIM by setting the ATA_SUPPORT_DSM_TRIM bit in the
response to an ATA_IDENTIFY command sent to it using ATA
passthrough.

What does the following report:
camcontrol identify da12

    Regards
    Steve

----- Original Message ----- 
From: "Garrett Wollman" <wollman at csail.mit.edu>
To: <freebsd-scsi at freebsd.org>
Sent: Wednesday, January 08, 2014 6:37 PM
Subject: Attempting ATA TRIM on SAS devices?


> On a freshly-installed 9.2 system, I see the following:
> 
> (da12:mps0:0:59:0): ATA TRIM failed, switching to UNMAP BIO_DELETE
> (da12:mps0:0:59:0): ATA COMMAND PASS THROUGH(16). CDB: 85 0d 06 00 01 00 01 00 00 00 00 00 00 40 06 00 
> (da12:mps0:0:59:0): CAM status: SCSI Status Error
> (da12:mps0:0:59:0): SCSI status: Check Condition
> (da12:mps0:0:59:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
> (da12:mps0:0:59:0): Error 22, Unretryable error
> (da35:mps0:0:82:0): ATA TRIM failed, switching to UNMAP BIO_DELETE
> (da35:mps0:0:82:0): ATA COMMAND PASS THROUGH(16). CDB: 85 0d 06 00 01 00 01 00 00 00 00 00 00 40 06 00 
> (da35:mps0:0:82:0): CAM status: SCSI Status Error
> (da35:mps0:0:82:0): SCSI status: Check Condition
> (da35:mps0:0:82:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
> (da35:mps0:0:82:0): Error 22, Unretryable error
> 
> da12 and da35 are identified as follows:
> 
> [root at nfs-prod-3 /export]# camcontrol inquiry da12
> pass13: <OCZ TALOS2 2.25> Fixed Direct Access SCSI-5 device 
> pass13: Serial Number A179E011337000251   
> pass13: 600.000MB/s transfers, Command Queueing Enabled
> [root at nfs-prod-3 /export]# camcontrol inquiry da35
> pass36: <OCZ TALOS2 2.25> Fixed Direct Access SCSI-5 device 
> pass36: Serial Number A179E011337000234   
> pass36: 600.000MB/s transfers, Command Queueing Enabled
> 
> Why would it be trying ATA commands here?  These are SAS devices.
> 
> -GAWollman
> _______________________________________________
> freebsd-scsi at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-scsi
> To unsubscribe, send any mail to "freebsd-scsi-unsubscribe at freebsd.org"
>

================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster at multiplay.co.uk.



More information about the freebsd-scsi mailing list