What Is LUN
What Is LUN
Issue 01
Date 2019-07-31
and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.
Notice
The purchased products, services and features are stipulated by the contract made between Huawei and the
customer. All or part of the products, services and features described in this document may not be within the
purchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information,
and recommendations in this document are provided "AS IS" without warranties, guarantees or
representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.
Website: http://e.huawei.com
Contents
1 Concepts.......................................................................................................................................... 1
2 How Does a Server Use LUNs? What Is a LUN on a Server?................................................2
3 LUN vs. Volume.............................................................................................................................3
4 LUN Masking vs. LUN Mapping............................................................................................... 4
5 How Do I Create a LUN?..............................................................................................................5
6 How Do I Expand LUN Capacity?..............................................................................................6
1 Concepts
In a storage area network (SAN), a logical unit number (LUN) is used to identify a logical
unit, which is a device addressed by SCSI. A storage system partitions physical disks into
parts with logical addresses and allows hosts to access the parts. Such a partition is called a
LUN. Generally, a LUN is a logical disk created on a SAN storage system.
A storage system can be connected to application servers running various operating systems
(OSs), such as Windows, Linux, Unix (including AIX, HP-UX, and Solaris), and VMware.
Figure 2-1 shows the process for application servers to use storage space.
Storage system
Host Application
LUN 2 4
1 group 1 server
group 1 3 Mapping
Mapping Network
view 1
Windows/
... Linux/UNIX/
Data read/write
VMware
1. The user creates LUNs on the storage system based on service requirements. For
centralized management of LUNs, a LUN group must also be created and then mapped
to a host group.
2. A host created on the storage system represents an application server. The user creates a
host on the storage system and associates it with the application server. For centralized
management of hosts, a host group must also be created.
3. The user creates a mapping view and adds the LUN group and host group to the mapping
view. In this way, the application server, host group, and LUN group are logically
associated.
4. After the storage system and application server are properly networked, the application
server can scan LUNs to discover allocated storage space and read/write the LUNs.
The definitions of LUN and volume vary with vendors. This section is based on a general
definition that considers volume as a server-side concept.
After a LUN is created on a storage system, it is a logical device on the storage system. When
a server is connected to the storage system, it can identify the LUN on the storage system as a
physical disk. The user can create one or more partitions on the physical disk to obtain one or
more volumes. The volumes are logical devices on the server.
The following compares the capacity of volumes, partitions, and LUNs:
Volume = Partition ≤ Disk in the host's device manager = LUN ≤ Total capacity of disks on
the storage device
For details on how to create LUNs on Huawei storage systems, see the following:
l Creating a LUN on OceanStor V3 Series V300R006
l Creating a LUN on OceanStor V5 Series V500R007
l Creating a LUN on OceanStor Dorado V3 Series V300R002
Start
Perform a pre-expansion
check.
End
Perform a pre-expansion Before expansion, make sure that the storage system meets the
check. expansion requirements. Obtain and record necessary
information, including the IP address of the application server
that uses the LUN, the WWN of the LUN, or the host LUN
ID.
Step Description
Locate the LUN to be Before expanding LUN capacity, confirm information about
expanded. the LUN that carries service data to ensure a successful
expansion.
Expand LUN capacity on Expand the LUN online to the required capacity.
the storage system.
Expand storage space for After the expansion, scan for disks on the application server to
the application server. detect and use the expanded LUN.
For details on how to expand LUN capacity on Huawei storage systems, see the following:
l Expanding LUN Capacity on OceanStor V3 Series V300R006
l Expanding LUN Capacity on OceanStor V5 Series V500R007
l Expanding LUN Capacity on OceanStor Dorado V3 Series V300R002