Got it

[TechNotes] What Is LUN

Latest reply: Sep 2, 2021 07:14:06 419 6 6 0 0

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.

How Does a Server Use LUNs? What Is a LUN on a Server?

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 1-1 shows the process for application servers to use storage space.

Figure 1-1 Process for using storage space
download?uuid=6a0d2fb1e4eb4a7a906f91bffb03db9d

  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.

LUN vs. Volume

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

LUN Masking vs. LUN Mapping

What Is LUN Masking?

LUN masking: A LUN is bound to the World Wide Port Name (WWPN) or iSCSI Qualified Name (IQN) of a host port to set up a one-to-one or many-to-one connection and access relationship between the LUN and the host port. The host can identify the same LUN regardless of which port on the storage system the host connects to.

What Is LUN Mapping?

LUN mapping: A LUN is bound to a front-end port of a storage system. Hosts can access different LUNs when they connect to different front-end ports.

Use of LUN Masking and LUN Mapping on Huawei Storage

After a host group and a LUN group are added to a mapping view, the application server, host group, and LUN group are logically associated. Adding the host group to the mapping view implement LUN masking. In addition, you can add a port group to the mapping view to implement LUN mapping. The LUNs in the LUN group and the hosts in the host group use the ports in the port group for communication. If LUN mapping is not implemented, the LUNs and hosts use randomly allocated ports for communication.

How Do I Create a LUN?

For details on how to create LUNs on Huawei storage systems, see the following:

How Do I Expand LUN Capacity?

Figure 1-2 shows the expansion process.

Figure 1-2 Capacity expansion process
download?uuid=7afcf913723d41f5b69b59bb56ca2c26

Table 1-1 describes each step in detail.

Table 1-1 Steps for expanding LUN capacity

Step

Description

Perform a pre-expansion check.

Before expansion, make sure that the storage system meets the 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.

Locate the LUN to be expanded.

Before expanding LUN capacity, confirm information about the LUN that carries service data to ensure a successful expansion.

Expand LUN capacity on the storage system.

Expand the LUN online to the required capacity.

Expand storage space for the application server.

After the expansion, scan for disks on the application server to detect and use the expanded LUN.

For details on how to expand LUN capacity on Huawei storage systems, see the following:


WELL DONE
View more
  • x
  • convention:

Good share
View more
  • x
  • convention:

zaheernew
MVE Author Created Aug 12, 2021 15:37:09

[TechNotes] What Is LUN-4083301-1
View more
  • x
  • convention:

A good overview of the topic.
View more
  • x
  • convention:

Informative post
View more
  • x
  • convention:

LUN
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.