Create Logical Volumes
With the PV and VG created, and the PV assigned to the VG. the next step is to create the Logical Volumes. A Logical Volume (LV) is LVM jargon for partition. Our goal in this tutorial is to create six LVs, one each for the following filesystem directories:
- / (root)
Observe that the upper part of the screenshot below reveals that we have created one PV which has been assigned to a VG, but there are zero LVs. Select the option to create logical volumes as shown. Enter.
Repeat the last two screenshot for the following logical volumes. Suggested sizes in parenthesis:
- root (2000 MB)
- usr (3000 MB)
- var (1000 MB)
- tmp (500 MB)
- home (3000 MB)
The suggested sizes should be more than enough to install and get the system up and running. This leaves enough free space to grow any LV that needs it. When completed, your window should look like the one below. Notice that instead of zero LVs, we now have six. To preview your work, highlight the option as shown. Enter.
Now that we have created a PV, a VG, assigned the PV to the VG, and created six LVs, the final task is to assign a filesystem and a mount point to each LV.
Digital Ocean is a VPS/Cloud hosting provider. For just $5 per month, you can get yourself a Cloud server with 512 MB of RAM, 20 GB super-fast SSD, free snapshots, plus backups for a minimal fee. All via a simple graphical interface.
And by signing up with this referral link, you can help support this website.
If you are reading this, your ad could also be occupying this space. Contact us to make it happen.