Course contentsShow
← Linux
Lesson 659 of 1,8197. Storage Management and Logical VolumesFree lesson

Volume group aggregation

Pool multiple physical devices into scalable virtualized storage pools.

In this lesson, you will learn how to combine multiple physical drives into a single, flexible storage pool using volume group aggregation.

Up until now, you have likely treated individual hard drives or partitions as distinct "silos" of storage. If you ran out of space on /dev/sdb1, you were stuck, even if you had an empty /dev/sdc1 sitting right next to it. Volume group aggregation solves this by abstracting the physical hardware away from the filesystem.

The Storage Pool Concept

Think of a Volume Group (VG) as a massive, unified bucket of storage. Instead of formatting a disk directly, you initialize multiple physical devices (Physical Volumes) and "pour" their capacity into this single bucket. Once they are aggregated, the Linux kernel no longer sees them as separate, disconnected devices; it sees one large reservoir of space.

Practical Aggregation

Imagine you have two physical disks, /dev/sdb and /dev/sdc. After initializing them as physical volumes, you aggregate them into a group named data_pool:

# Combine two physical volumes into one group
vgcreate data_pool /dev/sdb /dev/sdc

By running this command, you have effectively eliminated the boundaries between those two disks. If data_pool has a total capacity of 2TB, you can create a logical volume of any size up to 2TB, regardless of whether the files actually reside on the first disk, the second, or are striped across both.

Why Aggregate?

The primary benefit here is scalability. If your data_pool starts running low on space later, you don't need to migrate your data or resize partitions. You simply attach a new physical drive, initialize it, and extend your existing volume group:

# Add more capacity to the existing pool on the fly
vgextend data_pool /dev/sdd

The system immediately recognizes the added capacity and makes it available to your logical volumes. You are no longer limited by the physical size of the hardware currently installed, but rather by the aggregate capacity of all the devices you choose to include in the pool.

Key Takeaway: Volume group aggregation transforms isolated physical devices into a single, expandable storage pool, allowing you to manage space as a flexible resource rather than fixed hardware constraints.