scsi-verify · shipping · also VERIFY(10), VERIFY(16)

SCSI VERIFY

SCSI VERIFY checks selected logical blocks using verification semantics that depend on command fields and device behavior.

BYTCHK=0 supplies no host reference. Mode 1 compares per-block reference data; mode 3 repeats one logical block across the range. Protection information and unmapped-LBA rules also matter. [5] WRITE AND VERIFY writes first; it is not a read-only scan. [1] DPO lowers cache-retention priority, not a universal physical-read guarantee. [2]

The cited utility defaults to 128 blocks per command, or 64 KiB at 512 bytes per block. Its manual gives per-command limits of 65,535 for VERIFY(10) and 2,147,483,647 for VERIFY(16). Parser acceptance of BYTCHK=2 does not make it valid: SBC-3 revision 34 reserves that value. [2] Use --ebytchk for the mode; legacy --bytchk sets a byte count in the pinned client. [6]

Client capture: count=3, bpc=1 and ndo=1536 produced three one-block calls, each with the same full reference, despite an override diagnostic. A short three-byte input returned exit 0 before any device open; an unmocked nonexistent-path control reproduced this. These are version-scoped software observations, not successful device comparisons. Retain input completeness, submitted ranges, statuses and diagnostics separately. [7]

Relations

related
SCSI, Serial Attached SCSI (SAS), Read-after-write verification, Data scrubbing, SCSI CHECK CONDITION

Advantages

  • Bounded medium-only commands can divide a long range, provided completion is tracked separately for every part. [2]

Limitations

  • A medium-only verify sends no reference data, so it cannot detect a correctly stored but wrong payload. [2]

Citations

  1. Seagate. SCSI Commands Reference Manual, 100293068 Rev. A, February 2006; sections 3.49 and 3.58, printed pp. 175-176 and 198. (accessed 2026-10-16)
  2. sg3_utils v1.48: sg_verify manual, BYTCHK, DPO and exit status (manual header retains 1.45). (accessed 2026-10-23)
  3. Seagate. SCSI Commands Reference Manual, 100293068 Rev. L (2020), section 3.59, printed pages 248-249. (accessed 2026-11-29)
  4. sg3_utils v1.48: pinned sg_verify.c, option parsing, reference acquisition and command loop. (accessed 2026-11-29)
  5. Hesela. SCSI VERIFY reference and coverage: native client capture, unmocked input controls and reproduction (2026-11-29). (accessed 2026-11-29)

Further reading

  1. Douglas Gilbert. Linux SG driver version 4.0: request-sharing verification and prefetch discussion. (accessed 2026-10-16)
  2. HDD write verification: completion, persistence and comparison (accessed 2026-10-16)
Sources & caveats
  • sg-verify is the sg_verify manual page from sg3_utils 1.48, re-read 2026-10-23 for the per-command block limits, the 128-block default and the BYTCHK values.
  • The idle-read-after-write entry links here because a host-issued VERIFY is a separate check from drive-initiated idle verification.
  • Capture: installed sg3-utils 1.46-3ubuntu4.1 and unmodified v1.48 client built at -O0/-O2 against the installed 1.46 helper library. Device and VERIFY calls intercepted; short-input controls also run without interception. [7]
  • Twelve selected scenarios per client, plus six unmocked controls, repeated exactly. No hardware, transport, persistence or performance measurement. The full v1.48 distribution was not built. [7]

JSON: /data/terms/scsi-verify.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. SCSI VERIFY. Hesela. 2026-11-29. https://hesela.dev/terms/scsi-verify/