5
Most read
6
Most read
8
Most read
Manage Logical Volumes
Logical Volume Management(LVM)
Abstracts physical storage, enabling the creation of flexible logical
volumes
Purpose: Simplify storage
management by allowing easy
resizing and allocation of disk
space
Source: 1.3. LVM Architecture Overview | Red Hat Product Documentation
● Physical Volumes (PVs): Actual disks or partitions
● Volume Groups (VGs): Collection of physical volumes
combined into a single storage pool which can be managed
together
● Logical Volumes (LVs): Virtual partitions created from the
volume group which are used by the operating system
Components of LVM
Source: Volume Management (helios.de)
Add Disk and Create LVM Partition
Pre-requisite: Create a partition on a disk before following these commands
Step 1: Change the partition type from ‘Linux’ to ‘Linux LVM’ just after partition
is created
● Command: t ‘8e’
Note: (‘8e’ is hex code associated with LVM)
Step 2: Install the 'lvm2' package on the machine
● Command: yum install lvm2
Step 3: Create the physical volume
● Command: pvcreate <partition-name>
Step 4: Create the volume group
● Command: vgcreate <volume-group-name> <partition-name>
Step 5: Create the logical volume
● Command: lvcreate-n <logical-volume-name>--size <size>
<volume-group-name>
Step 6: Format this disk and assign file system to it
● Command: mkfs.xfs <logical-volume-path>
Step 7: Mount this disk to a drive
● Command: mount <logical-volume-path> <directory-name>
Extend existing disk using LVM
Pre-requisite: Create another disk partition (type: linux > linux LVM)
Extend existing volume group to new partition
● Command: vgextend <existing-volume-group> <partition-name>
Extend the logical volume
● Command: lvextend-L+<size-to-extend> <logical-volume-path>
Extend the file system
● Command: xfs_growfs <logical-volume-path>

More Related Content

PDF
Master Logical Volume Management - RHCSA+.pdf
PPT
Storage Management using LVM
PDF
Managing Multiple Logical Volumes - RHCSA+.pdf
PPTX
Red Hat - LVM - Mazenet Solution
ODP
Logical Volume Manager. An Introduction
PDF
Linux LVM Logical Volume Management
PPTX
Linux training in chandigarh
PDF
Lvm advanced topics
Master Logical Volume Management - RHCSA+.pdf
Storage Management using LVM
Managing Multiple Logical Volumes - RHCSA+.pdf
Red Hat - LVM - Mazenet Solution
Logical Volume Manager. An Introduction
Linux LVM Logical Volume Management
Linux training in chandigarh
Lvm advanced topics

Similar to Manage Logical Volume in RHEL - RHCSA (RH134).pdf (20)

PDF
Cluster logical volume_manager
PDF
Putting some "logic" in LVM.
PDF
lvm logical volume management is a tool in Linux that allows you to manage st...
ODP
Lvm and gang 2015
PPSX
Logical volume manager xfs
PDF
Red hat lvm cheatsheet
TXT
ODP
4. storage lvm
ODP
Disks and-filesystems
ODP
Disks and-filesystems
PPT
Storage Management in Linux OS.ppt
PDF
Inspection and maintenance tools (Linux / OpenStack)
PDF
Logical Volume Manager
PPTX
3 - Disk Partitioning in Red Hat
PDF
LVM Management & Disaster Recovery - RHCSA+.pdf
PPT
logical volume manager.ppt
PDF
Red hat enterprise_linux-6-logical_volume_manager_administration-en-us
PPT
RAID and LVM
PPTX
How lve stats2 works for you and your customers
PDF
Configuring+Disks+and+Filsystems-pdf.pdf
Cluster logical volume_manager
Putting some "logic" in LVM.
lvm logical volume management is a tool in Linux that allows you to manage st...
Lvm and gang 2015
Logical volume manager xfs
Red hat lvm cheatsheet
4. storage lvm
Disks and-filesystems
Disks and-filesystems
Storage Management in Linux OS.ppt
Inspection and maintenance tools (Linux / OpenStack)
Logical Volume Manager
3 - Disk Partitioning in Red Hat
LVM Management & Disaster Recovery - RHCSA+.pdf
logical volume manager.ppt
Red hat enterprise_linux-6-logical_volume_manager_administration-en-us
RAID and LVM
How lve stats2 works for you and your customers
Configuring+Disks+and+Filsystems-pdf.pdf
Ad

More from RHCSA Guru (20)

