<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: increase and decrease file system sizes on red hat linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/increase-and-decrease-file-system-sizes-on-red-hat-linux/m-p/4384667#M35716</link>
    <description>The first step (lvextend) should be very familiar from the HP-UX side. However, Linux offers a few convenient shortcuts:&lt;BR /&gt;&lt;BR /&gt;- you can use letters k, M, G, T to identify the desired size. For example, to extend a LV to 100 gigabytes:&lt;BR /&gt;&lt;BR /&gt;lvextend -L 100G /dev/vgSomething/lvolX&lt;BR /&gt;&lt;BR /&gt;- or you can specify the amount to increase with a + sign. For example, to add 10 gigabytes:&lt;BR /&gt;&lt;BR /&gt;lvextend -L +10G /dev/vgOther/lvolY&lt;BR /&gt;&lt;BR /&gt;After the lvextend step is complete, the next step depends on your Linux distribution and version. For RedHat Enterprise Linux 4, the command is "ext2online /mountpoint".&lt;BR /&gt;(Don't worry about the "ext2": because ext3 = ext2 + journaling, the same filesystem tools apply for both ext2 and ext3.)&lt;BR /&gt;&lt;BR /&gt;If the filesystem is created using an older version of Linux, it might not support online extension. In this case, unmount it and use "resize2fs /dev/vgSomething/lvolX". &lt;BR /&gt;&lt;BR /&gt;To add the possibility for online extension, you can use "ext2prepare /dev/vgSomething/lvolX". This re-arranges the disk data so that the metadata areas can grow if necessary: the modern mke2fs command does this automatically when a filesystem is created, but the older versions did not.&lt;BR /&gt;&lt;BR /&gt;For RedHat Enterprise Linux 5 (and probably other current Linux distributions), the functionality of ext2online is added to resize2fs. This one command can do both online &amp;amp; offline resizing as necessary.&lt;BR /&gt;&lt;BR /&gt;To shrink a filesystem, the filesystem must be unmounted. First run resize2fs with a size argument (see "man resize2fs"). Then lvreduce the LV to match the new size. Beware: if you reduce the LV more than you reduced the filesystem, you will damage your data.&lt;BR /&gt;&lt;BR /&gt;MK</description>
    <pubDate>Fri, 20 Mar 2009 20:35:01 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2009-03-20T20:35:01Z</dc:date>
    <item>
      <title>increase and decrease file system sizes on red hat linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/increase-and-decrease-file-system-sizes-on-red-hat-linux/m-p/4384666#M35715</link>
      <description>I am an hpux administrator and we have the first linux server in our environment. I have a question, how to increase or decrease the file system size on linux provided that we are using lvm and ext3 file system.</description>
      <pubDate>Fri, 20 Mar 2009 19:33:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/increase-and-decrease-file-system-sizes-on-red-hat-linux/m-p/4384666#M35715</guid>
      <dc:creator>Waqar Razi</dc:creator>
      <dc:date>2009-03-20T19:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: increase and decrease file system sizes on red hat linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/increase-and-decrease-file-system-sizes-on-red-hat-linux/m-p/4384667#M35716</link>
      <description>The first step (lvextend) should be very familiar from the HP-UX side. However, Linux offers a few convenient shortcuts:&lt;BR /&gt;&lt;BR /&gt;- you can use letters k, M, G, T to identify the desired size. For example, to extend a LV to 100 gigabytes:&lt;BR /&gt;&lt;BR /&gt;lvextend -L 100G /dev/vgSomething/lvolX&lt;BR /&gt;&lt;BR /&gt;- or you can specify the amount to increase with a + sign. For example, to add 10 gigabytes:&lt;BR /&gt;&lt;BR /&gt;lvextend -L +10G /dev/vgOther/lvolY&lt;BR /&gt;&lt;BR /&gt;After the lvextend step is complete, the next step depends on your Linux distribution and version. For RedHat Enterprise Linux 4, the command is "ext2online /mountpoint".&lt;BR /&gt;(Don't worry about the "ext2": because ext3 = ext2 + journaling, the same filesystem tools apply for both ext2 and ext3.)&lt;BR /&gt;&lt;BR /&gt;If the filesystem is created using an older version of Linux, it might not support online extension. In this case, unmount it and use "resize2fs /dev/vgSomething/lvolX". &lt;BR /&gt;&lt;BR /&gt;To add the possibility for online extension, you can use "ext2prepare /dev/vgSomething/lvolX". This re-arranges the disk data so that the metadata areas can grow if necessary: the modern mke2fs command does this automatically when a filesystem is created, but the older versions did not.&lt;BR /&gt;&lt;BR /&gt;For RedHat Enterprise Linux 5 (and probably other current Linux distributions), the functionality of ext2online is added to resize2fs. This one command can do both online &amp;amp; offline resizing as necessary.&lt;BR /&gt;&lt;BR /&gt;To shrink a filesystem, the filesystem must be unmounted. First run resize2fs with a size argument (see "man resize2fs"). Then lvreduce the LV to match the new size. Beware: if you reduce the LV more than you reduced the filesystem, you will damage your data.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Fri, 20 Mar 2009 20:35:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/increase-and-decrease-file-system-sizes-on-red-hat-linux/m-p/4384667#M35716</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-03-20T20:35:01Z</dc:date>
    </item>
  </channel>
</rss>

