util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fstrim: "fitrim ioctl failed: input/output error" -> "Logical block address out of range"
@ 2014-11-10 16:07 Lutz Vieweg
  2014-11-18 10:32 ` fstrim tries to discard data beyond the last sector of a device Lutz Vieweg
  0 siblings, 1 reply; 13+ messages in thread
From: Lutz Vieweg @ 2014-11-10 16:07 UTC (permalink / raw)
  To: util-linux

Hi,

when I use "fstrim" on a just newly "mkfs.xfs /dev/sdb"-ed
filesystem on a newly mounted SSD (Crucial_CT1024M550SSD1,
firmware MU01), I get (after some activity on the device)
this error message:

> fitrim ioctl failed: input/output error

Looking into the dmesg output reveals:

> [1039455.530947] sd 0:0:1:0: [sdb]
> [1039455.533192] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
> [1039455.535369] sd 0:0:1:0: [sdb]
> [1039455.537521] Sense Key : Illegal Request [current]
> [1039455.539684] Info fld=0x772cdab0
> [1039455.541802] sd 0:0:1:0: [sdb]
> [1039455.543877] Add. Sense: Logical block address out of range
> [1039455.545966] sd 0:0:1:0: [sdb] CDB:
> [1039455.548008] Unmap/Read sub-channel: 42 00 00 00 00 00 00 00 18 00
> [1039455.550080] end_request: critical target error, dev sdb, sector 1999428272

(I bought 4 of the same SSD model, and the error occurs the same
with the other exemplars, so I assume this is not some hardware issue.)

According to smartctl, the capacity of this SSD is:
> User Capacity:    1,024,209,543,168 bytes [1.02 TB]
> Sector Sizes:     512 bytes logical, 4096 bytes physical

And cat /proc/partitions tells:
>    major minor  #blocks  name
>    8       16 1000204632 sdb

Kernel is mainline linux-3.17.1

fstrim --version says:
> fstrim from util-linux 2.23.2

(Distribution is CentOS 7, if that matters.)

Does anyone have a clue what's going wrong, here?

Regards,

Lutz Vieweg


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-11-24 21:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-10 16:07 fstrim: "fitrim ioctl failed: input/output error" -> "Logical block address out of range" Lutz Vieweg
2014-11-18 10:32 ` fstrim tries to discard data beyond the last sector of a device Lutz Vieweg
2014-11-18 11:03   ` Karel Zak
2014-11-21 16:44     ` Lutz Vieweg
2014-11-21 17:09   ` fstrim on newly created filesystem " Lutz Vieweg
2014-11-21 21:20     ` Mike Frysinger
2014-11-24  9:23       ` Karel Zak
2014-11-24 12:25     ` Lukáš Czerner
2014-11-24 19:30       ` Lutz Vieweg
2014-11-24 19:43         ` Bernd Schubert
2014-11-24 20:03           ` Lutz Vieweg
2014-11-24 20:18             ` Bernd Schubert
2014-11-24 21:24     ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).