In the first two tutorials of these series we have shown the basics of Logical Volume Management (LVM) so it is now time to get to the last part of this topic.
Until now we have covered the :
LVM general information and Physical volume creation and
LVM Volume Group creation and management. Last part of these series is about the
Logical Volume setup and management.
Logical Volume
1.Creating a logical volume
Logical volume with specific size creation(in our case 2GB)
From now on, you have a virtual device. You could mount on the directory tree just as any other formated physical device.
Last part that I will focus on in this tutorial is the part where you can delete an existing logical volume.
Logical volume removal
A logical volume must not be mounted before it can be removed. So there are two command that we have to execute to make that happen. In the example we assume that we have the Logical volume mounted at /mnt/test. In real system that probably will be your /var or /home partition so you have to be sure that no process is trying to access that piece of your files system.