logical-unit-number · shipping · also LUN, logical unit number, Logical unit (LUN)

Logical unit number (LUN)

A logical unit number (LUN) is the address of a logical unit within a SCSI target.

Related Observatory article: Read on hesela.com

Entity and address: The logical unit executes I/O commands; its LUN identifies it in the target context. The same numeric LUN on different targets need not refer to the same storage. [6] [7]

Discovery: In Linux v6.12, the max_luns parameter defaults to 512 and is used by sequential scanning. REPORT LUNS takes a different path, grows its response buffer when needed and checks returned addresses against the host adapter's max_lun. The sequential setting is not a universal ceiling of 512 logical units. Device quirks, failures and configuration can affect discovery. [4]

Relations

related
SAN, SCSI, Block storage, iSCSI, INCITS T10 SCSI, SCSI initiator and target, Command descriptor block (CDB), SCSI logical unit (LU)

Limitations

  • The address alone does not establish persistent volume identity across different targets. [7]

Citations

  1. Linux v6.12 scsi_scan.c: max_scsi_luns, sequential scan and REPORT LUNS (accessed 2026-10-20)
  2. SNIA dictionary: logical unit (accessed 2026-10-20)
  3. SNIA dictionary: logical unit number (accessed 2026-10-20)

Further reading

  1. Logical unit (LUN) (accessed 2026-03-26)
  2. IETF RFC 7143, Internet Small Computer System Interface (iSCSI) Protocol (Consolidated), April 2014 (accessed 2026-10-16)
  3. The Linux Kernel documentation: SCSI Interfaces Guide (SCSI mid-layer, device scanning) (accessed 2026-10-16)
  4. SCSI-2 draft standard, clause 17: Medium-changer devices (mirror) (accessed 2026-10-16)
Sources & caveats
  • Scanning behavior is pinned to Linux v6.12 and is an implementation example, not a maximum prescribed by SCSI.

JSON: /data/terms/logical-unit-number.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Logical unit number (LUN). Hesela. 2026-10-20. https://hesela.dev/terms/logical-unit-number/