[CentOS] extending ext3 filesystem on logical volume

Fri Aug 18 12:24:36 UTC 2006
Peter Kjellström <cap at nsc.liu.se>

On Friday 18 August 2006 02:40, William L. Maltby wrote:
> On Thu, 2006-08-17 at 20:28 -0400, William L. Maltby wrote:
> > On Thu, 2006-08-17 at 18:32 -0400, James Marcinek wrote:
> > > hello all,
> > >
> > > I am trying to expand my /var file system which resides on a logical
> > > volume. <snip>
> > >
> > > ext2online: unable to resize /dev/mapper/root_vg-lv_var
> > >
> > > echo $?
> > > 3
> > >
> > > 3    Error in pre-resizing (user space) operation
> > >
> > > Can someone tell me what I'm doing wrong. I would prefer doing this
> > > online...
> >
> > You may not be doing anything wrong. From the man page,
> >
> >   you need to have the Online ext2 resize support
> >   (CON-FIG_EXT2_RESIZE)  feature  enabled  in  the kernel (after
> >   applying the appropriate patch for the 2.x series of kernels).
> >
> > *I* don't know if the kernel(s) have been compiled with this enabled? Do
> > you know?
>
> I just checked the stock kernel (34-2 version) .config file and that
> flag is not enabled, AFAICT. Maybe the Plus kernel has it?

I know that online ext3 resize works just fine on c-4, I've resized many 
(including our centos-mirror and a few multi-terabyte filesystems with load).

What the OP could be hitting is trying to resize an old or somehow broken fs. 
I'd have a look at "tune2fs -l" for the filesystem.

/Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20060818/8927b054/attachment-0005.sig>