From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx03.extmail.prod.ext.phx2.redhat.com [10.5.110.7]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8SHN0ID006155 for ; Mon, 28 Sep 2009 13:23:00 -0400 Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8SHMgW1023253 for ; Mon, 28 Sep 2009 13:22:42 -0400 Received: by qw-out-2122.google.com with SMTP id 5so589794qwi.39 for ; Mon, 28 Sep 2009 10:22:42 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <3b0f6ce80909281005h60e9a49bk215ede38716ee0ea@mail.gmail.com> Date: Mon, 28 Sep 2009 10:22:41 -0700 Message-ID: <3b0f6ce80909281022x278fac22s385c889c43b3ca1@mail.gmail.com> Subject: Re: [linux-lvm] lvm can not be extended From: Yu Huang Content-Type: multipart/alternative; boundary=000e0cd6b2ee9472d50474a68b58 Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: LVM general discussion and development --000e0cd6b2ee9472d50474a68b58 Content-Type: text/plain; charset=ISO-8859-1 That helps a lot. Thank you very much! On Mon, Sep 28, 2009 at 10:10 AM, Stuart D. Gathman wrote: > On Mon, 28 Sep 2009, Yu Huang wrote: > > > I am new to lvm. I have installed my ubuntu 8.04 on LVM in my machine. > > > > I created a volume for the root partition. I used lvextend to extend the > > size of the root volume. > > In lvdisplay, it shows the LV size is 25.00G. But when I use df, it shows > > the size of the root volume is > > 5.00G, which is the original size I allocated to it. > > > > Am I missing something here? > > Definitely. Df shows the filesystem size, not the LV size. You probably > want to extend the filesystem to match the LV. In EL5, 'resize2fs' will > resize a filesystem while it is mounted (Leave out the size, and it will > resize > to match the LV). If the version on your Ubuntu doesn't know how to > resize online, then you'll have to boot from CD or USB and run resize2fs. > > -- > Stuart D. Gathman > Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154 > "Confutatis maledictis, flammis acribus addictis" - background song for > a Microsoft sponsored "Where do you want to go from here?" commercial. > > _______________________________________________ > linux-lvm mailing list > linux-lvm@redhat.com > https://www.redhat.com/mailman/listinfo/linux-lvm > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/ > --000e0cd6b2ee9472d50474a68b58 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable That helps a lot.

Thank you very much!

On Mon, Sep 28, 2009 at 10:10 AM, Stuart D. Gathman <stuart@bmsi.com> wrot= e:
<= div class=3D"h5">On Mon, 28 Sep 2009, Yu Huang wrote:

> I am new to lvm. I have installed my ubuntu 8.04 on LVM in my machine.=
>
> I created a volume for the root partition. I used lvextend to extend t= he
> size of the root volume.
> In lvdisplay, it shows the LV size is 25.00G. But when I use df, it sh= ows
> the size of the root volume is
> 5.00G, which is the original size I allocated to it.
>
> Am I missing something here?

Definitely. =A0Df shows the filesystem size, not the LV size. = =A0You probably
want to extend the filesystem to match the LV. =A0In EL5, 'resize2fs= 9; will
resize a filesystem while it is mounted (Leave out the size, and it will re= size
to match the LV). =A0If the version on your Ubuntu doesn't know how to<= br> resize online, then you'll have to boot from CD or USB and run resize2f= s.

--
=A0 =A0 =A0 =A0 =A0 =A0 =A0Stuart D. Gathman <stuart@bmsi.com>
=A0 =A0Business Management Systems Inc. =A0Phone: 703 591-0911 Fax: 703 59= 1-6154
"Confutatis maledictis, flammis acribus addictis" - background so= ng for
a Microsoft sponsored "Where do you want to go from here?" commer= cial.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

--000e0cd6b2ee9472d50474a68b58--