5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-01-08 21:17:52 +03:00
pve-docs/local-lvm.adoc

44 lines
1.3 KiB
Plaintext
Raw Normal View History

2016-09-08 17:46:10 +03:00
Logical Volume Manager (LVM)
----------------------------
2016-09-12 10:44:51 +03:00
include::attributes.txt[]
2016-09-08 17:46:10 +03:00
Most people install {pve} directly on a local disk. The {pve}
2016-09-12 13:18:27 +03:00
installation CD offers several options for local disk management, and
the current default setup uses LVM. The installer let you select a
single disk for such setup, and uses that disk as physical volume for
the **V**olume **G**roup (VG) 'pve'. The following output is from a
test installation using a small 8GB disk:
2016-09-08 17:46:10 +03:00
2016-09-12 13:18:27 +03:00
----
# pvs
PV VG Fmt Attr PSize PFree
/dev/sda3 pve lvm2 a-- 7.87g 876.00m
# vgs
VG #PV #LV #SN Attr VSize VFree
pve 1 3 0 wz--n- 7.87g 876.00m
----
The installer allocates three **L**ogical **V**olumes (LV) inside this
VG:
----
# lvs
LV VG Attr LSize Pool Origin Data% Meta%
data pve twi-a-tz-- 4.38g 0.00 0.63
root pve -wi-ao---- 1.75g
swap pve -wi-ao---- 896.00m
----
root:: Formatted as 'ext4', and contains the operation system.
swap:: Swap partition
data:: This volume uses LVM-thin, and is used to store VM
images. LVM-thin is preferable for this task, because it offers
efficient support for snapshots and clones.
2016-09-08 17:46:10 +03:00
2016-09-13 12:39:59 +03:00
NOTE: We highly recommend to use a hardware RAID controller (with
BBU) for such setups. This increases performance, provides redundancy,
and make disk replacements easier (hot-pluggable).