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