LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-03-2006, 01:25 PM   #1
eglow
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.

Thanks!
Tom
 
Old 11-03-2006, 01:41 PM   #2
uselpa
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, 10:55 AM   #3
eglow
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.

Thanks,
Tom
 
  


Reply


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 07:29 PM
Resizing an ext3 LVM Partition PenguinPwrdBox Linux - Software 1 09-04-2005 02:34 AM
ext3 resizing Josh328 Linux - General 5 07-31-2005 02:19 AM
success: resizing ext3 partition Berhanie Slackware 3 01-18-2004 04:44 AM
Resizing a partition (ext3) herc Linux - Hardware 1 12-26-2003 04:17 PM


All times are GMT -5. The time now is 08:29 AM.

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