[linux-lvm] lvm can not be extended

Yu Huang paulhybryant at gmail.com
Mon Sep 28 17:22:41 UTC 2009


That helps a lot.

Thank you very much!

On Mon, Sep 28, 2009 at 10:10 AM, Stuart D. Gathman <stuart at bmsi.com> 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 <stuart at bmsi.com>
>    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 at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20090928/107bd2ae/attachment.htm>


More information about the linux-lvm mailing list