* [linux-lvm] resize LV
@ 2003-01-28 14:44 Alexander Lazarevich
2003-01-28 15:01 ` Thomas Kleffel
0 siblings, 1 reply; 6+ messages in thread
From: Alexander Lazarevich @ 2003-01-28 14:44 UTC (permalink / raw)
To: Linux LVM Sistina
I've got a RedHat linux 7.3 system, running LVM 1.03 (or whatever comes
with the 7.3 distribution). This system is our fileserver. It is patched
and uses the 2.4.18-19.7.xsmp kernel. I've got one volume group (homevg),
with 2 LV's in that group (/dev/homevg/stafflv and /dev/homevg/userslv).
The filesystem on /dev/homevg/userslv need to be expanded by 50GB. There
are plenty of free PE's left in homevg, more than 126GB.
I know how to expand the LV while the LV is mounted, piece of cake
(lvextend -L+50GB /dev/homevg/userslv - expands userslv by 50GB). But how
do I expand the filesystem while it is mounted? I don't want to
umount the filesystem down to do this.
The filesystem is an ext3 filesystem. Can I use resize2fs? The man pages
for resize2fs say nothing about doing it while the filesystem is mounted,
so I'm assuming I can't. If not, is there some other command that does it
while the filesystem is online?
If I need a kernel patch/recomplile while will allow me to perform
filesystem resizes while that filesystem is up thats fine, please let me
know what the patch is. I need it big time, and I should have figured it
out before I brought the system online! ack!
Thanks in advance!
Alex
--- ---
Alex Lazarevich | Systems | Imaging Technology Group
alazarev@itg.uiuc.edu | (217)244-1565 | www.itg.uiuc.edu
--- ---
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] resize LV
2003-01-28 14:44 [linux-lvm] resize LV Alexander Lazarevich
@ 2003-01-28 15:01 ` Thomas Kleffel
2003-01-28 15:09 ` Alexander Lazarevich
2003-01-28 16:14 ` Tren Blackburn
0 siblings, 2 replies; 6+ messages in thread
From: Thomas Kleffel @ 2003-01-28 15:01 UTC (permalink / raw)
To: linux-lvm
Hi!
> I know how to expand the LV while the LV is mounted, piece of cake
> (lvextend -L+50GB /dev/homevg/userslv - expands userslv by 50GB). But how
> do I expand the filesystem while it is mounted? I don't want to
> umount the filesystem down to do this.
>
> The filesystem is an ext3 filesystem. Can I use resize2fs?
No, afaik neither ext2 nor ext3 support resizing while being mounted.
And if I'm not wrong JFS and ReiserFS can't do this either but XFS can.
I'm using XFS for this reason and it works fine for me.
Bye,
Tommy
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] resize LV
2003-01-28 15:01 ` Thomas Kleffel
@ 2003-01-28 15:09 ` Alexander Lazarevich
2003-01-29 5:08 ` Harri Haataja
2003-01-28 16:14 ` Tren Blackburn
1 sibling, 1 reply; 6+ messages in thread
From: Alexander Lazarevich @ 2003-01-28 15:09 UTC (permalink / raw)
To: linux-lvm
JFS can totally do it. I've been using AIX before we moved to Linux, and I
did it all the time.
There must be a way to do it on linux systems using ext3. Anyone?
Alex
--- ---
Alex Lazarevich | Systems | Imaging Technology Group
alazarev@itg.uiuc.edu | (217)244-1565 | www.itg.uiuc.edu
--- ---
On Tue, 28 Jan 2003, Thomas Kleffel wrote:
> Hi!
>
> > I know how to expand the LV while the LV is mounted, piece of cake
> > (lvextend -L+50GB /dev/homevg/userslv - expands userslv by 50GB). But how
> > do I expand the filesystem while it is mounted? I don't want to
> > umount the filesystem down to do this.
> >
> > The filesystem is an ext3 filesystem. Can I use resize2fs?
>
> No, afaik neither ext2 nor ext3 support resizing while being mounted.
> And if I'm not wrong JFS and ReiserFS can't do this either but XFS can.
>
> I'm using XFS for this reason and it works fine for me.
>
> Bye,
>
> Tommy
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [linux-lvm] resize LV
2003-01-28 15:01 ` Thomas Kleffel
2003-01-28 15:09 ` Alexander Lazarevich
@ 2003-01-28 16:14 ` Tren Blackburn
2003-01-28 16:34 ` Kirby C. Bohling
1 sibling, 1 reply; 6+ messages in thread
From: Tren Blackburn @ 2003-01-28 16:14 UTC (permalink / raw)
To: linux-lvm
Yes, you can resize a reiserfs filesystem while mounted.
Regards,
Tren
-----Original Message-----
From: linux-lvm-admin@sistina.com [mailto:linux-lvm-admin@sistina.com]On
Behalf Of Thomas Kleffel
Sent: Tuesday, January 28, 2003 2:01 PM
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] resize LV
Hi!
> I know how to expand the LV while the LV is mounted, piece of cake
> (lvextend -L+50GB /dev/homevg/userslv - expands userslv by 50GB). But how
> do I expand the filesystem while it is mounted? I don't want to
> umount the filesystem down to do this.
>
> The filesystem is an ext3 filesystem. Can I use resize2fs?
No, afaik neither ext2 nor ext3 support resizing while being mounted.
And if I'm not wrong JFS and ReiserFS can't do this either but XFS can.
I'm using XFS for this reason and it works fine for me.
Bye,
Tommy
_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [linux-lvm] resize LV
2003-01-28 16:14 ` Tren Blackburn
@ 2003-01-28 16:34 ` Kirby C. Bohling
0 siblings, 0 replies; 6+ messages in thread
From: Kirby C. Bohling @ 2003-01-28 16:34 UTC (permalink / raw)
To: linux-lvm
I haven't at ReiserFS in a year or so, but last I checked, you could
expand a filesystem online, but shrinking online one was not possible if
that is of importance to the original poster. You can shrink it offline
however.
http://www.namesys.com/resize_reiserfs.html#EXAMPLES
According to the docs, that information is still current about reiserfs.
For JFS:
http://www10.software.ibm.com/developer/opensource/cvs/jfs/linux24/Documentation/filesystems/jfs.txt?rev=1.20&content-type=text
According to this, the current JFS only supports expanding, which I
(which is should do while online). However, it doesn't appear to
support shrinking it at all.
Now about ext2:
There is a project on sourceforge for the ext2 resizing:
http://ext2resize.sourceforge.net/download.html
Here's a post by the author to in in the LVM mailing archive:
http://linux.msede.com/lvm_mlist/archive/1999/07/0055.html
(I've seen him post about it a lot more recently then that).
Here's a page that appears to have some explaination about it:
http://www-mddsp.enel.ucalgary.ca/People/adilger/online-ext2/
I have no idea how current they all are, I just googled for the ext2
resize online, plenty of links.
Last I knew they don't support ext3, but they wanted to do that. It
used to take a kernel patch to use it. I'm not sure if it still does.
Thanks,
Kirby
On Tue, 2003-01-28 at 16:13, Tren Blackburn wrote:
> Yes, you can resize a reiserfs filesystem while mounted.
>
> Regards,
>
> Tren
>
> -----Original Message-----
> From: linux-lvm-admin@sistina.com [mailto:linux-lvm-admin@sistina.com]On
> Behalf Of Thomas Kleffel
> Sent: Tuesday, January 28, 2003 2:01 PM
> To: linux-lvm@sistina.com
> Subject: Re: [linux-lvm] resize LV
>
>
> Hi!
>
> > I know how to expand the LV while the LV is mounted, piece of cake
> > (lvextend -L+50GB /dev/homevg/userslv - expands userslv by 50GB). But how
> > do I expand the filesystem while it is mounted? I don't want to
> > umount the filesystem down to do this.
> >
> > The filesystem is an ext3 filesystem. Can I use resize2fs?
>
> No, afaik neither ext2 nor ext3 support resizing while being mounted.
> And if I'm not wrong JFS and ReiserFS can't do this either but XFS can.
>
> I'm using XFS for this reason and it works fine for me.
>
> Bye,
>
> Tommy
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
--
Real Programmers view electronic multimedia files with a hex editor.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] resize LV
2003-01-28 15:09 ` Alexander Lazarevich
@ 2003-01-29 5:08 ` Harri Haataja
0 siblings, 0 replies; 6+ messages in thread
From: Harri Haataja @ 2003-01-29 5:08 UTC (permalink / raw)
To: linux-lvm
On Tue, Jan 28, 2003 at 03:08:12PM -0600, Alexander Lazarevich wrote:
> JFS can totally do it. I've been using AIX before we moved to Linux,
> and I did it all the time.
> There must be a way to do it on linux systems using ext3. Anyone?
> On Tue, 28 Jan 2003, Thomas Kleffel wrote:
> > > I know how to expand the LV while the LV is mounted, piece of cake
> > > (lvextend -L+50GB /dev/homevg/userslv - expands userslv by 50GB).
> > > But how do I expand the filesystem while it is mounted? I don't
> > > want to umount the filesystem down to do this.
> > >
> > > The filesystem is an ext3 filesystem. Can I use resize2fs?
> > No, afaik neither ext2 nor ext3 support resizing while being
> > mounted. And if I'm not wrong JFS and ReiserFS can't do this either
> > but XFS can.
> > I'm using XFS for this reason and it works fine for me.
FWIW
On the kernels I've used (no JFS patches, notably), ext3, xfs, reiserfs
resize on the fly and jfs (which requires a weird remount option) still
doesn't. IIRC ICBW
And I'm absolutely sure that the reiserfs's I resize while mount every
now and then do so and don't even require force switches anymore.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-01-29 5:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-28 14:44 [linux-lvm] resize LV Alexander Lazarevich
2003-01-28 15:01 ` Thomas Kleffel
2003-01-28 15:09 ` Alexander Lazarevich
2003-01-29 5:08 ` Harri Haataja
2003-01-28 16:14 ` Tren Blackburn
2003-01-28 16:34 ` Kirby C. Bohling
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.