{"id":223,"date":"2010-01-12T19:52:32","date_gmt":"2010-01-12T17:52:32","guid":{"rendered":"http:\/\/www.shukko.com\/x3\/?p=223"},"modified":"2010-01-12T19:59:55","modified_gmt":"2010-01-12T17:59:55","slug":"lvm-2","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2010\/01\/12\/lvm-2\/","title":{"rendered":"LVM"},"content":{"rendered":"<p>Shrink LVM root partition<\/p>\n<p>Ok, I&#8217;ve figured this out &#8230; so just in case anyone wants to know how to do it:<\/p>\n<p>1. Write the FC rescue disk ISO onto a CD, and reboot the machine from it.<br \/>\n2. Do not mount the file systems.<br \/>\n3. At the prompt, type:<\/p>\n<p>lvm<\/p>\n<p>4. Within LVM, run these commands (comments are after the &#8216;#&#8217;s):<\/p>\n<p>lvm&gt; vgscan                                                    # Will show the name of the Volume Group<br \/>\nlvm&gt; vgchange &#8211;available y VolGroup00        # Activates the VG and the LVs in it<br \/>\nlvm&gt; lvscan # Should show the LVs as &#8220;ACTIVE&#8221;; the devices in \/dev it mentions should now exist<br \/>\nlvm&gt; exit                                                         # Quit, return to the prompt<\/p>\n<p>5. Now resize the filesystem with this command (e.g., using device \/dev\/VolGoup00\/LogVol00):<\/p>\n<p>e2fsck -f \/dev\/VolGoup00\/LogVol00                 # fsck on the filesystem<br \/>\nresize2fs \/dev\/VolGoup00\/LogVol00 nnG         # resize the fs to nn GB; nn should be less than the current fs size<br \/>\ne2fsck -f \/dev\/VolGoup00\/LogVol00                 # Do another fsck on the filesystem; fix any errors which appear<\/p>\n<p>6. Run lvm again and type:<\/p>\n<p>lvm&gt; lvreduce -LnnG \/dev\/VolGoup00\/LogVol00   # Resize the LV to nn GB; nn should be the same as above<br \/>\nlvm&gt; exit                                                          # Quit, return to the prompt<\/p>\n<p>7. Finally, do another filesystem check:<\/p>\n<p>e2fsck -f \/dev\/VolGoup00\/LogVol00                 # Do another fsck on the filesystem; fix any errors which appear<\/p>\n<p>8. Remove the CD and reboot.<\/p>\n<p>+++more<\/p>\n<p><a href=\"http:\/\/fedorasolved.org\/Members\/zcat\/shrink-lvm-for-new-partition\">http:\/\/fedorasolved.org\/Members\/zcat\/shrink-lvm-for-new-partition<\/a><\/p>\n<p>2 link daha<\/p>\n<p><a href=\"http:\/\/www.tummy.com\/journals\/entries\/jafo_20070730_123311\">http:\/\/www.tummy.com\/journals\/entries\/jafo_20070730_123311<\/a><\/p>\n<h2>Reducing the size of your root partition.<\/h2>\n<p>3- <a href=\"http:\/\/forums.fedoraforum.org\/showthread.php?t=154625\">http:\/\/forums.fedoraforum.org\/showthread.php?t=154625<\/a><\/p>\n<p><strong>How To extend root \/ partition &#8216;on-the-fly&#8217;, ext3\/LVM only<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Shrink LVM root partition Ok, I&#8217;ve figured this out &#8230; so just in case anyone wants to know how to do it: 1. Write the FC rescue disk ISO onto a CD, and reboot the machine from it. 2. Do not mount the file systems. 3. At the prompt, type: lvm 4. Within LVM, run [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-223","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=223"}],"version-history":[{"count":5,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/223\/revisions"}],"predecessor-version":[{"id":228,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/223\/revisions\/228"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}