* [linux-lvm] ext2online fails
@ 2001-11-29 10:32 Jonathan S. Polacheck
2001-11-29 10:51 ` Andreas Dilger
0 siblings, 1 reply; 6+ messages in thread
From: Jonathan S. Polacheck @ 2001-11-29 10:32 UTC (permalink / raw)
To: linux-lvm
I am trying to resize a filesystem after lvextend. ext2online returns the
following;
[root@netman root]# ext2online /dev/vg1/vol_usr
ext2online v1.1.14 - 1999/10/14 for EXT2FS 0.5b
ext2online: resizing to 258048 blocks
ext2online: resize failed while in kernel
ext2online: Invalid argument
The ext2online man page states;
In order to use ext2online, you need to have the Online ext2 resize
support (CONFIG_EXT2_RESIZE) compiled into the kernel (this is an
optional patch for the 2.x series of kernels).
How do I tell if my kernel is properly compiled? If it is not properly
compiled, I have a problem as I currently do not have the disk space to
install gcc, make or the kernel source.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] ext2online fails
2001-11-29 10:32 [linux-lvm] ext2online fails Jonathan S. Polacheck
@ 2001-11-29 10:51 ` Andreas Dilger
2001-12-06 2:48 ` Urs Thuermann
2001-12-13 10:18 ` Paul Jakma
0 siblings, 2 replies; 6+ messages in thread
From: Andreas Dilger @ 2001-11-29 10:51 UTC (permalink / raw)
To: Jonathan S. Polacheck; +Cc: linux-lvm
On Nov 29, 2001 10:32 -0600, Jonathan S. Polacheck wrote:
> I am trying to resize a filesystem after lvextend. ext2online returns the
> following;
>
> [root@netman root]# ext2online /dev/vg1/vol_usr
> ext2online v1.1.14 - 1999/10/14 for EXT2FS 0.5b
>
> ext2online: resizing to 258048 blocks
> ext2online: resize failed while in kernel
> ext2online: Invalid argument
>
> The ext2online man page states;
>
> In order to use ext2online, you need to have the Online ext2 resize
> support (CONFIG_EXT2_RESIZE) compiled into the kernel (this is an
> optional patch for the 2.x series of kernels).
>
> How do I tell if my kernel is properly compiled? If it is not properly
> compiled, I have a problem as I currently do not have the disk space to
> install gcc, make or the kernel source.
Unless you patched it yourself, I don't know of any kernels that include
this patch by default. Finally with 2.5 here, it will go into the main
kernel.
If you need to resize your filesystem, you need to unmount it (go into
single user mode from a console window (not X!) with "telinit 1", which
will stop most of the programs running on the system). Then run
"ext2resize /dev/vg1/vol_usr" which will detect the size of the LV and
resize the filesystem to fill it.
Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] ext2online fails
2001-11-29 10:51 ` Andreas Dilger
@ 2001-12-06 2:48 ` Urs Thuermann
2001-12-12 15:28 ` Andreas Dilger
2001-12-13 10:18 ` Paul Jakma
1 sibling, 1 reply; 6+ messages in thread
From: Urs Thuermann @ 2001-12-06 2:48 UTC (permalink / raw)
To: linux-lvm
Andreas Dilger <adilger@turbolabs.com> writes:
> Unless you patched it yourself, I don't know of any kernels that include
> this patch by default. Finally with 2.5 here, it will go into the main
> kernel.
Will it then also be able to reduce an ext2/3 filesystem while being
mounted?
urs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] ext2online fails
2001-12-06 2:48 ` Urs Thuermann
@ 2001-12-12 15:28 ` Andreas Dilger
0 siblings, 0 replies; 6+ messages in thread
From: Andreas Dilger @ 2001-12-12 15:28 UTC (permalink / raw)
To: Urs Thuermann; +Cc: linux-lvm
On Dec 06, 2001 09:48 +0100, Urs Thuermann wrote:
> Andreas Dilger <adilger@turbolabs.com> writes:
> > Unless you patched it yourself, I don't know of any kernels that include
> > this patch by default. Finally with 2.5 here, it will go into the main
> > kernel.
>
> Will it then also be able to reduce an ext2/3 filesystem while being
> mounted?
No, that is terribly difficult, so it will never be done. Since that is
rarely a real requirement, offline resizing is the only solution.
Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] ext2online fails
2001-11-29 10:51 ` Andreas Dilger
2001-12-06 2:48 ` Urs Thuermann
@ 2001-12-13 10:18 ` Paul Jakma
2001-12-13 13:00 ` Andreas Dilger
1 sibling, 1 reply; 6+ messages in thread
From: Paul Jakma @ 2001-12-13 10:18 UTC (permalink / raw)
To: linux-lvm; +Cc: Jonathan S. Polacheck
On Thu, 29 Nov 2001, Andreas Dilger wrote:
> "ext2resize /dev/vg1/vol_usr" which will detect the size of the LV and
> resize the filesystem to fill it.
surely for an LVM user it'd be more advisable to use 'e2fsadm' so as
to ensure the resizing of the LV and ext2/3 fs are done with regard to
each other (and without user intervention.)? or does ext2resize now
also resize the LV as neccessary?
> Cheers, Andreas
--paulj
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] ext2online fails
2001-12-13 10:18 ` Paul Jakma
@ 2001-12-13 13:00 ` Andreas Dilger
0 siblings, 0 replies; 6+ messages in thread
From: Andreas Dilger @ 2001-12-13 13:00 UTC (permalink / raw)
To: linux-lvm; +Cc: Jonathan S. Polacheck
On Dec 13, 2001 16:19 +0000, Paul Jakma wrote:
> On Thu, 29 Nov 2001, Andreas Dilger wrote:
> > "ext2resize /dev/vg1/vol_usr" which will detect the size of the LV and
> > resize the filesystem to fill it.
>
> surely for an LVM user it'd be more advisable to use 'e2fsadm' so as
> to ensure the resizing of the LV and ext2/3 fs are done with regard to
> each other (and without user intervention.)? or does ext2resize now
> also resize the LV as neccessary?
Well, if you read the context (not shown here), he already ran e2fsadm
and it resized the LV for him, but the ext2online kernel patches were
not in the kernel, so the filesystem was not resized. Hence the request
to run ext2resize on the (already resized) LV directly. I agree that it
is preferrable to run e2fsadm when doing this in normal cases.
Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-12-13 13:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-29 10:32 [linux-lvm] ext2online fails Jonathan S. Polacheck
2001-11-29 10:51 ` Andreas Dilger
2001-12-06 2:48 ` Urs Thuermann
2001-12-12 15:28 ` Andreas Dilger
2001-12-13 10:18 ` Paul Jakma
2001-12-13 13:00 ` Andreas Dilger
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.