stringtranslate.com

Logical unit number

In computer storage, a logical unit number, or LUN, is a number used to identify a logical unit, which is a device addressed by the SCSI protocol or by Storage Area Network protocols that encapsulate SCSI, such as Fibre Channel or iSCSI.[1]

A LUN may be used with any device which supports read/write operations, such as a tape drive, but is most often used to refer to a logical disk as created on a SAN. Though not technically correct, the term "LUN" is often also used to refer to the logical disk itself.[2]

Examples

To provide a practical example, a typical multi-disk drive has multiple physical SCSI ports, each with one SCSI target address assigned. An administrator may format the disk array as a RAID and then partition this RAID into several separate storage-volumes. To represent each volume, a SCSI target is configured to provide a logical unit. Each SCSI target may provide multiple logical units and thus represent multiple volumes, but this does not mean that those volumes are concatenated. The computer that accesses a volume on the disk array identifies which volume to read or write with the LUN of the associated logical unit.

In another example: a single disk-drive has one physical SCSI port. It usually provides just a single target, which in turn usually provides just a single logical unit whose LUN is zero. This logical unit represents the entire storage of the disk drive.

Use

How to select a LUN: In the early versions of SCSI, an initiator delivers a Command Descriptor Block (CDB) to a target (physical unit) and within the CDB is a 3-bit LUN field to identify the logical unit within the target. In current SCSI, the initiator delivers the CDB to a particular logical unit, so the LUN appears in the transport layer data structures and not in the CDB.

LUN vs. SCSI Device ID: The LUN is not the only way to identify a logical unit. There is also the SCSI Device ID, which identifies a logical unit uniquely in the world. Labels or serial numbers stored in a logical unit's storage volume often serve to identify the logical unit. However, the LUN is the only way for an initiator to address a command to a particular logical unit, so initiators often create, via a discovery process, a mapping table of LUN to other identifiers.

Sensible al contexto: el LUN identifica una unidad lógica solo dentro del contexto de un iniciador particular. Por lo tanto, dos computadoras que acceden al mismo volumen de disco pueden conocerlo mediante LUN diferentes.

LUN 0: Hay un LUN que debe existir en cada destino: cero. La unidad lógica con LUN cero es especial porque debe implementar algunos comandos específicos, en particular Informar LUN, que es la forma en que un iniciador puede encontrar todos los demás LUN en el objetivo. Pero LUN zero no necesita proporcionar ningún otro servicio, como un volumen de almacenamiento.

Muchos destinos SCSI contienen sólo una unidad lógica (por lo que su LUN es necesariamente cero). Otros tienen una pequeña cantidad de unidades lógicas que corresponden a dispositivos físicos separados y tienen LUN fijos. Un sistema de almacenamiento grande puede tener hasta miles de unidades lógicas, definidas lógicamente mediante un comando administrativo, y el administrador puede elegir el LUN o el sistema puede elegirlo.

c_t_d_s_ nomenclatura en Unix

Desde la perspectiva de la computadora, SCSI LUN es solo una parte de la dirección SCSI completa. La dirección completa del dispositivo se obtiene de:

En la familia de sistemas operativos Unix , estos ID suelen combinarse en un único "nombre". Por ejemplo, /dev/dsk/c1t2d3s4 se referiría al controlador 1, destino 2, disco 3, segmento 4. Actualmente, Solaris , HP-UX , NCR y otros continúan usando la nomenclatura "c_t_d_s_", mientras que AIX la ha abandonado en favor de de nombres más familiares. HP-UX se refiere a esto como modelo de nombres heredado desde la versión 11i v3.

Otros usos

El término número de unidad lógica también se aplica a un canal de acceso de entrada/salida dentro de ciertos lenguajes de programación .

Ver también

Referencias

  1. ^ ab "¿Qué es un número de unidad lógica (LUN)?". Techinfo . Consultado el 30 de marzo de 2016 .
  2. ^ James largo (2006). Fundamentos del protocolo de redes de almacenamiento. Prensa de Cisco . pag. 111.ISBN 9781587051609.