logical volume
A block device carved out of a volume group, which you format and mount like a partition but can resize later.
In more detail
lvcreate -L gives a size and -l a number of extents; -n names it, or LVM calls it lvol0. lvextend -r grows the volume and the file system on it in one command. It appears as /dev/VG/LV and /dev/mapper/VG-LV.
Examples
lvcreate -n lvdata -L 400M vgdatalvextend -r -L 600M /dev/vgdata/lvdataRelated terms
- LVM — Linux's Logical Volume Manager, which pools disks and partitions into groups and carves flexible volumes out of them.
- volume group — A pool of storage made from one or more physical volumes, divided into equal extents that logical volumes are built from.
- XFS — The default file system of RHEL, built for large files and volumes, which can grow while mounted but can never shrink.
Related guides
Taught in
- Exam Strategy: Order, Verify, And The Docs You May Use — Red Hat Certified System Administrator (EX200) Exam Prep
- GPT Partitions With parted — Red Hat Certified System Administrator (EX200) Exam Prep
- LVM: Physical Volumes, Volume Groups, Logical Volumes — Red Hat Certified System Administrator (EX200) Exam Prep
- Mount By UUID Or Label, For Good — Red Hat Certified System Administrator (EX200) Exam Prep
- Swap And New Volumes Without Losing Data — Red Hat Certified System Administrator (EX200) Exam Prep
- Extend A Logical Volume And Its File System — Red Hat Certified System Administrator (EX200) Exam Prep
- Drill: Storage, Then SELinux, Then The Firewall — Red Hat Certified System Administrator (EX200) Exam Prep
- Mock Exam, Part 1: Eighteen Tasks, One Reboot — Red Hat Certified System Administrator (EX200) Exam Prep
- A Card With No Driver, A Stick With Too Much: Devices And Kernel Modules — CompTIA Linux+ (XK0-006) Exam Prep
- No Space For Tonight's Scans: Partitions And LVM On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- Three PBQs Against The Clock: A Performance-Based Mock On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- Ninety Minutes, Five Domains: The Full Mock And The Week Before The Exam — CompTIA Linux+ (XK0-006) Exam Prep
- LVM End To End: Pools, Volumes And Online Growth — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Swap: Partitions, Volumes, Files And Priorities — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Drill: Volumes, Swap, A Share And A Team Directory — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Mock Exam, Part 1: Seventeen Tasks, One Reboot — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Exam Strategy: The First Fifteen Minutes And ansible-doc — RHCE in Ansible (EX294): Automate Red Hat Systems
- Finding Modules In Collections: ansible-doc And navigator — RHCE in Ansible (EX294): Automate Red Hat Systems
- firewalld: Permanent, Immediate And The Reboot — RHCE in Ansible (EX294): Automate Red Hat Systems
- Storage: Partitions, Volume Groups And Volumes Where The Disk Exists — RHCE in Ansible (EX294): Automate Red Hat Systems
- File Systems And Mounts: mounted, present And UUIDs — RHCE in Ansible (EX294): Automate Red Hat Systems
- Drill: Storage Only Where The Disk Exists — RHCE in Ansible (EX294): Automate Red Hat Systems