Choosing Between LVM and Standard Partitioning in AlmaLinux
Deciding between LVM and Standard Partitioning in AlmaLinux impacts your ability to scale storage. This guide compares the two and demonstrates how to expand LVM volumes on XFS.
14 Mar 2026, 19:31 UTC

The Storage Layout Dilemma
When deploying AlmaLinux, the most critical early decision is whether to use Standard Partitioning or the Logical Volume Manager (LVM). Choosing incorrectly often leads to a destructive process: if you use standard partitions and run out of space in /var or /home, you cannot easily expand those boundaries without unmounting the filesystem, moving data, or risking data loss during a partition table rewrite.
The primary takeaway is that LVM is the preferred choice for production servers where workloads evolve, while standard partitioning is reserved for specialized, static environments like minimal boot images or specific embedded hardware where every millisecond of boot time and every megabyte of overhead matters.
Comparison of Storage Strategies
| Feature | Standard Partitioning | LVM (Logical Volume Manager) |
|---|---|---|
| Flexibility | Static; resizing is difficult and risky. | Dynamic; volumes can grow or shrink. |
| Disk Spanning | Limited to a single physical disk. | Can span multiple physical disks. |
| Backup Utility | Standard file-level backups. | Supports snapshots for point-in-time state. |
| Overhead | Zero abstraction overhead. | Minimal abstraction layer. |
| Complexity | Low; direct mapping to hardware. | Medium; requires managing VGs and LVs. |
Engineering Trade-offs
LVM Flexibility vs. Complexity
LVM introduces a layer of abstraction between the physical disk (Physical Volume) and the filesystem (Logical Volume). This allows you to create a Volume Group (VG)—a pool of storage—from which you can carve out Logical Volumes (LV). The trade-off is a slightly more complex boot sequence and the requirement to manage the LVM metadata. If the LVM metadata becomes corrupted, recovering data is more difficult than with a standard partition table.
The XFS Constraint
AlmaLinux defaults to the XFS filesystem. While LVM allows you to expand an XFS volume while it is mounted (online growth), XFS cannot be shrunk. If you over-allocate space to a logical volume using XFS, you cannot reclaim that space for another volume without deleting and recreating the LV. This makes initial sizing and the use of "thin provisioning" a critical decision.
Risk Mitigation with Snapshots
LVM snapshots allow you to freeze the state of a volume before performing a high-risk operation, such as a major application upgrade. If the upgrade fails, you can revert to the snapshot. Standard partitions offer no such native mechanism, requiring a full disk image or file-level backup.
Implementation: Validating and Expanding Storage
Assuming you have deployed AlmaLinux with LVM, you can verify your current layout and expand a volume as your data grows. These operations require root permissions or sudo access.
1. Verify Current Hierarchy
Run the following command to see the relationship between the physical disk, the LVM volume group, and the mounted filesystem:
# Run on the AlmaLinux terminal
lsblk
Expected Result: You should see a tree structure where a disk (e.g., sda) contains a partition (e.g., sda2), which is mapped to an LVM volume group, and finally to a logical volume (e.g., root).
2. Inspect Volume Group Capacity
Check how much free space remains in your Volume Group before attempting an expansion:
# Check Volume Group status
vgs
Look for the VFree column. If this is 0, you must first add a new physical disk to the VG using vgextend before you can grow a volume.
3. Expand a Logical Volume
To increase the size of the /home directory by 10GB, execute the following sequence. This example assumes the volume group has sufficient free space.
# Step 1: Extend the Logical Volume
# Replace 'vg_system/lv_home' with your actual VG and LV names
sudo lvextend -L +10G /dev/mapper/vg_system-lv_home
# Step 2: Grow the XFS filesystem to fill the new space
# XFS uses xfs_growfs; for EXT4, use resize2fs
sudo xfs_growfs /home
Verification of Result
Run df -h /home to confirm that the "Size" column reflects the additional 10GB.
Limitations and Safety Checks
- No Redundancy: LVM is a volume manager, not a RAID controller. If the underlying physical disk fails, the LVM volume fails. Use hardware RAID or software mirroring (mdadm) beneath the LVM layer for fault tolerance.
- Thin Provisioning Risks: If you use LVM Thin Pools to over-allocate space, the system may crash or filesystems may become read-only if the actual physical storage is exhausted. Always monitor
lvsoutput for thin pool usage percentages.
Rollback Strategy
Because lvextend and xfs_growfs change the filesystem structure and metadata, they cannot be "undone" via a simple command. To roll back a storage expansion, you must have a snapshot created prior to the operation. If no snapshot exists, the only rollback is to restore the volume from a backup and recreate the partition layout.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.