Logical Unit (LUN)
Cheat sheet · https://pcornel.dk/topic.php?topic=3848
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 hostsg_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
| Boundary | What it means | Evidence limit |
|---|---|---|
| Consumer view | What the workload/OS believes is available | Does not prove lower-layer allocation, path or media health |
| Logical storage | Volume/LUN/share/pool/datastore or object namespace presented to the consumer | Object existence does not prove backing capacity or correct ownership |
| Transport/backing | Protocol, path, controller, storage service and protection that carry/persist I/O | Path/control-plane health does not prove application data |
| Acceptance | Original data can be written, committed and read back correctly by the intended workload | Required 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