Extend Logical Volume Size on Debian
How to Extend Logical Volume Size on Debian
Logical Volume (LV) is a storage area inside a Volume Group (VG). Volume Group can 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 (LVM) 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.
fdisk -l /dev/sdb
vgextend 01-vg /dev/sdb1
By use of above command you can take that the require path of logical volume "var" that in this demo is "/dev/01-vg/var".To check the complete details of volume group "01-vg", type the below mention command.
By use of above command you can see that how much free size is available in Volume Group "01-vg". To extend the size of Logical Volume "var", type the below mention command. Logical Volume "var" already have 2.79GB, we are adding 60GB in logical volume "var". The total size of Logical volume will be 62.79GB.
lvextend -L +60G /dev/01-vg/var