{"id":549,"date":"2020-06-13T22:14:03","date_gmt":"2020-06-13T20:14:03","guid":{"rendered":"https:\/\/tekmart.co.za\/t-blog\/?p=549"},"modified":"2020-06-13T22:20:13","modified_gmt":"2020-06-13T20:20:13","slug":"logical-unit-number-lun","status":"publish","type":"post","link":"https:\/\/tekmart.co.za\/t-blog\/logical-unit-number-lun\/","title":{"rendered":"logical unit number (LUN)"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time-approximately:<\/span> <span class=\"rt-time\"> 5<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>\n<h2 class=\"wp-block-heading\"><strong>A logical unit number (LUN) is a unique identifier for designating an individual or collection of physical or virtual&nbsp;storage&nbsp;devices that execute input\/output (I\/O) commands with a host computer, as defined by the Small System Computer Interface (SCSI) standard.<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/tekmart.co.za\/t-blog\/wp-content\/uploads\/2020\/06\/lun-blog-image-1-1024x410.jpg\" alt=\"\" class=\"wp-image-554\" width=\"593\" height=\"237\" srcset=\"https:\/\/tekmart.co.za\/t-blog\/wp-content\/uploads\/2020\/06\/lun-blog-image-1-1024x410.jpg 1024w, https:\/\/tekmart.co.za\/t-blog\/wp-content\/uploads\/2020\/06\/lun-blog-image-1-300x120.jpg 300w, https:\/\/tekmart.co.za\/t-blog\/wp-content\/uploads\/2020\/06\/lun-blog-image-1-768x308.jpg 768w, https:\/\/tekmart.co.za\/t-blog\/wp-content\/uploads\/2020\/06\/lun-blog-image-1-1536x615.jpg 1536w, https:\/\/tekmart.co.za\/t-blog\/wp-content\/uploads\/2020\/06\/lun-blog-image-1-2048x820.jpg 2048w, https:\/\/tekmart.co.za\/t-blog\/wp-content\/uploads\/2020\/06\/lun-blog-image-1-800x320.jpg 800w, https:\/\/tekmart.co.za\/t-blog\/wp-content\/uploads\/2020\/06\/lun-blog-image-1-776x310.jpg 776w\" sizes=\"(max-width: 593px) 100vw, 593px\" \/><\/figure>\n\n\n\n<p>Posted by:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.techtarget.com\/contributor\/Margaret-Rouse\"><img decoding=\"async\" src=\"https:\/\/cdn.ttgtmedia.com\/rms\/onlineImages\/rouse_margaret.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p><strong>Margaret Rouse<\/strong><\/p>\n\n\n\n<p><strong>WhatIs.com &#8211;&nbsp;TechTarget &#8211;&nbsp;<a href=\"https:\/\/whatis.techtarget.com\/\">WhatIs.com<\/a><\/strong><\/p>\n\n\n\n<p>Contributor(s):&nbsp;<a href=\"https:\/\/www.techtarget.com\/contributor\/Alexander-S-Gillis\">Alexander Gillis<\/a><\/p>\n\n\n\n<p>SCSI is a widely implemented I\/O interconnect that can facilitate data exchange between servers and storage devices through transport&nbsp;protocols. Examples of transport protocols include Internet SCSI and Fibre Channel. An SCSI initiator in the&nbsp;host&nbsp;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 SCSI I\/O command.<\/p>\n\n\n\n<p>LUNs are used to identify subsets of data in a disk so that the computing devices using them can execute operations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How LUNs work<\/strong><\/h3>\n\n\n\n<p>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&nbsp;port&nbsp;identifier.<\/p>\n\n\n\n<p>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&nbsp;hard disk drive,&nbsp;solid-state drive&nbsp;or tapes, in one or more storage systems. A LUN can reference an entire&nbsp;RAID&nbsp;set, a single drive or&nbsp;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.<\/p>\n\n\n\n<p>A LUN is central to the management of a&nbsp;block storage&nbsp;array&nbsp;in a storage-area network (SAN). Using a LUN can simplify the management of storage resources because access and control privileges can be assigned through the logical identifiers.<\/p>\n\n\n\n<figure><iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/T0H5EeOy8zI\" allowfullscreen=\"\"><\/iframe><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Types of LUNs<\/strong><\/h3>\n\n\n\n<p>The underlying storage structure and logical unit type play a role in performance and reliability. Some examples include:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Mirrored LUN:<\/strong>&nbsp;Fault-tolerant LUN with identical copies on two physical drives for data&nbsp;redundancy&nbsp;and backup.<\/li><li><strong>Concatenated&nbsp;LUN:<\/strong>&nbsp;Consolidates several LUNs into a single logical unit or&nbsp;volume.<\/li><li><strong>Striped&nbsp;LUN:<\/strong>&nbsp;Writes data across multiple physical drives, potentially enhancing performance by distributing I\/O requests across the drives.<\/li><li><strong>Striped LUN with parity:<\/strong>&nbsp;Spreads data and&nbsp;parity&nbsp;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.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>LUN uses<\/strong><\/h3>\n\n\n\n<p>The primary use case of a LUN is to act as an identifier for designating a storage device; however, the use case may be different per type of LUN. For example, a simple LUN is used as a designator for one portion of or one whole physical disk. Spanned LUNs are designators that signify a LUN that spans over two or more physical disks. Mirrored LUNs are used to indicate data that is held on one disk is copied in a second disk &#8212; this is used in case one disk fails.<\/p>\n\n\n\n<p>LUNs can be used for zoning and masking in SANs or they can be virtualized to map multiple physical LUNs.<\/p>\n\n\n\n<p>Although the term&nbsp;LUN&nbsp;is only the identifying number of the logical unit, it is common to hear it used as shorthand to refer to the logical unit itself.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>LUN zoning and masking<\/strong><\/h3>\n\n\n\n<p>Storage area networks will control host access to LUNs in order to enforce data security and integrity. LUN masking and&nbsp;switch-based zoning manage the SAN resources accessible to the attached hosts.<\/p>\n\n\n\n<p>LUN zoning&nbsp;provides isolated paths for I\/O through an FC SAN fabric between end&nbsp;ports&nbsp;to ensure deterministic behavior. A host is restricted to the&nbsp;zone&nbsp;in which it is assigned. LUN zoning is generally set up at the switch layer. It can help improve security and eliminate&nbsp;hot spots&nbsp;in the network.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.ttgtmedia.com\/rms\/onlineImages\/whatis-logical_unit_number-h.png\" alt=\"\"\/><figcaption><strong>A depiction of how LUN masking occurs<\/strong><\/figcaption><\/figure>\n\n\n\n<p>LUN masking&nbsp;restricts host access to designated SCSI targets and their LUNs. LUN masking is typically done at the storage&nbsp;controller, but it can also be enforced at the host bus adapter&nbsp;(HBA)&nbsp;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.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>LUNS and virtualization<\/strong><\/h3>\n\n\n\n<p>A LUN constitutes a form of&nbsp;virtualization&nbsp;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&nbsp;provisioned,&nbsp;compressed&nbsp;or&nbsp;deduplicated&nbsp;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.<\/p>\n\n\n\n<p>A&nbsp;virtual LUN&nbsp;can be created to 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 are used to help optimize storage use, since the physical storage is not allocated until data is written. This is sometimes referred to as a thin LUN.<\/p>\n\n\n\n<p>A virtual LUN can be set up at the server operating system (OS),&nbsp;hypervisor&nbsp;or storage controller levels. Because the&nbsp;virtual machine&nbsp;(VM)&nbsp;does not see the physical LUN on the storage system, there is no need for LUN zoning.<\/p>\n\n\n\n<p>A software application can present a LUN to a VM running on a guest OS. Proprietary technology, such as VMware&#8217;s&nbsp;Virtual Volumes,&nbsp;can provide the virtualization layer and the storage devices to support them.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Managing LUNs<\/strong><\/h3>\n\n\n\n<p>After LUN creation, the LUN can be managed through a software program that specifies the path between LUNs and hosts. LUNs can be managed by controlling LUN availability, increasing LUN size, and by deleting or securing the LUN. Management best practices will differ depending on the environment.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>Zoning and masking are other ways of saying a LUN is secured.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>LUN challenges<\/strong><\/h3>\n\n\n\n<p>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 will not be able to use them. Thin provisioning of LUNs will enable admins to create larger LUNs, but this can also lead to overcommitted storage resources. Overcommitting storage resources will, by proxy, make it easier to deplete physical storage space.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><a href=\"https:\/\/www.techtarget.com\/contributor\/Margaret-Rouse\"><\/a><strong><a href=\"https:\/\/www.techtarget.com\/contributor\/Margaret-Rouse\">Margaret Rouse<\/a>&nbsp;asks:<\/strong><\/p><p><strong>How does a virtual LUN differ from a physical LUN?<\/strong><\/p><\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/searchstorage.techtarget.com\/definition\/logical-unit-number#commenting\">Join the Discussion<\/a><\/h2>\n\n\n\n<p>Traditionally handling a large number of LUNs has been difficult on Windows servers; however, Cluster Shared Volumes (CSV) can help manage this. Initially starting with Windows Server 2012, CSV allows admins to use a temporary resource exhaustion notification to ensure the storage device can allocate additional space to the LUN if needed.This was last updated in&nbsp;January 2020<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Continue Reading About logical unit number (LUN)<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/searchstorage.techtarget.com\/answer\/What-is-a-LUN-and-why-do-we-need-one\">The importance of using LUNs<\/a><\/li><li><a href=\"https:\/\/searchstorage.techtarget.com\/tip\/Five-LUN-storage-questions-for-IT-pros\">Your LUN storage management questions answered<\/a><\/li><li><a href=\"https:\/\/www.computerweekly.com\/news\/1349805\/LUN-storage-and-its-role-in-SAN-management\">The role of a LUN in managing SANs<\/a><\/li><li><a href=\"https:\/\/searchservervirtualization.techtarget.com\/tip\/Maintain-virtual-logical-unit-number-reliability-and-performance\">Managing virtual LUNs<\/a><\/li><li><a href=\"https:\/\/unixbhaskar.wordpress.com\/2010\/11\/17\/the-mystery-behind-lunlogical-unit-number\/\">Decoding the mystery of LUNs<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Related Terms<\/strong><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/searchstorage.techtarget.com\/definition\/enterprise-storage\">enterprise storage<\/a><\/h2>\n\n\n\n<p>Enterprise storage is a centralized repository for business information that provides common data management, protection and data&#8230;<a href=\"https:\/\/searchstorage.techtarget.com\/definition\/enterprise-storage\"><strong>&nbsp;See&nbsp;complete&nbsp;definition<\/strong><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/searchstorage.techtarget.com\/definition\/RAID\"><strong>RAID (redundant array of independent disks)<\/strong><\/a><\/h2>\n\n\n\n<p>RAID (redundant array of independent disks) is a way of storing the same data in different places on multiple hard disks or &#8230;<a href=\"https:\/\/searchstorage.techtarget.com\/definition\/RAID\">&nbsp;<strong>See&nbsp;complete&nbsp;definition<\/strong><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/searchstorage.techtarget.com\/definition\/storage-area-network-SAN\"><strong>storage area network (SAN)<\/strong><\/a><\/h2>\n\n\n\n<p>A storage area network (SAN) is a dedicated high-speed network or subnetwork that interconnects and presents shared pools of <strong>&#8230;<a href=\"https:\/\/searchstorage.techtarget.com\/definition\/storage-area-network-SAN\">&nbsp;See&nbsp;complete&nbsp;definition<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time-approximately:<\/span> <span class=\"rt-time\"> 5<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>A logical unit number (LUN) is a unique identifier for designating an individual or collection of physical or virtual&nbsp;storage&nbsp;devices that execute input\/output (I\/O) commands with a host computer, as defined by the Small System Computer Interface (SCSI) standard. Posted by: Margaret Rouse WhatIs.com &#8211;&nbsp;TechTarget &#8211;&nbsp;WhatIs.com Contributor(s):&nbsp;Alexander Gillis SCSI is a widely implemented I\/O interconnect that can facilitate data exchange between<\/p>\n<p><a class=\"more-link\" href=\"https:\/\/tekmart.co.za\/t-blog\/logical-unit-number-lun\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,8,19,4,5,30,3],"tags":[],"class_list":["post-549","post","type-post","status-publish","format-standard","hentry","category-data-center-design-and-facilities","category-data-center-hardware","category-data-centre-servers","category-datacenter-news","category-engage-the-experts","category-expert-advise-and-opinion","category-industry-news-and-expert-advise"],"_links":{"self":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts\/549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/comments?post=549"}],"version-history":[{"count":3,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts\/549\/revisions"}],"predecessor-version":[{"id":555,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts\/549\/revisions\/555"}],"wp:attachment":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/media?parent=549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/categories?post=549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/tags?post=549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}