Re: [linux-lvm] resize an ext3 on an LV

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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" <alazarev@itg.uiuc.edu>
 To: "Linux LVM Sistina" <linux-lvm@sistina.com>
 Sent: Thursday, January 30, 2003 12:32 AM
 Subject: Re: [linux-lvm] resize an ext3 on an LV
 
 
 > 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
 > 
 > On Wed, 29 Jan 2003, Jan-Benedict Glaw wrote:
 > 
 > > On Wed, 2003-01-29 09:16:15 -0600, Alexander Lazarevich <alazarev@itg.uiuc.edu>
 > > wrote in message <Pine.LNX.4.44.0301290900350.22463-100000@zeus.itg.uiuc.edu>:
 > > > 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


_______________________________________________
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/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux