ArticleslgStudy

computer science

LIO (SCSI target)

LIO (SCSI target) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand LIO (SCSI target) rather than just read about it. In short: The Linux-IO (LIO) is an open-source Small Computer System Interface (SCSI) target implementation included with the Linux kernel. Unlike initiators, which begin sessions, LIO functions as a target, presenting one or more Logical Unit Numbers (LUNs) to a SCSI initiator, receiving SCSI commands, and managing the input/output data transfers.

LIO (SCSI target) — main illustration
LIO (SCSI target) — illustration

Key takeaways

  • LIO (SCSI target) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect LIO (SCSI target) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of LIO (SCSI target) from memory before moving on to harder problems.

Reference excerpt

The Linux-IO (LIO) is an open-source Small Computer System Interface (SCSI) target implementation included with the Linux kernel. Unlike initiators, which begin sessions, LIO functions as a target, presenting one or more Logical Unit Numbers (LUNs) to a SCSI initiator, receiving SCSI commands, and managing the input/output data transfers. LIO supports a wide range of storage protocols and transport fabrics, including but not limited to Fibre Channel over Ethernet (FCoE), Fibre Channel, IEEE 1394 and iSCSI. It is utilized in several Linux distributions and is a popular choice for cloud environments due to its integration with tools like QEMU/KVM, libvirt, and OpenStack. The LIO project is maintained by Datera, a Silicon Valley-based storage solutions provider. On January 15, 2011, LIO was merged into the Linux kernel mainline with version 2.6.38, which was officially released on March 14, 2011. Subsequent versions of the Linux kernel have introduced additional fabric modules to expand its compatibility. LIO competes with other SCSI target modules in the Linux ecosystem. The SCSI Target Framework (SCST) is a prominent alternative for general SCSI target functionality, while for iSCSI-specific targets, the older iSCSI Enterprise Target (IET) and SCSI Target Framework (STGT) also have industry adoption.

Background The SCSI standard provides an extensible semantic abstraction for computer data storage devices, and is used with data storage systems. The SCSI T10 standards define the commands and protocols of the SCSI command processor (sent in SCSI CDBs), and the electrical and optical interfaces for various implementations. A SCSI initiator is an endpoint that initiates a SCSI session. A SCSI target is the endpoint that waits for initiator commands and executes the required I/O data transfers. The SCSI target usually exports one or more LUNs for initiators to operate on. The LIO Linux SCSI Target implements a generic SCSI target that provides remote access to most data storage device types over all prevalent storage fabrics and protocols. LIO neither directly accesses data nor does it directly communicate with applications.

Architecture

LIO implements a modular and extensible architecture around a parallelised SCSI command processing engine. The LIO SCSI target engine is independent of specific fabric modules or backstore types. Thus, LIO supports mixing and matching any number of fabrics and backstores at the same time. The LIO SCSI target engine implements a comprehensive SPC-3/SPC-4 feature set with support for high-end features, including SCSI-3/SCSI-4 Persistent Reservations (PRs), SCSI-4 Asymmetric Logical Unit Assignment (ALUA), VMware vSphere APIs for Array Integration (VAAI), T10 DIF, etc. LIO is configurable via a configfs-based kernel API, and can be managed via a command-line interface and API (targetcli).

SCSI target The concept of a SCSI target isn't restricted to physical devices on a SCSI bus, but instead provides a generalised model for all receivers on a logical SCSI fabric. This includes SCSI sessions across interconnects with no physical SCSI bus at all. Conceptually, the SCSI target provides a generic block storage service or server in this scenario.

Back-stores Back-stores provide the SCSI target with generalised access to data storage devices by importing them via corresponding device drivers. Back-stores do not need to be physical SCSI devices. The most important back-store media types are:

