Storage Fundamentals Series

🎧 [Listen] The Storage Fundamentals Series, Fully Recapped

This article is an audio-learning recap for anyone who’s already read all nineteen articles in the Storage Fundamentals series. Use your browser’s or phone’s text-to-speech feature and let it play in the background during a commute or while doing chores. There are no diagrams, tables, or code here — just spoken-style prose, stitching the whole series back together into a single, continuous thread.

The series started with a familiar question: after building RAID and installing an OS, why does the C drive work immediately, while a newly added drive needs to be initialized before you can use it? This came down to RAID and OS disk management being entirely separate layers. RAID combines multiple physical disks into one logical disk, and from there, the OS writes partition information onto that logical disk using a scheme called MBR or GPT, creates a volume, and finally writes the filesystem’s own structure through a step called formatting. Keeping this chain of layers separate was the series’ first theme.

Next came the difference between FC cabling and LAN cabling. FC, Fibre Channel, never uses an IP address at all when connecting a server to storage. Instead, it recognizes who it’s talking to using a WWN, a long identifier uniquely assigned to each device. It’s an entirely separate world from LAN, independent all the way down to the physical layer, the cabling, and the equipment — which is exactly why the real-world explanation “you don’t need to worry about segments” held up. We also covered SAS, Serial Attached SCSI, the spec used for direct connections inside a server chassis. FC, SAS, and LAN are three connection methods with entirely different design philosophies, each suited to a different connection range and requirement — the question was never which one is “better,” but which to use in which situation.

Next came the difference between zoning and LUN masking. Zoning restricts, at the FC switch’s fabric layer, which servers and storage devices can communicate — but a server that passes zoning doesn’t necessarily get to see every LUN on that storage device. LUN masking is an entirely separate checkpoint: the storage device itself further restricts which LUNs it shows, even among the parties zoning has already allowed to communicate. Thinking of zoning as permission to enter a hallway and LUN masking as the lock on an individual room door makes it easier to understand these as two separate layers. And don’t forget: in real-world practice, combining both is the standard approach.

Then came how the NTFS filesystem actually works. Inside a formatted volume, a single enormous ledger called the MFT, the Master File Table, manages the information for every file and folder. We also covered resident attributes — the mechanism where a small file’s data isn’t stored somewhere else at all, but sits directly inside the MFT record itself. And we covered the real identity of a folder: it’s not a container holding the actual files inside it — it’s merely an index, mapping the names of the files that belong to it to their locations in the MFT. Behind the seemingly simple act of opening a file in File Explorer was this concrete sequence: following that index to reach the right MFT record.

The final article put the RAID fundamentals from the lecture into practice, hands-on, actually building it with Linux’s mdadm. You built a RAID1 array across two virtual disks, and deliberately marked one as failed, confirming the array entered a “degraded” state while still serving reads and writes without issue. That was redundancy’s concrete, real-world effect. Then, adding a new disk triggered a “rebuild” — copying the healthy disk’s entire content, start to finish — and once it finished, the array returned to its original, redundant state. The most important lesson from this hands-on was that building RAID isn’t the end of the story — without an accompanying monitoring setup to detect a degraded state, “it’s supposed to be redundant, but is actually defenseless” can persist, completely unnoticed.

Next came RAID0, striping, holding an entirely opposite design philosophy from RAID1. Where RAID1 duplicates data to secure redundancy, RAID0 is purely a mechanism that raises speed by distributing a single file’s own content across multiple disks. Since it holds zero redundancy at all, even one disk failing among those making up the array makes every single file on that array practically unrecoverable. We also covered the counterintuitive property that the array’s overall failure probability actually rises the more disks you add. Don’t forget the lesson: RAID0 should be used paired with the premise that performance is the top priority and losing that data wouldn’t be business-critical, and if you need both speed and redundancy, you need to consider a more complex setup, like RAID10, combining RAID0 with RAID1.

From here, the series moved into more advanced territory. First, RAID5 and RAID6’s parity calculation. Where RAID1 duplicates the data itself, RAID5 secures redundancy through an entirely different idea: computing a smaller recovery value, “parity,” via a simple calculation called XOR, and storing it on a separate disk. XOR’s property — knowing the parity plus one of the two data values lets you back-calculate the other — was the mathematical truth behind recovering from a single disk failure. We also covered RAID6 holding two independent kinds of parity, tolerating two simultaneous failures.

Next came bit rot (silent data corruption) and checksums. All RAID can handle is a disk fully failing and reporting a read error — against bit rot, where a disk quietly returns data off by just one bit with no error reported at all, traditional RAID is powerless. A RAID controller can detect a mirror mismatch, but has no means at all of judging which side holds the correct data. ZFS and Btrfs use a checksum, stored separately from the data, to determine which copy is corrupted and automatically repair it. And don’t forget: scrubbing, a periodic inspection, creates a chance to discover quiet corruption before an actual disk failure.

Next came erasure coding. RAID5/6’s parity was a mechanism staying contained within a single disk array, at a fixed 1-to-1 ratio, but erasure coding generalizes that ratio into any ratio at all, k data chunks to m parity chunks, spread across multiple nodes in a distributed cluster. Where triple replication needs 3x the capacity to survive two failures, an erasure-coded configuration with equivalent durability needs only about 1.4x to 1.6x — that capacity efficiency is exactly why it’s widely adopted in cloud object storage. Don’t forget the trade-off, though: recovery is slower and more CPU-intensive.

