Skip to contentSkip to conversation

resize an ext3 on an LV

linux-lvm [email protected] 1 participant 1 message Feb 5, 2003

lore
Share & tools
lore
#0 lore raw

You can do ext3 expand with "e2fsadm -L +xxxG -n /dev/homevg/userslv". But before using this command, must reduce LV volume to original size. e2fsadm may resize filesystem and logical volume BOTH.
-n is nofsck.
You must check filesystem before "e2fsadm" by e2fsck.

wish your good Luck !!!
Yongchul Kim.

----- Original Message -----
From: "Alexander Lazarevich" <[email protected]>
To: "Linux LVM Sistina" <[email protected]>
Sent: Thursday, January 30, 2003 12:32 AM
Subject: Re: [linux-lvm] resize an ext3 on an LV

Quoted 34 lines

The LV is already expanded. All I want to do is resize the ext3 filesystem to the new size of the LV, which is now 275GB.

But I need to know the commands. Or some hint of what the command is. Is it just "resize2fs /dev/homevg/userslv"? I've seen some posts saying that using resize2fs will destroy an ext3 filesystem, is that not true? Will the journal stay intact? What's the command that you use?

Thanks for the help!

Alex

Quoted 20 lines · Jan-Benedict Glaw

On Wed, 2003-01-29 09:16:15 -0600, Alexander Lazarevich <[email protected]> wrote in message <[email protected]>:

Quoted 10 lines

A rehash of some questions I asked earlier, but I want to clarify:

Redhat 7.3, 2.4.18-19.7.xsmp kernel, using LVM 1.03.

I've got a 180GB LV (/dev/homevg/userslv) which contains an ext3 filesystem (mount point /home/users).

Once I umount the /dev/homevg/userslv, can I use resize2fs to extend the ext3 filesystem? Or must I first remove the journal from ext3, then resize, then add the journal back to it, then remount?

You can directly enlarge the filesystem, but, of course, you've got to extend the logical volume before that... You don't need to remove the journal, at least, this worked numerous times for me:-)

However, backup is always a good idea, though.

MfG, JBG