Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 08-11-2005, 05:54 PM   #1
Registered: Aug 2005
Location: Texas
Distribution: Redhat FC4, Fedora 8 and AIX 5.3, AIX 6.1
Posts: 39

Rep: Reputation: 16
How to resize /usr with resize2fs and LVM2

I am trying to increase the size of my /usr filesystem with resize2fs by doing the following:

telinit 1
umount /dev/vgname/usr -> I get can't unmount device is busy. So I use lsof /usr to see who is currently has the /usr fs in an open state and it is several things. So i tried to reboot come up in rescue mode and resize it but it is still busy to where I can increase it I was figuring that I would be able to start a shell before mounting the fs's and then do the resize but it seems like it still mounts them in rescue mode. I am just seeing if anyone else has ever had this issue before .

Old 08-14-2005, 07:02 AM   #2
Registered: Oct 2003
Location: fargoh eh.
Distribution: slackware
Posts: 94

Rep: Reputation: 15
with lvm2 you should be able to resize a mounted volume.

i believe you can use lvresize to increase the lv size and then use ext2online to grow the filesystem. this is based on rhel4, however, not fc4 as you have indicated in your sig.
Old 08-15-2005, 01:20 AM   #3
Registered: Aug 2005
Location: Texas
Distribution: Redhat FC4, Fedora 8 and AIX 5.3, AIX 6.1
Posts: 39

Original Poster
Rep: Reputation: 16
That worked!!!!

Thanks for your help that wored it is already prebuild into fc4 for readhat plus I tested it on 20gb fs when the author of it says that it was only tested on a 11gb fs so I know that it will work up to 20gb.



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
lvm2-resize partiton linuxmandrake Linux - General 1 09-19-2005 12:22 AM
resize2fs nooch Red Hat 2 02-25-2005 09:42 PM
workaround for parted bug using fdisk and resize2fs carneros Linux - Newbie 2 10-05-2004 12:52 AM
working around PARTED bug 90894 using fdisk and resize2fs carneros Red Hat 0 07-29-2004 02:42 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:04 PM.

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