Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-03-2006, 02:25 PM   #1
LQ Newbie
Registered: Jul 2006
Location: Frederick, MD
Distribution: CentOS 4.3
Posts: 18

Rep: Reputation: 0
Online ext3 FS Resizing?

Hello all,

Quick question. I have a FS that needs to be increased by 1GB. I was able to increase the LV that it sits upon via an lvextend command without trouble. However, what is the best way to increase the FS to use the, now available, space.

I know in HP-UX I can do this with an fsadm command, in AIX I can do an extendfs, just don't see a way to do it online via Linux.

I noticed resize2fs, but this is ext3.

Old 11-03-2006, 02:41 PM   #2
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
resize2fs is for both ext2 and ext3. But as you stated, it doesn't work when the LV is mounted.
Old 11-04-2006, 11:55 AM   #3
LQ Newbie
Registered: Jul 2006
Location: Frederick, MD
Distribution: CentOS 4.3
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for the assistance. I discovered as well that resize2fs can be used on ext3 FS's as well. Someone needs to rename that! ;-) ... and you are correct, looks like I needed to unmount the FS before extending it. The below steps work fine:

lvextend -L 1536 /dev/rootvg/lvtest
umount /test
e2fsck -y -f /dev/rootvg/lvtest
resize2fs -p /dev/rootvg/lvtest
e2fsck -y -f /dev/rootvg/lvtest
mount /test
df -m /test

Found the steps via google, works fine. Hope they help.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing ext3 partitions! alur3n Linux - General 3 10-03-2005 08:29 PM
Resizing an ext3 LVM Partition PenguinPwrdBox Linux - Software 1 09-04-2005 03:34 AM
ext3 resizing Josh328 Linux - General 5 07-31-2005 03:19 AM
success: resizing ext3 partition Berhanie Slackware 3 01-18-2004 05:44 AM
Resizing a partition (ext3) herc Linux - Hardware 1 12-26-2003 05:17 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration