Manual LVM Partitioning

The following section explains how to manually configure LVM for Community Enterprise Linux. Because there are numerous ways to manually configure a system with LVM, the following example is similar to the default configuration done in .

On the Disk Partitioning Setup screen, select Create custom layout from the pulldown list and click the Next button in the bottom right corner of the screen.

Creating the /boot Partition

In a typical situation, the disk drives are new, or formatted clean. The following figure, , shows both drives as raw devices with no partitioning configured.

Two Blank Drives, Ready for Configuration

Two Blank Drives, Ready for Configuration

Figure 10.4. Two Blank Drives, Ready for Configuration


The /boot partition cannot reside on an LVM volume because the GRUB boot loader cannot read it.

  1. Select New.

Creating the LVM Physical Volumes

Once the boot partition is created, the remainder of all disk space can be allocated to LVM partitions. The first step in creating a successful LVM implementation is the creation of the physical volume(s).

  1. Select New.

Creating the LVM Volume Groups

Once all the physical volumes are created, the volume groups can be created:

  1. Click the LVM button to collect the physical volumes into volume groups. A volume group is basically a collection of physical volumes. You can have multiple logical volumes, but a physical volume can only be in one volume group.

There is overhead disk space reserved in the volume group. The volume group size is slightly less than the total of physical volume sizes.

Creating an LVM Volume Group

Creating an LVM Volume Group

Figure 10.9. Creating an LVM Volume Group


Creating the LVM Logical Volumes

Create logical volumes with mount points such as /, /home, and swap space. Remember that /boot cannot be a logical volume. To add a logical volume, click the Add button in the Logical Volumes section. A dialog window as shown in appears.

Creating a Logical Volume

Creating a Logical Volume

Figure 10.10. Creating a Logical Volume


Repeat these steps for each volume group you want to create.

You may want to leave some free space in the volume group so you can expand the logical volumes later. The default automatic configuration does not do this, but this manual configuration example does - approximately 1 GB is left as free space for future expansion.

Pending Logical Volumes

Pending Logical Volumes

Figure 10.11. Pending Logical Volumes


Click OK to apply the volume group and all associated logical volumes.

The following figure shows the final manual configuration:

Final Manual Configuration

Final Manual Configuration

Figure 10.12. Final Manual Configuration