Next came a RAID controller’s write-back and write-through. Write-through waits for the real write to disk before responding, safe but slow; write-back responds complete instantly once written to cache, fast. A battery called a BBU protects write-back’s cache, but its charge has a limit of about 24 to 48 hours, and many controllers, on detecting a degraded BBU, automatically switch to write-through with no one noticing. Don’t forget: this is a typical cause behind the seemingly unexplainable symptom of “performance suddenly dropped one day.”

Next came how iSCSI works. Where FC achieves a SAN with dedicated cabling and equipment, iSCSI takes an entirely different idea: wrapping the SCSI command itself inside a TCP/IP packet, achieving a SAN on top of an existing IP network. We covered the terms initiator and target carrying over directly from SCSI, and the IQN, an identifier designed to preserve uniqueness regardless of IP address changes.

Next came NFS, storage operating at an entirely different layer. iSCSI hands over the disk itself (a block device) at the block level, with the client side bearing responsibility for creating its own filesystem, while NFS is file-level storage, where the NFS server itself already manages the filesystem. This difference has a major impact on how safe concurrent access is for multiple clients — uncoordinated concurrent access to the same iSCSI LUN carries a risk of data corruption, while NFS naturally supports this through protocol-level locking. And don’t forget: NFSv4 integrated the locking mechanism into the protocol itself, changing the design from stateless to stateful, and consolidating communication onto just one port, 2049.

Next came Multipath I/O (MPIO). Set up multiple physical paths for redundancy, and without doing anything about it, the OS recognizes each path as a separate disk. A WWID, a unique identifier the storage array assigns to each individual LUN, is what multipath software uses to consolidate multiple devices sharing the same WWID into a single logical multipath device. And don’t forget: where RAID combines multiple separate disks into one, Multipath I/O consolidates multiple paths to one single, same LUN — the exact opposite direction of consolidation.

Then came how thin provisioning works. Managing the logical capacity shown to the server separately from the physical capacity the storage device actually consumes greatly improves storage utilization efficiency — but we also covered the risk of running out of capacity, “overcommit,” where the combined apparent capacity of multiple volumes exceeds the real total capacity.

The final article put the parity mechanism from the lecture into practice, hands-on, actually building RAID5 with mdadm. You built a RAID5 array across three virtual disks, and confirmed that deliberately marking one as failed still kept reads and writes continuing accurately, from the remaining two disks plus parity. You confirmed, with your own hands, that where RAID1’s degraded state simply read the other duplicate, RAID5’s degraded state is a more complex process, recomputing data from the remaining data and parity on the spot, every time.

Next came LVM, Logical Volume Manager, snapshots. A snapshot holds zero copy of the original volume the instant it’s created. Every time the original volume gets written to, only the block about to be overwritten gets preserved into the snapshot, through a mechanism called copy-on-write. This was one step further on the idea you learned from thin provisioning — separating apparent capacity from real consumption. And because a snapshot is dependent on the original volume, it gets lost right along with it if the original volume physically fails — which is exactly why a snapshot is never a substitute for a real backup, a lesson we also covered.

The final topic was iSCSI security. Left unconfigured, an iSCSI target lets anyone who merely knows its IQN identifier log in. You reproduced this inside your own controlled test environment, and confirmed that an IQN isn’t a credential for proving identity — it’s merely a name for identification. You also confirmed that configuring CHAP authentication concretely lets you reject a login from anyone who doesn’t know the right username and password. This hands-on taught the premise that many devices’ default configurations prioritize getting them working first, leaving safe configuration as something the user needs to add themselves.

The final article wasn’t about learning a new technique, like earlier ones. It was a capstone project: given the setting of a fictional video production studio, “KoiKoi Studio,” launching a storage infrastructure multiple editors could share, you designed, with your own hands, a single integrated storage infrastructure combining everything you’d learned separately — redundancy via RAID5, SAN construction and CHAP authentication via iSCSI, and flexible capacity management and snapshot operations via LVM. The ability to follow a fixed procedure and the ability to design on your own from requirements are entirely different skills, and even having finished every individual hands-on, you’re not immediately effective in real-world work without the experience of combining them into one coherent infrastructure.

Looking back across all nineteen articles, one consistent pattern emerges. The distinction between RAID and OS disk management as two separate layers, the difference between zoning and LUN masking as two separate checkpoints for reachability versus visibility, write-back/write-through and a BBU’s safety-first automatic fallback, erasure coding’s generalization of RAID’s parity into a distributed cluster, NFS operating at an entirely different layer (file-level) from iSCSI, the difference between bit rot (a kind of corruption RAID can’t handle) and checksums (a defense at an entirely different layer), the difference between FC, SAS, and LAN — connection methods that look similar but carry entirely different design philosophies — NTFS’s true identity, where a folder turns out to be an index rather than a container, RAID0’s design philosophy of completely abandoning redundancy, the exact opposite of RAID1, RAID5’s parity idea of holding only the minimum information instead of a complete duplicate, the difference between iSCSI achieving the same SAN at a different layer than FC, Multipath I/O consolidating in the exact opposite direction from RAID, thin provisioning’s difference between apparent and real capacity, the difference in internal process between RAID1’s and RAID5’s degraded states, an LVM snapshot’s real identity resting on copy-on-write, the distinction between an IQN as identification versus as a credential, and the entire storage infrastructure you integrated in the capstone project — every one of them shared the same shape: behind one name or behavior visible on the surface, several independent layers or mechanisms are actually stacked together. Looking at storage behavior in front of you, and digging one layer deeper to ask what the real structure underneath actually is. That’s the perspective a top-1% engineer carries away from this series. And that’s the recap of the Storage Fundamentals series, complete.

Comments

Feel free to leave thoughts, questions, or corrections below (sign in with a GitHub account to comment or react).