Manual LVM configuration guide for Debian 6

On this screen, select a suitable file system type. Keep in mind that the default is ext2. I have chosen ext3, a journaling file system, just to show that it does not matter. There is a small overhead associated with using a journaling file system, but it is nothing to fret about.

Then select the mount point. This will be /boot. Click or scroll to “Done with the partition,” then click on Continue.

With the /boot partition created, the next step is to initialize the free space for use by LVM. To do that, select the free space, then click Continue.

The installer will want to create this as a logical partition, but choosing “Primary” will do just as well. The only difference you will notice is that the partition will be shown as /dev/sda2, the second partition of the disk, rather than /dev/sda5, the first logical partition of an extended partition. Continue.

On this screen, select “physical volume for LVM.” If you would like to install the system on an encrypted LVM (recommended), then select that option. Then scroll down to “Done setting up the partition.” Continue.

With the PV created, the next task is to create the Volume Group. To do that, scroll up to “Configure the Logical Volume Manager.” Continue.

Then select “Create Volume Group.” Continue.

Creating a VG only entails giving it a name. Any name will do. Capitalization is not required. Continue.

Select the PV that will be used in the VG you just created. There is only one PV in this example, and that would be /dev/sda2. It would be /dev/sda5 if you created it as a logical partition. Continue.

With the VG created and the PV assigned to the VG, now is the time to start creating Logical Volumes (LV). Only three will be created. You can create more, but for a desktop system, the three created in this tutorial will be all you need. Scroll to “Create logical volume.” Continue.

Only one VG is available. Continue.

Please share:

23 Responses

Add a Comment

Your email address will not be published. Required fields are marked *