Multipath I/O: One LUN, Two Paths, No Surprise


A LUN presented once is a single point of failure dressed up as storage. Multipath I/O gives the server two or more independent routes to the same logical unit, so a failed HBA, cable, switch port or array controller becomes a short pause instead of an outage.

Multipath is neither RAID nor backup. It protects the path between host and array, not the data on the array, and it never helps with a deleted file or a damaged file system. Knowing exactly what it covers is the difference between real redundancy and the appearance of it.

Why One Path Is Not Enough

A SAN connection passes through five parts: the host bus adapter, its cable, the switch port, the fabric link and the array controller port. Each is replaceable, and any one can take the volume offline.

Dual-controller arrays protect the storage end. The host end is still a single point unless a second adapter is added, and with one HBA and one cable the array's spare controller guards a failure the server cannot reach.

The fabric is where redundancy often stops unnoticed. Two HBAs cabled into one switch give two paths that share a chassis, a power supply and a firmware image: distinct on paper, identical in practice. Two fabrics, each with its own switch and one HBA port, are the real thing. A SAS fabric has the same trap with its expander.

Count shared components, not lines on the diagram.

Failover vs Load Balancing

Multipath software works in two modes that are often described as one. In failover mode one path carries the traffic and the others wait. If the active path stops answering, the driver moves the queue to a standby path and the workload continues after a short delay.

In load balancing mode the driver spreads I/O across the usable paths. Round robin sends each request to the next path, least queue depth picks the path with the fewest outstanding requests, and service time picks the one answering fastest. Windows MPIO offers several of these, and Linux device-mapper multipath has its own.

Balancing does not create free bandwidth. A deep queue, a small I/O size or a bottleneck at one array port can leave most paths idle. Where both controllers serve the LUN, throughput improves; where only one owns it, extra paths add resilience and nothing else.

Round robin against an asymmetric array can send half the requests to a controller that must forward them, which is why ALUA exists.

ALUA and Preferred Paths

Asymmetric logical unit access lets the array tell the host which ports are optimized for a LUN and which are not. In an active-passive array the LUN is owned by one controller; that port is the preferred path, and the other controller's port forwards requests over the back-end bus.

With ALUA the host can use both controllers without guessing. Requests go to the preferred path, and the non-preferred path stays warm for failover. When the owner fails, the array promotes the other controller, the state changes from standby to active, and the host follows.

Most arrays use implicit ALUA, where the target reports states without prompting. Explicit ALUA lets the host change them, and some older arrays rely on it. Windows MPIO has an ALUA option per claimed device; Linux uses the scsi_dh_alua handler with the service-time or round-robin selector.

Ignore ALUA on an array that supports it and failover works but performance does not. Claim it where it is unsupported and healthy paths may be marked failed.

Configuring MPIO on Windows and Linux

On Windows Server, MPIO must be installed and then told which devices to manage. Nothing is claimed automatically.

On Linux, device-mapper multipath ships with most distributions. The tools are multipathd and multipath, and /etc/multipath.conf sets the vendor, product, path grouping policy and selector. The command multipath -ll prints the topology and the state of each path.

Timeouts matter as much as policy. The default 60-second SCSI timeout is long enough for a stuck path to look healthy while the application has stalled, and too short a value turns a busy array into a failed path. Set the array's error recovery values to match, then pull a cable under load.

Block storage over a network repeats the pattern in NVMe over Fabrics, where native multipath and asymmetric namespace access replace the SCSI layer.

Backing Up Through a Multipath LUN

A backup reads through the same paths as production traffic, which makes it a useful test and a frequent source of trouble. A path that fails mid-job can stall the job until the driver notices, and some tools read that pause as an I/O error.

Check three things first. The tool must open the volume through its multipath device, not a bare disk number that may point at one path. Allow a timeout long enough to absorb a failover. Confirm the array can serve the read load and still answer on the other controller.

A system image written to a network share keeps the backup off the array being read and survives a controller failure. The steps below use Qiling Disk Master with a NAS destination.

Step 1. Launch Qiling Disk Master and open System backup.

open System backup in Qiling Disk Master

Step 2. Confirm the source disks and click the folder icon to choose a destination.

confirm the source disks and open the destination selector

Step 3. Select Add share or NAS devices and enter the network path and credentials.

add a share or NAS device with its path and credentials

Step 4. Check the destination path and click Proceed to start the backup.

confirm the network destination and start the system backup

FAQ

Does multipath I/O replace RAID?

No. RAID keeps the array running when a disk fails; multipath keeps the host connected when a path fails. A volume can have both.

Why does Windows show the same disk twice?

The array presents the LUN on two ports and MPIO has not claimed the device. Add its hardware ID in Discover Multi-Paths, restart, and the entries merge.

Can a path failover break a running backup?

It can, if the timeout is short or the tool binds to a single device path. Use the multipath device, raise the timeout, and test during a non-critical job.

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!


QilingTech uses cookies to ensure you get the best experience on our website.  Learn more  Got it