LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 08-11-2005, 05:54 PM   #1
shadow5277
Member
 
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 .

Thanks,
shadow5277
 
Old 08-14-2005, 07:02 AM   #2
jillande
Member
 
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
shadow5277
Member
 
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.

Thanks,
shadow5277
 
  


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


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

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