]> git.proxmox.com Git - pve-docs.git/blame - local-lvm.adoc
mark toplevel docs
[pve-docs.git] / local-lvm.adoc
CommitLineData
08152ae6
DM
1Logical Volume Manager (LVM)
2----------------------------
e71b5d0d 3include::attributes.txt[]
08152ae6 4
5f09af76
DM
5ifdef::wiki[]
6:pve-toplevel:
7endif::wiki[]
8
08152ae6 9Most people install {pve} directly on a local disk. The {pve}
8b849dc3
DM
10installation CD offers several options for local disk management, and
11the current default setup uses LVM. The installer let you select a
12single disk for such setup, and uses that disk as physical volume for
8c1189b6 13the **V**olume **G**roup (VG) `pve`. The following output is from a
8b849dc3 14test installation using a small 8GB disk:
08152ae6 15
8b849dc3
DM
16----
17# pvs
18 PV VG Fmt Attr PSize PFree
19 /dev/sda3 pve lvm2 a-- 7.87g 876.00m
20
21# vgs
22 VG #PV #LV #SN Attr VSize VFree
23 pve 1 3 0 wz--n- 7.87g 876.00m
24----
25
26The installer allocates three **L**ogical **V**olumes (LV) inside this
27VG:
28
29----
30# lvs
31 LV VG Attr LSize Pool Origin Data% Meta%
32 data pve twi-a-tz-- 4.38g 0.00 0.63
33 root pve -wi-ao---- 1.75g
34 swap pve -wi-ao---- 896.00m
35----
36
8c1189b6 37root:: Formatted as `ext4`, and contains the operation system.
8b849dc3
DM
38
39swap:: Swap partition
40
41data:: This volume uses LVM-thin, and is used to store VM
42images. LVM-thin is preferable for this task, because it offers
43efficient support for snapshots and clones.
08152ae6 44
d822a869
DM
45Hardware
46~~~~~~~~
47
48We highly recommend to use a hardware RAID controller (with BBU) for
49such setups. This increases performance, provides redundancy, and make
50disk replacements easier (hot-pluggable).
51
52LVM itself does not need any special hardware, and memory requirements
53are very low.
54
55
56Bootloader
57~~~~~~~~~~
58
59We install two boot loaders by default. The first partition contains
60the standard GRUB boot loader. The second partition is an **E**FI **S**ystem
61**P**artition (ESP), which makes it possible to boot on EFI systems.