PDF
Flatpak CLI Application Management & Building on RHEL.pdf
PDF
How to Set Up a RHEL 9 Virtual Lab for RHCSA Practice.pdf
PDF
CompTIA Linux (Plus) Exam Overview .pdf
PDF
Linux Professional Institute LPIC-1 Exam.pdf
PDF
Ansible Vault Encrypting and Protecting Secrets - RHCE.pdf
PDF
Ansible Variables in Playbook - RHCE.pdf
PDF
Comprehensive Guide to Ansible Application Roles.pdf
PDF
Using Tags in Ansible Playbooks RHCE.pdf
PDF
Comprehensive Guide to Ansible Roles - RHCE
PDF
Mastering Handlers, Conditions, and Loops in Ansible Playbooks - RHCE.pdf
PDF
Essential Ad-hoc Commands in Ansible - RHCE.pdf
PDF
RHEL in Shell Scripting Advanced - RHCSA+.pdf
PDF
Shell Scripting Intermediate - RHCSA+.pdf
PDF
Introduction to Shell Scripting - RHCSA+.pdf
PDF
Command Line Text Processing - RHCSA +.pdf
PDF
Mounting and Creating Links - RHCSA (RH124) .pdf
PDF
Basic Command Line Tools - RHCSA (RH124).pdf
PDF
Podman Networking Essentials - RHCSA+.pdf
PDF
Building and Running Podman Containers - RHCSA+.pdf
PDF
Understanding Podman Basics - RHCSA+.pdf
Flatpak CLI Application Management & Building on RHEL.pdf
How to Set Up a RHEL 9 Virtual Lab for RHCSA Practice.pdf
CompTIA Linux (Plus) Exam Overview .pdf
Linux Professional Institute LPIC-1 Exam.pdf
Ansible Vault Encrypting and Protecting Secrets - RHCE.pdf
Ansible Variables in Playbook - RHCE.pdf
Comprehensive Guide to Ansible Application Roles.pdf
Using Tags in Ansible Playbooks RHCE.pdf
Comprehensive Guide to Ansible Roles - RHCE
Mastering Handlers, Conditions, and Loops in Ansible Playbooks - RHCE.pdf
Essential Ad-hoc Commands in Ansible - RHCE.pdf
RHEL in Shell Scripting Advanced - RHCSA+.pdf
Shell Scripting Intermediate - RHCSA+.pdf
Introduction to Shell Scripting - RHCSA+.pdf
Command Line Text Processing - RHCSA +.pdf
Mounting and Creating Links - RHCSA (RH124) .pdf
Basic Command Line Tools - RHCSA (RH124).pdf
Podman Networking Essentials - RHCSA+.pdf
Building and Running Podman Containers - RHCSA+.pdf
Understanding Podman Basics - RHCSA+.pdf
Ad

Recently uploaded (20)

PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
Architecture types and enterprise applications.pdf
PPTX
The various Industrial Revolutions .pptx
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
August Patch Tuesday
PPTX
Tartificialntelligence_presentation.pptx
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Unlock new opportunities with location data.pdf
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
Developing a website for English-speaking practice to English as a foreign la...
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Five Habits of High-Impact Board Members
sustainability-14-14877-v2.pddhzftheheeeee
Architecture types and enterprise applications.pdf
The various Industrial Revolutions .pptx
1 - Historical Antecedents, Social Consideration.pdf
A review of recent deep learning applications in wood surface defect identifi...
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
A contest of sentiment analysis: k-nearest neighbor versus neural network
observCloud-Native Containerability and monitoring.pptx
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
August Patch Tuesday
Tartificialntelligence_presentation.pptx
Enhancing emotion recognition model for a student engagement use case through...
Unlock new opportunities with location data.pdf
Taming the Chaos: How to Turn Unstructured Data into Decisions
O2C Customer Invoices to Receipt V15A.pptx
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Developing a website for English-speaking practice to English as a foreign la...
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Zenith AI: Advanced Artificial Intelligence
Five Habits of High-Impact Board Members

Manage Logical Volume in RHEL - RHCSA (RH134).pdf

  • 2. Logical Volume Management(LVM) Abstracts physical storage, enabling the creation of flexible logical volumes Purpose: Simplify storage management by allowing easy resizing and allocation of disk space Source: 1.3. LVM Architecture Overview | Red Hat Product Documentation
  • 3. ● Physical Volumes (PVs): Actual disks or partitions ● Volume Groups (VGs): Collection of physical volumes combined into a single storage pool which can be managed together ● Logical Volumes (LVs): Virtual partitions created from the volume group which are used by the operating system Components of LVM
  • 5. Add Disk and Create LVM Partition Pre-requisite: Create a partition on a disk before following these commands Step 1: Change the partition type from ‘Linux’ to ‘Linux LVM’ just after partition is created ● Command: t ‘8e’ Note: (‘8e’ is hex code associated with LVM)
  • 6. Step 2: Install the 'lvm2' package on the machine ● Command: yum install lvm2 Step 3: Create the physical volume ● Command: pvcreate <partition-name>
  • 7. Step 4: Create the volume group ● Command: vgcreate <volume-group-name> <partition-name>
  • 8. Step 5: Create the logical volume ● Command: lvcreate-n <logical-volume-name>--size <size> <volume-group-name>
  • 9. Step 6: Format this disk and assign file system to it ● Command: mkfs.xfs <logical-volume-path> Step 7: Mount this disk to a drive ● Command: mount <logical-volume-path> <directory-name>
  • 10. Extend existing disk using LVM Pre-requisite: Create another disk partition (type: linux > linux LVM) Extend existing volume group to new partition ● Command: vgextend <existing-volume-group> <partition-name>
  • 11. Extend the logical volume ● Command: lvextend-L+<size-to-extend> <logical-volume-path> Extend the file system ● Command: xfs_growfs <logical-volume-path>