{"id":113,"date":"2019-05-06T11:29:37","date_gmt":"2019-05-06T16:29:37","guid":{"rendered":"https:\/\/tech.my-netsol.com\/?p=113"},"modified":"2019-05-06T11:29:37","modified_gmt":"2019-05-06T16:29:37","slug":"how-to-extend-reduce-lvms-logical-volume-management-in-linux-part-ii","status":"publish","type":"post","link":"https:\/\/tech.my-netsol.com\/?p=113","title":{"rendered":"How to Extend\/Reduce LVM\u2019s (Logical Volume Management) in Linux \u2013 Part II"},"content":{"rendered":"\n<p>From TecMint.com &#8211; https:\/\/www.tecmint.com\/extend-and-reduce-lvms-in-linux\/<\/p>\n\n\n\n<p>Previously we have seen how to create a flexible disk storage using  LVM. Here, we are going to see how to extend volume group, extend and  reduce a logical volume. Here we can reduce or extend the partitions in  Logical volume management (LVM) also called as flexible volume  file-system.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/LVM_extend.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/LVM_extend.jpg\" alt=\"Extend\/Reduce LVMs in Linux\" class=\"wp-image-8300\"\/><\/a><\/figure>\n\n\n\n<p>Extend\/Reduce LVMs in Linux<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Requirements<\/h4>\n\n\n\n<ol class=\"wp-block-list\"><li><a href=\"https:\/\/www.tecmint.com\/create-lvm-storage-in-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\">Create Flexible Disk Storage with LVM \u2013 Part I<\/a><\/li><\/ol>\n\n\n\n<h5 class=\"wp-block-heading\">When do we need to reduce volume?<\/h5>\n\n\n\n<p>May be we need to create a separate partition for any other use or we\n need to expand the size of any low space partition, if so we can reduce\n the large size partition and we can expand the low space partition very\n easily by the following simple easy steps.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">My Server Setup \u2013 Requirements<\/h5>\n\n\n\n<ol class=\"wp-block-list\"><li>Operating System \u2013 CentOS 6.5 with LVM Installation<\/li><li>Server IP \u2013 192.168.0.200<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">How to Extend Volume Group and Reduce Logical Volume<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Logical Volume Extending<\/h4>\n\n\n\n<p>Currently, we have One PV, VG and 2 LV. Let\u2019s list them one by one using following commands.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># pvs\n# vgs\n# lvs<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Logical-Volume-Extending.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Logical-Volume-Extending.jpg\" alt=\"Logical Volume Extending\" class=\"wp-image-8278\"\/><\/a><\/figure>\n\n\n\n<p>Logical Volume Extending<\/p>\n\n\n\n<p>There are no free space available in Physical Volume and Volume \ngroup. So, now we can\u2019t extend the lvm size, for extending we need to \nadd one physical volume (<strong>PV<\/strong>), and then we have to extend the volume group by extending the <strong>vg<\/strong>. We will get enough space to extend the Logical volume size. So first we are going to add one physical volume.<\/p>\n\n\n\n<figure><iframe allowfullscreen=\"true\" width=\"693\" height=\"60\"><\/iframe><\/figure>\n\n\n\n<p>For adding a new <strong>PV<\/strong> we have to use fdisk to create the LVM partition.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># fdisk -cu \/dev\/sda<\/pre>\n\n\n\n<ol class=\"wp-block-list\"><li>To Create new partition Press <strong>n<\/strong>.<\/li><li>Choose primary partition use <strong>p<\/strong>.<\/li><li>Choose which number of partition to be selected to create the primary partition.<\/li><li>Press <strong>1<\/strong> if any other disk available.<\/li><li>Change the type using <strong>t<\/strong>.<\/li><li>Type <strong>8e<\/strong> to change the partition type to Linux LVM.<\/li><li>Use <strong>p<\/strong> to print the create partition ( here we have not used the option).<\/li><li>Press <strong>w<\/strong> to write the changes.<\/li><\/ol>\n\n\n\n<p>Restart the system once completed.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Create-LVM-Partition.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Create-LVM-Partition.jpg\" alt=\"Create LVM Partition\" class=\"wp-image-8279\"\/><\/a><\/figure>\n\n\n\n<p>Create LVM Partition<\/p>\n\n\n\n<p>List and check the partition we have created using fdisk.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># fdisk -l \/dev\/sda<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Verify-LVM-Partition.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Verify-LVM-Partition.jpg\" alt=\"Verify LVM Partition\" class=\"wp-image-8280\"\/><\/a><\/figure>\n\n\n\n<p>Verify LVM Partition<\/p>\n\n\n\n<p>Next, create new <strong>PV<\/strong> (Physical Volume) using following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># pvcreate \/dev\/sda1<\/pre>\n\n\n\n<p>Verify the pv using below command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># pvs<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Create-Physical-Volume.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Create-Physical-Volume.jpg\" alt=\"Create Physical Volume\" class=\"wp-image-8281\"\/><\/a><\/figure>\n\n\n\n<p>Create Physical Volume<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Extending Volume Group<\/h4>\n\n\n\n<p>Add this pv to <strong>vg_tecmint<\/strong> vg to extend the size of a volume group to get more space for expanding <strong>lv<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># vgextend vg_tecmint \/dev\/sda1<\/pre>\n\n\n\n<p>Let us check the size of a Volume Group now using.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># vgs<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Extend-Volume-Group.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Extend-Volume-Group.jpg\" alt=\"Extend Volume Group\" class=\"wp-image-8282\"\/><\/a><\/figure>\n\n\n\n<p>Extend Volume Group<\/p>\n\n\n\n<p>We can even see which <strong>PV<\/strong> are used to create particular Volume group using.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># pvscan<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Check-Volume-Group.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Check-Volume-Group.jpg\" alt=\"Check Volume Group\" class=\"wp-image-8283\"\/><\/a><\/figure>\n\n\n\n<p>Check Volume Group<\/p>\n\n\n\n<p>Here, we can see which Volume groups are under Which Physical \nVolumes. We have just added one pv and its totally free. Let us see the \nsize of each logical volume we have currently before expanding it.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Check-Each-Logical-Volume.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Check-Each-Logical-Volume-347x450.jpg\" alt=\"Check All Logical Volume\" class=\"wp-image-8284\"\/><\/a><\/figure>\n\n\n\n<p>Check All Logical Volume<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>LogVol00 defined for Swap.<\/li><li>LogVol01 defined for \/.<\/li><li>Now we have 16.50 GB size for \/ (root).<\/li><li>Currently there are 4226 Physical Extend (PE) available.<\/li><\/ol>\n\n\n\n<p>Now we are going to expand the <strong>\/<\/strong> partition <strong>LogVol01<\/strong>. \nAfter expanding we can list out the size as above for confirmation. We \ncan extend using GB or PE as I have explained it in LVM PART-I, here I\u2019m\n using PE to extend.<\/p>\n\n\n\n<p>For getting the available Physical Extend size run.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># vgdisplay<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Check-Available-Physical-Extend.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Check-Available-Physical-Extend-502x450.jpg\" alt=\"Check Available Physical Size\" class=\"wp-image-8285\"\/><\/a><\/figure>\n\n\n\n<p>Check Available Physical Size<\/p>\n\n\n\n<p>There are <strong>4607<\/strong> free PE available = <strong>18GB<\/strong> Free space available. So we can expand our logical volume up-to <strong>18GB<\/strong> more. Let us use the PE size to extend.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># lvextend -l +4607 \/dev\/vg_tecmint\/LogVol01<\/pre>\n\n\n\n<p>Use <strong>+<\/strong> to add the more space. After Extending, we need to re-size the file-system using.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># resize2fs \/dev\/vg_tecmint\/LogVol01<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Expand-Logical-Volume.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Expand-Logical-Volume-620x240.jpg\" alt=\"Expand Logical Volume\" class=\"wp-image-8286\"\/><\/a><\/figure>\n\n\n\n<p>Expand Logical Volume<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Command used to extend the logical volume using Physical extends.<\/li><li>Here we can see it is extended to 34GB from 16.51GB.<\/li><li>Re-size the file system, If the file-system is mounted and currently under use.<\/li><li>For extending Logical volumes we don\u2019t need to unmount the file-system.<\/li><\/ol>\n\n\n\n<p>Now let\u2019s see the size of re-sized logical volume using.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># lvdisplay<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Resize-Logical-Volume.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Resize-Logical-Volume-363x450.jpg\" alt=\"Resize Logical Volume\" class=\"wp-image-8287\"\/><\/a><\/figure>\n\n\n\n<p>Resize Logical Volume<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>LogVol01 defined for \/ extended volume.<\/li><li>After extending there is 34.50GB from 16.50GB.<\/li><li>Current extends, Before extending there was 4226, we have added 4607 extends to expand so totally there are 8833.<\/li><\/ol>\n\n\n\n<p>Now if we check the vg available Free PE it will be 0.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># vgdisplay<\/pre>\n\n\n\n<p>See the result of extending.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># pvs\n# vgs\n# lvs<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Verify-Resize-Partition.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Verify-Resize-Partition.jpg\" alt=\"Verify Resize Partition\" class=\"wp-image-8288\"\/><\/a><\/figure>\n\n\n\n<p>Verify Resize Partition<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>New Physical Volume added.<\/li><li>Volume group vg_tecmint extended from 17.51GB to 35.50GB.<\/li><li>Logical volume LogVol01 extended from 16.51GB to 34.50GB.<\/li><\/ol>\n\n\n\n<p>Here we have completed the process of extending volume group and \nlogical volumes. Let us move towards some interesting part in Logical \nvolume management.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Reducing Logical Volume (LVM)<\/h4>\n\n\n\n<p>Here we are going to see how to reduce the Logical Volumes. Everyone \nsay its critical and may end up with disaster while we reduce the lvm. \nReducing lvm is really interesting than any other part in Logical volume\n management.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Before starting, it is always good to backup the data, so that it will not be a headache if something goes wrong.<\/li><li>To Reduce a logical volume there are 5 steps needed to be done very carefully.<\/li><li>While extending a volume we can extend it while the volume under \nmount status (online), but for reduce we must need to unmount the file \nsystem before reducing.<\/li><\/ol>\n\n\n\n<p>Let\u2019s wee what are the 5 steps below.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>unmount the file system for reducing.<\/li><li>Check the file system after unmount.<\/li><li>Reduce the file system.<\/li><li>Reduce the Logical Volume size than Current size.<\/li><li>Recheck the file system for error.<\/li><li>Remount the file-system back to stage.<\/li><\/ol>\n\n\n\n<p>For demonstration, I have created separate volume group and logical volume. Here, I\u2019m going to reduce the logical volume <strong>tecmint_reduce_test<\/strong>. Now its 18GB in size. We need to reduce it to <strong>10GB<\/strong> without data-loss. That means we need to reduce <strong>8GB<\/strong> out of <strong>18GB<\/strong>. Already there is <strong>4GB<\/strong> data in the volume.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">18GB ---&gt; 10GB<\/pre>\n\n\n\n<p>While reducing size, we need to reduce only 8GB so it will roundup to 10GB after the reduce.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># lvs<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Reduce-Logical-Volume.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Reduce-Logical-Volume.jpg\" alt=\"Reduce Logical Volume\" class=\"wp-image-8289\"\/><\/a><\/figure>\n\n\n\n<p>Reduce Logical Volume<\/p>\n\n\n\n<p>Here we can see the file-system information.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># df -h<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Check-File-System-Size.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Check-File-System-Size-620x130.jpg\" alt=\"Check File System Size\" class=\"wp-image-8290\"\/><\/a><\/figure>\n\n\n\n<p>Check File System Size<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>The size of the Volume is 18GB.<\/li><li>Already it used upto 3.9GB.<\/li><li>Available Space is 13GB.<\/li><\/ol>\n\n\n\n<p>First unmount the mount point.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># umount -v \/mnt\/tecmint_reduce_test\/<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Unmount-Parition.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Unmount-Parition.jpg\" alt=\"Unmount Parition\" class=\"wp-image-8291\"\/><\/a><\/figure>\n\n\n\n<p>Unmount Parition<\/p>\n\n\n\n<p>Then check for the file-system error using following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># e2fsck -ff \/dev\/vg_tecmint_extra\/tecmint_reduce_test<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Scan-Parition-for-Errors.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Scan-Parition-for-Errors-620x223.jpg\" alt=\"Scan Parition for Errors\" class=\"wp-image-8292\"\/><\/a><\/figure>\n\n\n\n<p>Scan Parition for Errors<\/p>\n\n\n\n<p><strong>Note<\/strong>: Must pass in every 5 steps of file-system check if not there might be some issue with your file-system.<\/p>\n\n\n\n<p>Next, reduce the file-system.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># resize2fs \/dev\/vg_tecmint_extra\/tecmint_reduce_test 10GB<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Reduce-File-System.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Reduce-File-System-620x91.jpg\" alt=\"Reduce File System\" class=\"wp-image-8293\"\/><\/a><\/figure>\n\n\n\n<p>Reduce File System<\/p>\n\n\n\n<p>Reduce the Logical volume using GB size.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># lvreduce -L -8G \/dev\/vg_tecmint_extra\/tecmint_reduce_test<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Reduce-Logical-Volume-Partition.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Reduce-Logical-Volume-Partition.jpg\" alt=\"Reduce Logical Partition\" class=\"wp-image-8294\"\/><\/a><\/figure>\n\n\n\n<p>Reduce Logical Partition<\/p>\n\n\n\n<p>To Reduce Logical volume using PE Size we need to Know the size of \ndefault PE size and total PE size of a Volume Group to put a small \ncalculation for accurate Reduce size.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># lvdisplay vg_tecmint_extra<\/pre>\n\n\n\n<p>Here we need to do a little calculation to get the PE size of 10GB using bc command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">1024MB x 10GB = 10240MB or 10GB\n\n10240MB \/ 4PE = 2048PE<\/pre>\n\n\n\n<p>Press <strong>CRTL+D<\/strong> to exit from BC.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/bc-command.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/bc-command.jpg\" alt=\"Calculate PE Size\" class=\"wp-image-8295\"\/><\/a><\/figure>\n\n\n\n<p>Calculate PE Size<\/p>\n\n\n\n<p>Reduce the size using PE.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># lvreduce -l -2048 \/dev\/vg_tecmint_extra\/tecmint_reduce_test<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Reduce-Size-Using-PE.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Reduce-Size-Using-PE-620x129.jpg\" alt=\"Reduce Size Using PE\" class=\"wp-image-8296\"\/><\/a><\/figure>\n\n\n\n<p>Reduce Size Using PE<\/p>\n\n\n\n<p>Re-size the file-system back, In this step if there is any error that means we have messed-up our file-system.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># resize2fs \/dev\/vg_tecmint_extra\/tecmint_reduce_test<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Resize-File-System.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Resize-File-System-620x139.jpg\" alt=\"Resize File System\" class=\"wp-image-8297\"\/><\/a><\/figure>\n\n\n\n<p>Resize File System<\/p>\n\n\n\n<p>Mount the file-system back to same point.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># mount \/dev\/vg_tecmint_extra\/tecmint_reduce_test \/mnt\/tecmint_reduce_test\/<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Mount-File-System.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Mount-File-System-620x323.jpg\" alt=\"Mount File System\" class=\"wp-image-8298\"\/><\/a><\/figure>\n\n\n\n<p>Mount File System<\/p>\n\n\n\n<p>Check the size of partition and files.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># lvdisplay vg_tecmint_extra<\/pre>\n\n\n\n<p>Here we can see the final result as the logical volume was reduced to 10GB size.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Verify-Logical-Volume-Size.jpg\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Verify-Logical-Volume-Size.jpg\" alt=\"Verify Logical Volume Size\" class=\"wp-image-8299\"\/><\/a><\/figure>\n\n\n\n<p>Verify Logical Volume Size<\/p>\n\n\n\n<p>In this article, we have seen how to extend the volume group, logical\n volume and reduce the logical volume. In the next part (Part III), we \nwill see how to take a Snapshot of logical volume and restore it to \nearlier stage.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From TecMint.com &#8211; https:\/\/www.tecmint.com\/extend-and-reduce-lvms-in-linux\/ Previously we have seen how to create a flexible disk storage using LVM. Here, we are going to see how to extend volume group, extend and reduce a logical volume. Here we can reduce or extend the partitions in Logical volume management (LVM) also called as flexible volume file-system. Extend\/Reduce LVMs &#8230; <a title=\"How to Extend\/Reduce LVM\u2019s (Logical Volume Management) in Linux \u2013 Part II\" class=\"read-more\" href=\"https:\/\/tech.my-netsol.com\/?p=113\" aria-label=\"Read more about How to Extend\/Reduce LVM\u2019s (Logical Volume Management) in Linux \u2013 Part II\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11,3],"tags":[],"class_list":["post-113","post","type-post","status-publish","format-standard","hentry","category-linux","category-os"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=113"}],"version-history":[{"count":0,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/posts\/113\/revisions"}],"wp:attachment":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}