All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] lvextend doesn't extend the first time ...
@ 2003-11-03 11:41 Kevin Buyting
  2003-11-04  2:27 ` Patrick Caulfield
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Buyting @ 2003-11-03 11:41 UTC (permalink / raw)
  To: linux-lvm

gentoo 1.4
vanilla-sources 2.4.22
lvm-user 1.0.7-r1

I am trying to extend my /dev/vg/lv01 (EXT3) by 3Gig's so i did a 

# lvextend -L +3G /dev/vg/lv01

then

# e2fsadm -L +3G /dev/vg/lv01 

*making chkfs reporting errors ... fixing them*
... and nothing happens ... then i did

# sync
# mount /dev/vg/lv01 /mnt/somewhere
# df 

says it's still 80G NOT 83G! so i try again *fearing the worst*

# e2fsadm -L +3G /dev/vg/lv01

*making chkfs ... resizing*
again and get 6G more to my /dev/vg/lv01
files are ok... *the best that could happen* 8))

the question is:
how come it isn't extendet by 3G instead of 6G ?
what am i doing wrong?
just to know for the next time ...

thanks in advance for any advice

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-lvm] lvextend doesn't extend the first time ...
  2003-11-03 11:41 [linux-lvm] lvextend doesn't extend the first time Kevin Buyting
@ 2003-11-04  2:27 ` Patrick Caulfield
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick Caulfield @ 2003-11-04  2:27 UTC (permalink / raw)
  To: linux-lvm

On Mon, Nov 03, 2003 at 06:40:36PM +0100, Kevin Buyting wrote:
> gentoo 1.4
> vanilla-sources 2.4.22
> lvm-user 1.0.7-r1
> 
> I am trying to extend my /dev/vg/lv01 (EXT3) by 3Gig's so i did a 
> 
> # lvextend -L +3G /dev/vg/lv01
> 
> then
> 
> # e2fsadm -L +3G /dev/vg/lv01 
> 
> *making chkfs reporting errors ... fixing them*
> ... and nothing happens ... then i did
> 
> # sync
> # mount /dev/vg/lv01 /mnt/somewhere
> # df 
> 
> says it's still 80G NOT 83G! so i try again *fearing the worst*
> 
> # e2fsadm -L +3G /dev/vg/lv01
> 
> *making chkfs ... resizing*
> again and get 6G more to my /dev/vg/lv01
> files are ok... *the best that could happen* 8))
> 
> the question is:
> how come it isn't extendet by 3G instead of 6G ?
> what am i doing wrong?
> just to know for the next time ...
> 
> thanks in advance for any advice
> 

You've misunderstood the commands. e2fsadm does the lvextend AND the
resize2fs. If you want to add 3Gig to your filesystem you should do EITHER:

e2fsadm -L+3G /dev/vg/lv01

OR

lvextend -L+3G /dev/vg/lv01
resize2fs /dev/vg0lv01


-- 

patrick

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-04  2:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-03 11:41 [linux-lvm] lvextend doesn't extend the first time Kevin Buyting
2003-11-04  2:27 ` Patrick Caulfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.