LVM: Difference between revisions
imported>Makefu update disko link to nix-community |
Converted type descriptions to a definition list |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
The Logical Volume Manager (LVM) provides means to dynamically organize partitions. | [https://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux) The Logical Volume Manager] (LVM) provides means to dynamically organize partitions. | ||
== Basic Setup == | == Basic Setup == | ||
LVM manages three types: | LVM manages three types: | ||
; Physical volume (PV) : Space reservation consisting of a disk partition, a whole disk, a meta device, or a loopback file. | |||
; Volume group (VG) : Group of physical volumes. | |||
; Logical volume (LV) : Space reservation inside a volume group, which may be laid across multiple physical volumes. | |||
=== Create a logical volume === | === Create a logical volume === | ||
Line 16: | Line 17: | ||
# creates a new logical volume named "home" with the size of 10GB (check with lvdisplay) | # creates a new logical volume named "home" with the size of 10GB (check with lvdisplay) | ||
# makes /dev/pool/home available | # makes /dev/pool/home available | ||
lvcreate - | lvcreate --size 10G --name home pool | ||
mkfs.ext4 /dev/pool/home | mkfs.ext4 /dev/pool/home | ||
</syntaxHighlight> | </syntaxHighlight> | ||
Line 49: | Line 50: | ||
=== Disko === | === Disko === | ||
Disko provides means to automatically generate the creation and configuration of logical volumes, see https://github.com/nix-community/disko | [[Disko]] provides means to automatically generate the creation and configuration of logical volumes, see https://github.com/nix-community/disko | ||
[[Category:Filesystem]] |