Pcornel
Storage · Storage Fundamentals

Logical Unit (LUN)

Cheat sheet · https://pcornel.dk/topic.php?topic=3848

Back to the Topic

Answer

In common SAN usage, an array presents a block volume as a LUN to selected host initiators. The host discovers it through one or more SCSI paths and may combine those paths through multipathing into one logical device.

Remember

  • LUN is a SCSI logical-unit concept; it is not a generic synonym for every disk or volume.
  • LUN ID/number is contextual to a target presentation and is not necessarily a globally unique device identity.
  • A host seeing a LUN does not prove it is the correct host or that concurrent access is safe.
  • Multiple paths to one LUN must be recognized as one device, not treated as independent disks.

First checks

  • lsscsi -s — LUNs seen by host
  • sg_inq /dev/sdX — vendor/serial (WWN)
  • multipath -ll — LUN WWID and paths

Verify in this order

array volume → LUN masking → host device

Where it usually breaks

First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.

Storage Fundamentals → Logical Unit (LUN) reference map

BoundaryWhat it meansEvidence limit
Consumer viewWhat the workload/OS believes is availableDoes not prove lower-layer allocation, path or media health
Logical storageVolume/LUN/share/pool/datastore or object namespace presented to the consumerObject existence does not prove backing capacity or correct ownership
Transport/backingProtocol, path, controller, storage service and protection that carry/persist I/OPath/control-plane health does not prove application data
AcceptanceOriginal data can be written, committed and read back correctly by the intended workloadRequired for end-to-end closure

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3848

Confirmation

Confirm action

Continue?