Logical Volume Manager (Linux): Difference between revisions

From David's Wiki
(Created page with "Logical Volume Manager (LVM) ==Usage==")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Logical Volume Manager (LVM)
Logical Volume Manager (LVM) is a way to format your drives which allows you to easily resize partitions, take snapshots, and stripe partitions across multiple disks. Many operations can also be done online while the partition is mounted.
 
===Background===
 
Volume groups span one or more physical volumes.<br>
Logical volumes are the final partitions/blocks which you put your filesystem on.


==Usage==
==Usage==
===Logical Volume===
<pre>
# Show
sudo lvs
# Create
lvcreate -l +100%FREE MyVolGroup -n homevol
# Resize
lvresize -l +100%FREE --resizefs MyVolGroup/mediavol
</pre>
==Resources==
* [[Archwiki: LVM]]

Latest revision as of 06:15, 15 January 2023

Logical Volume Manager (LVM) is a way to format your drives which allows you to easily resize partitions, take snapshots, and stripe partitions across multiple disks. Many operations can also be done online while the partition is mounted.

Background

Volume groups span one or more physical volumes.
Logical volumes are the final partitions/blocks which you put your filesystem on.

Usage

Logical Volume

# Show
sudo lvs

# Create
lvcreate -l +100%FREE MyVolGroup -n homevol

# Resize
lvresize -l +100%FREE --resizefs MyVolGroup/mediavol

Resources