{"id":3465,"date":"2017-03-20T04:01:49","date_gmt":"2017-03-20T04:01:49","guid":{"rendered":"http:\/\/www.theperfectarts.com\/?p=3465"},"modified":"2018-08-20T09:26:10","modified_gmt":"2018-08-20T09:26:10","slug":"how-to-extend-and-reduce-the-size-for-the-lvm","status":"publish","type":"post","link":"https:\/\/www.ktchost.com\/blog\/how-to-extend-and-reduce-the-size-for-the-lvm\/","title":{"rendered":"How to extend and reduce the size for the LVM"},"content":{"rendered":"<p>To extend and reduce the size for the LVM is very critical part and it can cause the file system corruption issue therefore while running the following commands make sure that you have selected the correct LVM mapper.<\/p>\n<p>To decrease the LVM size run the following command as a root user.<\/p>\n<p><strong>[root@linux ~]# lvreduce -L1G \/dev\/testLVM\/undertestLVM1<\/strong><\/p>\n<p>In above example we have decreased the LVM by 1G<\/p>\n<p>To increase the LVM size run the following command as a root user.<\/p>\n<p><strong>[root@linux ~]# lvextend -L1.5G \/dev\/testLVM\/undertestLVM1<\/strong><\/p>\n<p>In above example we have increased the LVM size by 1.5G<\/p>\n<p>Now check the size of LVM<\/p>\n<p><strong>lvdisplay \/dev\/testLVM\/undertestLVM1<\/strong><br \/>\nNote : DO NOT TOUCH DECREASE MAIN LVM MAPPER ELSE SERVER FILE SYSTEM WILL CRASH.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>To extend and reduce the size for the LVM is very critical part and it can cause the file system corruption issue therefore while running <a class=\"mh-excerpt-more\" href=\"https:\/\/www.ktchost.com\/blog\/how-to-extend-and-reduce-the-size-for-the-lvm\/\" title=\"How to extend and reduce the size for the LVM\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":4038,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[],"class_list":["post-3465","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/3465"}],"collection":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/comments?post=3465"}],"version-history":[{"count":5,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/3465\/revisions"}],"predecessor-version":[{"id":4039,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/3465\/revisions\/4039"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media\/4038"}],"wp:attachment":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media?parent=3465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/categories?post=3465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/tags?post=3465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}