<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [linux-lvm] How to increase/decrease space</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>That only increases the device size, you also need to extend the partition onto that larger device. e2fsadm will do it or you can fdisk it to the larger size. (mind you this involves deleting and recreating the partition in-memory not on disk, unless you make a mistake and do d 1 w, instead of d 1, then n p 1 <return><return><return>)</FONT></P>

<P><FONT SIZE=2>Anyhow, you really should look into extending the partition/LV itself now, depending if you partitioned or not, or used an invalid extent specification</FONT></P>

<P><FONT SIZE=2>Austin</FONT>
<BR><FONT SIZE=2> </FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: AdabalaP@schneider.com</FONT>
<BR><FONT SIZE=2>To: LVM general discussion and development</FONT>
<BR><FONT SIZE=2>Sent: 12/15/2004 8:15 PM</FONT>
<BR><FONT SIZE=2>Subject: Re: [linux-lvm] How to increase/decrease space</FONT>
</P>
<BR>

<P><FONT SIZE=2>"lvextend"  did not help. </FONT>
</P>

<P><FONT SIZE=2> </FONT>
</P>

<P><FONT SIZE=2>My file system type is "ext3".</FONT>
</P>

<P><FONT SIZE=2> </FONT>
</P>

<P><FONT SIZE=2>Here is output:</FONT>
</P>

<P><FONT SIZE=2>#df -m</FONT>
</P>

<P><FONT SIZE=2>...</FONT>
</P>

<P><FONT SIZE=2>/dev/mapper/VolGroup00-LogVol04    1985   1728   156    92%   /usr</FONT>
</P>

<P><FONT SIZE=2>...</FONT>
</P>

<P><FONT SIZE=2> </FONT>
</P>

<P><FONT SIZE=2>#lvdisplay   VolGroup00/LogVol04</FONT>
</P>

<P><FONT SIZE=2>...</FONT>
</P>

<P><FONT SIZE=2>LV Size    2.45 GB</FONT>
</P>

<P><FONT SIZE=2>...</FONT>
</P>

<P><FONT SIZE=2> </FONT>
</P>

<P><FONT SIZE=2> </FONT>
</P>

<P><FONT SIZE=2>I did the following on /opt file system for testing, the results were</FONT>
<BR><FONT SIZE=2>the same the filesystem did not get increased.</FONT>
</P>

<P><FONT SIZE=2> </FONT>
</P>

<P><FONT SIZE=2>#umount /opt</FONT>
</P>

<P><FONT SIZE=2>#lvresize  -L +64 VolGroup00/LogVol07</FONT>
</P>

<P><FONT SIZE=2>#lvextend -L +64 VolGroup00/LogVol07</FONT>
</P>

<P><FONT SIZE=2> </FONT>
</P>

<P><FONT SIZE=2>Any suggessions.</FONT>
</P>

<P><FONT SIZE=2> </FONT>
</P>

<P><FONT SIZE=2> </FONT>
</P>

<P><FONT SIZE=2> </FONT>
</P>

<P><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2>Jason Martin <jhmartin@toger.us></FONT>
<BR><FONT SIZE=2>Sent by: linux-lvm-bounces@redhat.com</FONT>
<BR><FONT SIZE=2>12/15/2004 10:15 AM PST</FONT>
<BR><FONT SIZE=2>Please respond to LVM general discussion and development</FONT>
</P>

<P><FONT SIZE=2>To: linux-lvm@redhat.com</FONT>
<BR><FONT SIZE=2>cc: </FONT>
<BR><FONT SIZE=2>bcc: </FONT>
<BR><FONT SIZE=2>Subject: Re: [linux-lvm] How to increase/decrease space</FONT>
<BR><FONT SIZE=2> </FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>On Wed, Dec 15, 2004 at 12:11:30PM -0600, AdabalaP@schneider.com wrote:</FONT>
<BR><FONT SIZE=2>> (1) Added more space (350 meg) to /usr using the command "lvresize</FONT>
<BR><FONT SIZE=2>-L+350".</FONT>
<BR><FONT SIZE=2>> When i display the volume group using "lvdisplay" it shows 2.3 gb, But</FONT>
<BR><FONT SIZE=2>when</FONT>
<BR><FONT SIZE=2>> i use "df -m" it is still at 1.9 gb and 92% used state.</FONT>
<BR><FONT SIZE=2>You've resized the volume but not the filesystem sitting on top</FONT>
<BR><FONT SIZE=2>of it. Some filesystems can be resized online while others must</FONT>
<BR><FONT SIZE=2>be unmounted. Some may not be resizable at all.</FONT>
</P>

<P><FONT SIZE=2>See <A HREF="http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html" TARGET="_blank">http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html</A></FONT>
<BR><FONT SIZE=2><<A HREF="http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html" TARGET="_blank">http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html</A>> .</FONT>
</P>

<P><FONT SIZE=2>-Jason Martin</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>This message is PGP/MIME signed.</FONT>
</P>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>linux-lvm mailing list</FONT>
<BR><FONT SIZE=2>linux-lvm@redhat.com</FONT>
<BR><FONT SIZE=2><A HREF="https://www.redhat.com/mailman/listinfo/linux-lvm" TARGET="_blank">https://www.redhat.com/mailman/listinfo/linux-lvm</A></FONT>
<BR><FONT SIZE=2><<A HREF="https://www.redhat.com/mailman/listinfo/linux-lvm" TARGET="_blank">https://www.redhat.com/mailman/listinfo/linux-lvm</A>> </FONT>
<BR><FONT SIZE=2>read the LVM HOW-TO at <A HREF="http://tldp.org/HOWTO/LVM-HOWTO/" TARGET="_blank">http://tldp.org/HOWTO/LVM-HOWTO/</A></FONT>
<BR><FONT SIZE=2><<A HREF="http://tldp.org/HOWTO/LVM-HOWTO/" TARGET="_blank">http://tldp.org/HOWTO/LVM-HOWTO/</A>> </FONT>
</P>

<P><FONT SIZE=2> <<C.DTF>>  <<ATT190653.txt>> </FONT>
</P>

</BODY>
</HTML>