Block: The block driver allows using raw Linux block devices as back-stores for export via LIO. This includes physical devices, such as HDDs, SSDs, CDs/DVDs, RAM disks, etc., and logical devices, such as software or hardware RAID volumes or LVM volumes. File: The file driver allows using files that can reside in any Linux file system or clustered file system as back-stores for export via LIO. Raw: The raw driver allows using unstructured memory as back-stores for export via LIO. As a result, LIO provides a generalised model to export block storage.

Fabric modules Fabric modules implement the front-end of the SCSI target by encapsulating and abstracting the properties of the various supported interconnect. The following fabric modules are available.

FCoE

The Fibre Channel over Ethernet (FCoE) fabric module allows the transport of Fibre Channel protocol (FCP) traffic across lossless Ethernet networks. The specification, supported by a large number of network and storage vendors, is part of the Technical Committee T11 FC-BB-5 standard. LIO supports all standard Ethernet NICs. The FCoE fabric module was contributed by Cisco and Intel, and released with Linux 3.0 on July 21, 2011.

Fibre Channel Fibre Channel is a high-speed network technology primarily used for storage networking. It is standardized in the Technical Committee T11 of the InterNational Committee for Information Technology Standards (INCITS). The QLogic Fibre Channel fabric module supports 4- and 8-gigabit speeds with the following HBAs:

QLogic 2400 Series (QLx246x), 4GFC QLogic 2500 Series (QLE256x), 8GFC (fully qual'd) The Fibre Channel fabric module and low-level driver (LLD) were released with Linux 3.5 on July 21, 2012. With Linux 3.9, the following QLogic HBAs and CNAs are also supported:

QLogic 2600 Series (QLE266x), 16GFC, SR-IOV QLogic 8300 Series (QLE834x), 16GFS/10 GbE, PCIe Gen3 SR-IOV QLogic 8100 Series (QLE81xx), 8GFC/10 GbE, PCIe Gen2 This makes LIO the first open source target to support 16-gigabit Fibre Channel.

IEEE 1394

The FireWire SBP-2 fabric module enables Linux to export local storage devices via IEEE 1394, so that other systems can mount them as an ordinary IEEE 1394 storage device. IEEE 1394 is a serial-bus interface standard for high-speed communications and isochronous real-time data transfer. It was developed by Apple as "FireWire" in the late 1980s and early 1990s, and Macintosh computers have supported "FireWire target disk mode" since 1999. The FireWire SBP-2 fabric module was released with Linux 3.5 on July 21, 2012.

… excerpt ends here. Continue reading the full article.

Illustrations

LIO (SCSI target) illustration
LIO (SCSI target): LIO Architecture
LIO Architecture
LIO (SCSI target): Combined storage and local area network
Combined storage and local area network
LIO (SCSI target): LIO Firewire Target for Mac OS X
LIO Firewire Target for Mac OS X

Worked examples

Example 1 — a first encounter with LIO (SCSI target)

Start with the simplest possible case. Write down what LIO (SCSI target) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to LIO (SCSI target) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about LIO (SCSI target) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of LIO (SCSI target)

In research
LIO (SCSI target) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses LIO (SCSI target) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
LIO (SCSI target) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Free software programmed in C, Free software programmed in Python, Linux, so understanding it makes those chapters shorter.
In everyday life
Look for LIO (SCSI target) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “LIO (SCSI target)” →

How to study LIO (SCSI target) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what LIO (SCSI target) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain LIO (SCSI target) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is LIO (SCSI target) in simple terms?

The Linux-IO (LIO) is an open-source Small Computer System Interface (SCSI) target implementation included with the Linux kernel. Unlike initiators, which begin sessions, LIO functions as a target, presenting one or more Logical Unit Numbers (LUNs) to a SCSI initiator, receiving SCSI commands, and…

Why does LIO (SCSI target) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study LIO (SCSI target)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on LIO (SCSI target).

Tags

  • Free software programmed in C
  • Free software programmed in Python
  • Linux
  • SCSI
  • Software using the GNU General Public License

Keep exploring