<?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: reduce the size of lvm2 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/reduce-the-size-of-lvm2/m-p/5033304#M48345</link>
    <description>Thanks ivan &lt;BR /&gt;&lt;BR /&gt;the way of explain the concept very clear&lt;BR /&gt;now the problem has solved&lt;BR /&gt;&lt;BR /&gt;once again thanking u &lt;BR /&gt;have a nice day &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 12 Mar 2007 22:09:22 GMT</pubDate>
    <dc:creator>ramadashsuresh</dc:creator>
    <dc:date>2007-03-12T22:09:22Z</dc:date>
    <item>
      <title>reduce the size of lvm2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/reduce-the-size-of-lvm2/m-p/5033301#M48342</link>
      <description>Hai &lt;BR /&gt;i am using Redhat EL-4 and configured LVM2&lt;BR /&gt;now i want to reduce the logical volume size from 2gb to 1 gb which was mounted on /mnt/lvm and file system is ext3 &lt;BR /&gt;&lt;BR /&gt;what are the procedures to reduce the size&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Mar 2007 09:48:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/reduce-the-size-of-lvm2/m-p/5033301#M48342</guid>
      <dc:creator>ramadashsuresh</dc:creator>
      <dc:date>2007-03-12T09:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the size of lvm2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/reduce-the-size-of-lvm2/m-p/5033302#M48343</link>
      <description>&lt;!--!*#--&gt;Before reducing the size of a file system, take a full backup of it!!!!&lt;BR /&gt;&lt;BR /&gt;You must reduce in two parts:&lt;BR /&gt;&lt;BR /&gt;- Reduce the ext3 file system&lt;BR /&gt;- Reduce the logical volume&lt;BR /&gt;&lt;BR /&gt;You must ensure that when you reduce the logical volume, the logical volume size is not less that the file system size or you can loss the data, so you can reduce the file system size and then reduce the logical volume to a size a little bigger than the file system size, to ensure that you won't break the file system.&lt;BR /&gt;&lt;BR /&gt;Procedure to reduce a 6 GB file system/logical volume to 5 GB, in this case, is /dev/rhel4vg/lvrhel4:&lt;BR /&gt;&lt;BR /&gt;*** Check the current size:&lt;BR /&gt;&lt;BR /&gt;# df -h /mnt/rhel4&lt;BR /&gt;S.ficheros          TamaÃ Â±o Usado  Disp Uso% Montado en&lt;BR /&gt;/dev/mapper/rhel4vg-lvrhel4&lt;BR /&gt;                      6,0G  141M  5,8G   3% /mnt/rhel4&lt;BR /&gt;&lt;BR /&gt;# lvdisplay /dev/rhel4vg/lvrhel4&lt;BR /&gt;  --- Logical volume ---&lt;BR /&gt;  LV Name                /dev/rhel4vg/lvrhel4&lt;BR /&gt;  VG Name                rhel4vg&lt;BR /&gt;  LV UUID                HcD4Es-Ar4s-0GaI-e3GS-29bI-8uuV-EE9NJH&lt;BR /&gt;  LV Write Access        read/write&lt;BR /&gt;  LV Status              available&lt;BR /&gt;  # open                 1&lt;BR /&gt;  LV Size                6,00 GB&lt;BR /&gt;  Current LE             1536&lt;BR /&gt;  Segments               1&lt;BR /&gt;  Allocation             inherit&lt;BR /&gt;  Read ahead sectors     0&lt;BR /&gt;  Block device           253:2&lt;BR /&gt;&lt;BR /&gt;*** Umount the file system an run fsck:&lt;BR /&gt;&lt;BR /&gt;# umount /mnt/rhel4/&lt;BR /&gt;&lt;BR /&gt;# e2fsck -f /dev/mapper/rhel4vg-lvrhel4&lt;BR /&gt;e2fsck 1.39 (29-May-2006)&lt;BR /&gt;Pass 1: Checking inodes, blocks, and sizes&lt;BR /&gt;Pass 2: Checking directory structure&lt;BR /&gt;Pass 3: Checking directory connectivity&lt;BR /&gt;/lost+found not found.  Create&lt;Y&gt;? yes&lt;BR /&gt;&lt;BR /&gt;Pass 4: Checking reference counts&lt;BR /&gt;Pass 5: Checking group summary information&lt;BR /&gt;&lt;BR /&gt;/dev/mapper/rhel4vg-lvrhel4: ***** FILE SYSTEM WAS MODIFIED *****&lt;BR /&gt;/dev/mapper/rhel4vg-lvrhel4: 11/786432 files (18.2% non-contiguous), 60567/1572864 blocks&lt;BR /&gt;&lt;BR /&gt;*** Resize the file sytem to 5 GB&lt;BR /&gt;&lt;BR /&gt;# resize2fs  /dev/rhel4vg/lvrhel4 5G&lt;BR /&gt;resize2fs 1.39 (29-May-2006)&lt;BR /&gt;Resizing the filesystem on /dev/rhel4vg/lvrhel4 to 1310720 (4k) blocks.&lt;BR /&gt;The filesystem on /dev/rhel4vg/lvrhel4 is now 1310720 blocks long.&lt;BR /&gt;&lt;BR /&gt;*** Resize the logical volume to a value a little bigger than 5 GB (Here you can see in the warning that will be reduced to 5,18 GB)&lt;BR /&gt;&lt;BR /&gt;# lvreduce /dev/rhel4vg/lvrhel4 -L 5300M&lt;BR /&gt;  /dev/cdrom: open failed: Sistema de ficheros de sÃ Â³lo lectura&lt;BR /&gt;  Attempt to close device '/dev/cdrom' which is not open.&lt;BR /&gt;  WARNING: Reducing active logical volume to 5,18 GB&lt;BR /&gt;  THIS MAY DESTROY YOUR DATA (filesystem etc.)&lt;BR /&gt;Do you really want to reduce lvrhel4? [y/n]: y&lt;BR /&gt;  Reducing logical volume lvrhel4 to 5,18 GB&lt;BR /&gt;  Logical volume lvrhel4 successfully resized&lt;BR /&gt;&lt;BR /&gt;*** Verify the new sizes&lt;BR /&gt;&lt;BR /&gt;# lvdisplay /dev/rhel4vg/lvrhel4&lt;BR /&gt;  --- Logical volume ---&lt;BR /&gt;  LV Name                /dev/rhel4vg/lvrhel4&lt;BR /&gt;  VG Name                rhel4vg&lt;BR /&gt;  LV UUID                HcD4Es-Ar4s-0GaI-e3GS-29bI-8uuV-EE9NJH&lt;BR /&gt;  LV Write Access        read/write&lt;BR /&gt;  LV Status              available&lt;BR /&gt;  # open                 0&lt;BR /&gt;  LV Size                5,18 GB&lt;BR /&gt;  Current LE             1325&lt;BR /&gt;  Segments               1&lt;BR /&gt;  Allocation             inherit&lt;BR /&gt;  Read ahead sectors     0&lt;BR /&gt;  Block device           253:2&lt;BR /&gt;&lt;BR /&gt;# mount /mnt/rhel4/&lt;BR /&gt;&lt;BR /&gt;# df -h /mnt/rhel4/&lt;BR /&gt;S.ficheros          TamaÃ Â±o Usado  Disp Uso% Montado en&lt;BR /&gt;/dev/mapper/rhel4vg-lvrhel4&lt;BR /&gt;                      5,0G  141M  4,8G   3% /mnt/rhel4&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pretty cool!!, isn't it??&lt;/Y&gt;</description>
      <pubDate>Mon, 12 Mar 2007 10:28:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/reduce-the-size-of-lvm2/m-p/5033302#M48343</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-03-12T10:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the size of lvm2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/reduce-the-size-of-lvm2/m-p/5033303#M48344</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;rsize2fs is the primary tool for reducing a filesystem. It must be umounted before you reduce it.  The logical volume reduce command you have been provided is excellent and yes, quite cool.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 12 Mar 2007 14:03:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/reduce-the-size-of-lvm2/m-p/5033303#M48344</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-03-12T14:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the size of lvm2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/reduce-the-size-of-lvm2/m-p/5033304#M48345</link>
      <description>Thanks ivan &lt;BR /&gt;&lt;BR /&gt;the way of explain the concept very clear&lt;BR /&gt;now the problem has solved&lt;BR /&gt;&lt;BR /&gt;once again thanking u &lt;BR /&gt;have a nice day &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Mar 2007 22:09:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/reduce-the-size-of-lvm2/m-p/5033304#M48345</guid>
      <dc:creator>ramadashsuresh</dc:creator>
      <dc:date>2007-03-12T22:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the size of lvm2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/reduce-the-size-of-lvm2/m-p/5033305#M48346</link>
      <description>resize the file system using the following command&lt;BR /&gt;&lt;BR /&gt;resize2fs &lt;BR /&gt;&lt;BR /&gt;reduce the volume size &lt;BR /&gt;&lt;BR /&gt;lvreduce</description>
      <pubDate>Mon, 12 Mar 2007 22:16:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/reduce-the-size-of-lvm2/m-p/5033305#M48346</guid>
      <dc:creator>ramadashsuresh</dc:creator>
      <dc:date>2007-03-12T22:16:12Z</dc:date>
    </item>
  </channel>
</rss>

