What Is A LUN (Logical Unit Number)? - TechTarget
Maybe your like
- Home
- Primary storage devices
By - Alexander S. Gillis, Technical Writer and Editor
What is a logical unit number (LUN)?
A logical unit number (LUN) is a unique identifier for designating an individual or collection of physical or virtual storage devices that execute input/output (I/O) commands with a host computer, as defined by the Small Computer System Interface (SCSI) standard.
SCSI is a widely implemented I/O interconnect that can facilitate data exchange between servers and storage devices through transport protocols. Examples of transport protocols include Internet SCSI and Fibre Channel (FC). An SCSI initiator in the host originates the I/O command sequence, which is then transmitted to a target endpoint or recipient storage device. A logical unit is an entity within the SCSI target that responds to the I/O command.
LUNs identify subsets of data in a disk so that the computing devices using them can execute operations.
How LUNs work
LUN setup varies by system. A logical unit number is assigned when a host scans an SCSI device and discovers a logical unit. The LUN identifies the specific logical unit to the SCSI initiator when combined with information such as the target port identifier.
The logical unit may be a part of a storage drive, an entire storage drive or all parts of several storage drives such as a hard disk drive, solid-state drive or tapes, in one or more storage systems. A LUN can reference an entire RAID (redundant array of independent disks) set, a single drive or partition, or multiple storage drives or partitions. In any case, the logical unit is treated as if it is a single device and is identified by the logical unit number. The capacity limit of a LUN varies by system.
A LUN is central to the management of a block storage array in a storage area network (SAN). LUNs can simplify the management of storage resources because access and control privileges can be assigned through the logical identifiers.
Types of LUNs
The underlying storage structure and logical unit type play a role in performance and reliability. Examples include the following:
- Mirrored LUN. Fault-tolerant LUN with identical copies on two physical drives for data redundancy and backup.
- Concatenated LUN. Consolidates several LUNs into a single logical unit or volume.
- Striped LUN. Writes data across multiple physical drives, potentially enhancing performance by distributing I/O requests across the drives.
- Striped LUN with parity. Spreads data and parity information across three or more physical drives. If a physical drive fails, the data can be reconstructed from the information on the remaining drives. The parity calculation may have an impact on write performance.
LUN uses
The primary use of a LUN is to act as an identifier for designating a storage device. The use may be different per type of LUN. For example, a simple LUN is used as a designator for one portion of one whole physical disk. Spanned LUNs are designators that signify a LUN that spans over two or more physical disks. Mirrored LUNs indicate data that is held on one disk is copied in a second disk, in case one disk fails.
LUNs can be used for zoning and masking in SANs or they can be virtualized to map multiple physical LUNs.
Although the term LUN is only the identifying number of the logical unit, it is commonly used as shorthand to refer to the logical unit itself.
LUN zoning and masking
Storage area networks control host access to LUNs to enforce data security and integrity. LUN masking and switch-based zoning manage the SAN resources accessible to the attached hosts.
LUN zoning provides isolated paths for I/O through an FC SAN fabric between end ports to ensure deterministic behavior. A host is restricted to the zone in which it is assigned. LUN zoning is generally set up at the switch layer. It can help improve security and eliminate hot spots in the network.
LUN masking restricts host access to designated SCSI targets and their LUNs. LUN masking is typically done at the storage controller, but it can also be enforced at the host bus adapter or switch layer. With LUN masking, several hosts and zones can use the same port on a storage device; however, they can only see the specific SCSI targets and LUNs they have been assigned.
LUNS and virtualization
A LUN constitutes a form of virtualization in the sense that it abstracts the hardware devices behind it with a standard SCSI method of identification and communication. The storage object represented by the LUN can be provisioned, compressed or deduplicated as long as the representation to the host does not change. A LUN can be migrated within and between storage devices, as well as copied, replicated, snapshotted and tiered.
A virtual LUN can map to multiple physical LUNs as well as to virtualize capacity, which can be created in excess of the physical space available. Virtual LUNs created in excess of the available physical capacity help optimize storage use, since the physical storage is not allocated until data is written. This is sometimes referred to as a thin LUN.
A virtual LUN can be set up at the server operating system (OS), hypervisor or storage controller levels. Because the virtual machine (VM) does not see the physical LUN on the storage system, there is no need for LUN zoning.
A software application can present a LUN to a VM running on a guest OS. Proprietary technology, such as VMware vSphere Virtual Volumes, can provide the virtualization layer and the storage devices to support them.
Managing LUNs
After creation, the LUN can be managed through a software program that specifies the path between LUNs and hosts. A LUN can be managed by controlling availability, increasing size, and deleting or securing it. Management best practices differ depending on the environment.
Users can increase the LUN size; there is no limit to how much space a LUN can take up. However, users should be careful not to allocate more storage space than is needed.
Deleting typically refers to writing over the used space in a volume, not unmounting or detaching the LUN. Admins should be the only users allowed to delete a LUN.
Zoning and masking are other ways of saying a LUN is secured.
LUN challenges
Common challenges related to LUNs often involve the use of the term as the logical unit/storage device itself. When referring to LUN in this sense, common challenges that appear tend to be related to resource management, multipath I/O and provisioning. For example, oversizing LUNs can quickly lead to wasted disk resources. Even if the assigned LUN never uses those resources, other LUNs are not able to use them.
Thin provisioning of LUNs enables admins to create larger LUNs, but this can also lead to overcommitted storage resources. Overcommitting storage resources, by proxy, makes it easier to deplete physical storage space.
Traditionally handling a large number of LUNs has been difficult on Windows servers; however, Cluster Shared Volumes (CSV) can help manage it. Initially starting with Windows Server 2012, CSV enables admins to use a temporary resource exhaustion notification to ensure the storage device can allocate additional space to the LUN if needed.
Editor's note: This article was revised in 2024 by TechTarget editors to improve the reader experience.
Continue Reading About logical unit number (LUN)
- Storage 101: How to create, share and manage a LUN in SAN storage
Related Terms
What is a backup storage device? A backup storage device is a hardware component that stores duplicate copies of data. See complete definition What is a SAN switch? How it works and compares to other network switches A SAN switch (storage area network switch) is a device that connects servers and shared pools of storage devices and is dedicated... See complete definition What is unified storage? Features, pros/cons, comparison to block/file storage Unified storage, sometimes called network unified storage (NUS) or multiprotocol storage, is a storage system that combines block... See complete definitionDig Deeper on Primary storage devices
-
LUN masking
By: Robert Sheldon -
raw device mapping
By: Rahul Awati -
What is SAN zoning and what are the different types of zoning?
By: Robert Sheldon -
What is a SAN? Ultimate storage area network guide
By: Stephen Bigelow
- Can Backups Scale? The Vanishing Backup Window –Exagrid
- Avoiding the Hidden Costs of Backup –Exagrid
- See More
- Choose High Data-Efficiency Technology for Lower Storage TCO –Dell Technologies and Microsoft
- Choose High Data-Efficiency Technology for Lower Storage TCO –Dell Technologies and Microsoft
- Disaster Recovery
- Data Backup
- Data Center
- Sustainability and ESG
- Building a power outage business continuity plan: Step by step
Loss of electric power presents a major risk to business continuity, and no organization is immune. Take these steps to create a ...
- Business continuity in the cloud: Benefits, issues and tips
Using the cloud for business continuity helps reduce downtime, increase redundancy and simplify disaster recovery plans. Learn ...
- Risk assessment matrix: Free template and usage guide
A risk assessment matrix identifies issues with the greatest potential for business disruption or damage. Use our free template ...
- Top data protection software vendors for business in 2026
Data compromises carry real financial risk to organizations. It's imperative to invest in the right multifunctional data ...
- 9 backup as a service (BaaS) providers in 2026
BaaS is available in public, private and hybrid varieties and from numerous vendors. Here's how to evaluate the options to find a...
- Key takeaways from Commvault Shift 2025
The vendor is positioning itself to face rising data protection challenges, such as identity resilience and fragmented ...
- Data center safety checklist: 10 best practices to follow
Data center facilities pose various risks to those who operate them. Here are 10 best practices to follow when implementing data ...
- Space-based data centers: Edge computing in space
Space-based data centers, which enable edge computing in space, have the potential to revolutionize data management by reducing ...
- Enhance operations with decentralized data centers
Decentralized data centers enhance scalability, reduce latency and improve data compliance, offering a strategic shift for ...
- How ethical sourcing can improve supply chains
Ethical sourcing can benefit supply chains, as it ensures suppliers' accountability and transparency, aligns with ESG goals, ...
- 7 supply chain traceability challenges
Supply chain traceability faces challenges, like data fragmentation and poor visibility, that complicate compliance with ...
- How to launch a corporate recycling initiative
Corporate recycling initiatives have gone beyond basics, and IT leaders play a crucial role in that. From physical to digital ...
Tag » What Is A Unit Number
-
What Is A Unit In Math? Definition, Solved Examples, Facts
-
What Is A Unit Number? - Quora
-
Unit Number Definition: 105 Samples | Law Insider
-
What Is Unit, Number And Numeral? Learn By Example. - Maths Query
-
Unit Number - Math Wiki - Fandom
-
What Is A Unit Number? The 6 Latest Answer
-
Units, Tens, Hundreds | How To Use + Examples - Smartick
-
What Is A House's Unit Number? - Chi News
-
Add Or Change Property Unit Number (dwelling Number) - Skatteetaten
-
What Is Unit Number? - Universal QA
-
Military Unit Number - Wikipedia
-
Model/Unit Numbers
-
How Is Unit Number Abbreviated?