Kahibaro
Discord Login Register

3.2 Storage and Filesystems

Why Storage Matters in Linux Administration

In day‑to‑day Linux administration, storage is one of the most critical areas you’ll manage. Everything from user data and databases to logs and backups ultimately lives on some kind of storage. Mismanaging it can lead to:

This chapter gives you the big picture of storage and filesystems on a Linux system, so the later chapters in this section (devices/partitions, mounting, disk tools, archiving) make sense in context.

You won’t learn specific commands in depth here—that’s for the child chapters—but you’ll understand the concepts they operate on.

Basic Storage Building Blocks

Think of Linux storage as a stack of layers:

  1. Physical storage devices
  2. Partitions and volume managers
  3. Filesystems
  4. Mount points and directory layout
  5. Data and applications

Physical Storage Devices

At the lowest level are devices you plug into servers or virtual machines:

In Linux, these appear as device files, typically under /dev (details are covered in “Devices and partitions”).

Partitions, LVM, and RAID (Conceptual Overview)

Between the raw device and your filesystem, you often have some abstraction:

You don’t need to be an expert yet—just recognize that a filesystem might sit on top of a plain partition, an LVM logical volume, or a RAID array.

What Is a Filesystem (in Practice)?

A filesystem is the structure that organizes how data is stored and retrieved on a storage device or volume.

Conceptually, a filesystem provides:

Different filesystems make different trade‑offs in performance, reliability, features, and complexity. Later in this section you’ll see specific Linux filesystems (like EXT4, XFS, Btrfs), but here we’ll focus on shared concepts.

Key Filesystem Concepts

You’ll see these terms often when dealing with filesystems:

The chapter “Mounting and unmounting” will handle the practical side; here, you just need to know that a filesystem is “usable” only when it is mounted somewhere.

The Storage Stack in Linux

It helps to visualize the full path from hardware to files:

$$
\text{Application} \rightarrow \text{File} \rightarrow \text{VFS} \rightarrow \text{Filesystem} \rightarrow \text{Block Layer} \rightarrow \text{Device}
$$

Breaking this down:

Understanding this hierarchy is important when troubleshooting: a problem could be at any layer—application, filesystem, device, or hardware.

Common Storage Use Cases and Layouts

On a real system, you rarely have “one big disk with one filesystem”. Instead, you design a layout that fits your needs.

Typical Server Layout (Conceptual)

A common simple scheme might look like:

Why separate?

Storage Types by Use Case

Different data has different requirements:

As an administrator, you design both physical placement (which disk or RAID) and logical layout (which mount points, filesystem options) based on these needs.

Performance, Reliability, and Trade‑offs

Storage decisions always involve trade‑offs between:

Performance Factors (High‑Level)

Performance depends on:

Later chapters on disk usage tools and monitoring will help you measure these in practice.

Reliability and Data Integrity

Filesystems and storage stacks use several mechanisms to protect data:

Long‑term safety requires backups and sometimes offsite copies, which are addressed in the “Backup and Restore” section.

Local vs Network Storage

Not all storage is physically attached to your machine.

Local Storage

Network Storage (Overview Only)

Linux can use network‑hosted storage as if it were local:

These are covered in much more detail in later “Network Services” chapters (e.g., NFS, Samba). At this level, you just need to know that a “disk” might be a network device, not a local one.

Managing Storage Over Time

Storage management is not a one‑time activity during installation; it’s an ongoing responsibility.

Key recurring tasks include:

Those practical tools and workflows will be covered in the subsequent chapters in this section.

How This Chapter Fits with the Rest

This chapter gave you the “map” of Linux storage:

Next, the child chapters in “Storage and Filesystems” will drill into specific topics:

Keep this mental model of the storage stack in mind as you learn the individual components—it will make the commands and tools much easier to understand.

Views: 120

Comments

Please login to add a comment.

Don't have an account? Register now!