{
  "slug": "scsi-check-condition",
  "term": "SCSI CHECK CONDITION",
  "aliases": [
    "CHECK CONDITION"
  ],
  "definition": "CHECK CONDITION is a SCSI command status used to report a condition described by sense information.",
  "note": "The status is 02h, distinct from the sense key. It does not by itself identify a defective drive: an unsupported request, changed device state or access restriction can also cause a report. [seagate-sense] iSCSI carries sense data with this status using Autosense; do not assume that every transport requires a separate REQUEST SENSE command. [rfc7143]\n\nFor Linux SG_IO, a successful system call does not replace checking the returned SCSI and host status. The residual byte count and the amount of sense data are separate observations. [linux-sgio-completion]\n\nStatus versus payload: Linux v6.12 target emulation can return Unit Attention in a REQUEST SENSE payload while completing that request with GOOD status. Therefore sense data is not restricted to CHECK CONDITION responses. [linux-target-sense]",
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "related": [
    "scsi",
    "scsi-sense-key",
    "additional-sense-code",
    "additional-sense-code-qualifier",
    "sg-io-residual-count",
    "scsi-task-aborted",
    "scsi-aborted-command",
    "scsi-sense-data",
    "scsi-unit-attention"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-11",
  "citations": [
    {
      "id": "seagate-sense",
      "title": "Seagate SCSI Commands Reference, Rev. H, sections 2.4.1.3-2.4.1.5",
      "url": "https://www.seagate.com/files/staticfiles/support/docs/manual/Interface%20manuals/100293068h.pdf",
      "accessed": "2026-10-13"
    },
    {
      "id": "rfc7143",
      "title": "RFC 7143: SCSI concepts and iSCSI transport; sections 4.1, 4.2 and 11.4.7",
      "url": "https://www.rfc-editor.org/rfc/rfc7143.html",
      "accessed": "2026-10-13"
    },
    {
      "id": "t10-keys",
      "title": "T10: SCSI sense-key assignments",
      "url": "https://www.t10.org/lists/2sensekey.htm",
      "accessed": "2026-10-13"
    },
    {
      "id": "hesela-sense",
      "title": "Media error or link error? SCSI sense codes and Linux ATA logs",
      "url": "https://hesela.com/analyses/scsi-sense-kernel-log-signatures/",
      "accessed": "2026-10-13"
    },
    {
      "id": "linux-sgio-completion",
      "title": "Linux v6.12: scsi_complete_sghdr_rq and sg_io in scsi_ioctl.c",
      "url": "https://github.com/torvalds/linux/blob/v6.12/drivers/scsi/scsi_ioctl.c",
      "accessed": "2026-10-25"
    },
    {
      "id": "linux-target-sense",
      "title": "Linux v6.12 target: spc_emulate_request_sense",
      "url": "https://github.com/torvalds/linux/blob/v6.12/drivers/target/target_core_spc.c",
      "accessed": "2026-10-26"
    }
  ]
}
