X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=local-lvm.adoc;h=066cddabaeb18eeeb5e92de0b8268a1255358ad0;hp=5d0ba7b63f175b2ad2f1c54f2cec39f0ae90e6d1;hb=4ec559962a8fd7a457e98472c7d0159873dce2a9;hpb=08152ae6f2472703f77953a6e12a6d8d361db1a7 diff --git a/local-lvm.adoc b/local-lvm.adoc index 5d0ba7b..066cdda 100644 --- a/local-lvm.adoc +++ b/local-lvm.adoc @@ -1,10 +1,43 @@ Logical Volume Manager (LVM) ---------------------------- +include::attributes.txt[] Most people install {pve} directly on a local disk. The {pve} -installation CD offers several options for local disk management. The -current default setup uses LVM and 'ext4' for the root -partition. LVM-thin is used for VM images, because this has efficient -support for snapshots and clones. +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: +---- +# 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. + +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).