X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=local-lvm.adoc;h=6abdee8b3d9f1c1acf09f7a23d56c375dd2b0054;hp=0bc603220c33b9479c9c1cb574debde396c6f43e;hb=HEAD;hpb=d2b02c4d0e00a288042a0d85f3364820c3f82ca0 diff --git a/local-lvm.adoc b/local-lvm.adoc index 0bc6032..b6009c8 100644 --- a/local-lvm.adoc +++ b/local-lvm.adoc @@ -1,3 +1,4 @@ +[[chapter_lvm]] Logical Volume Manager (LVM) ---------------------------- ifdef::wiki[] @@ -6,7 +7,7 @@ endif::wiki[] Most people install {pve} directly on a local disk. The {pve} installation CD offers several options for local disk management, and -the current default setup uses LVM. The installer let you select a +the current default setup uses LVM. The installer lets 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: @@ -32,7 +33,7 @@ VG: swap pve -wi-ao---- 896.00m ---- -root:: Formatted as `ext4`, and contains the operation system. +root:: Formatted as `ext4`, and contains the operating system. swap:: Swap partition @@ -63,7 +64,9 @@ Bootloader We install two boot loaders by default. The first partition contains the standard GRUB boot loader. The second partition is an **E**FI **S**ystem -**P**artition (ESP), which makes it possible to boot on EFI systems. +**P**artition (ESP), which makes it possible to boot on EFI systems and to +apply xref:sysadmin_firmware_persistent[persistent firmware updates] from the +user space. Creating a Volume Group @@ -72,7 +75,7 @@ Creating a Volume Group Let's assume we have an empty disk `/dev/sdb`, onto which we want to create a volume group named ``vmdata''. -CAUTION: Please not that the following commands will destroy all +CAUTION: Please note that the following commands will destroy all existing data on `/dev/sdb`. First create a partition. @@ -104,7 +107,7 @@ A real world example: Now a filesystem must be created on the LV. - # mkfs.ext4 /dev/data/vz + # mkfs.ext4 /dev/pve/vz At last this has to be mounted. @@ -119,8 +122,7 @@ To make it always accessible add the following line in `/etc/fstab`. Resizing the thin pool ~~~~~~~~~~~~~~~~~~~~~~ -Resize the LV and the metadata pool can be achieved with the following -command. +Resize the LV and the metadata pool with the following command: # lvresize --size + --poolmetadatasize + /