* [linux-lvm] lvm can not be extended
@ 2009-09-28 17:05 Yu Huang
2009-09-28 17:10 ` Stuart D. Gathman
0 siblings, 1 reply; 3+ messages in thread
From: Yu Huang @ 2009-09-28 17:05 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 397 bytes --]
hi, all,
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?
Thanks a lot for your help.
[-- Attachment #2: Type: text/html, Size: 442 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] lvm can not be extended
2009-09-28 17:05 [linux-lvm] lvm can not be extended Yu Huang
@ 2009-09-28 17:10 ` Stuart D. Gathman
2009-09-28 17:22 ` Yu Huang
0 siblings, 1 reply; 3+ messages in thread
From: Stuart D. Gathman @ 2009-09-28 17:10 UTC (permalink / raw)
To: LVM general discussion and development
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@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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] lvm can not be extended
2009-09-28 17:10 ` Stuart D. Gathman
@ 2009-09-28 17:22 ` Yu Huang
0 siblings, 0 replies; 3+ messages in thread
From: Yu Huang @ 2009-09-28 17:22 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 1430 bytes --]
That helps a lot.
Thank you very much!
On Mon, Sep 28, 2009 at 10:10 AM, Stuart D. Gathman <stuart@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@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@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
[-- Attachment #2: Type: text/html, Size: 2116 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-09-28 17:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-28 17:05 [linux-lvm] lvm can not be extended Yu Huang
2009-09-28 17:10 ` Stuart D. Gathman
2009-09-28 17:22 ` Yu Huang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).