Extend Logical Volume Size on Debian
Extend Logical Volume Size on Debian/CentOS/RedHat
Logical Volume (LV) is a storage area inside a Volume Group (VG). Volume Group is create during the installation of Linux Operating System (Debian, Red Hat, CentOS, Oracle Linux and etc) or after the installation of Operating System (Debian, Red Hat, CentOS, Oracle Linux and etc) by use of Logical Volume Management concept. The benefit of Logical Volume is that, it can be easily resize (extend and reduce). There are various types of file systems that is use for logical volume or partitions. The file systems are XFS, Ext4, Ext3, Ext2 and etc. One thing to be remember is that the file system "xfs" is only have the ability to extend the size of logical volume, when logical volume have file system "xfs" the size cannot be reduce.
Extend a logical volume size means increase the size of logical volume. Here we will extend the size of logical volume "var" that have a file system "Ext4" from 2.7GB to 62.79GB as per need. We are performing the process of Extend Logical Volume on Debian 8.10 (Jessie) Linux base operating system, you can also use this process on CentOS Linux, Oracle Linux and Red Hat Linux base operating system.
To check the version of Debian 8.10 (Jessie) Linux base operating system, type the below mention command.
To add the new virtual hard disk on virtual machine, right click on virtual machine "01" then click on edit settings.
fdisk -l /dev/sdb
vgextend 01-vg /dev/sdb1
lvextend -L +60G /dev/01-vg/var