LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-08-2007, 05:46 PM   #1
teco
LQ Newbie
 
Registered: Oct 2004
Location: Brazil
Distribution: RH, Fedora
Posts: 10

Rep: Reputation: 0
Question resizing /usr


hello

Through the df command, I can see that the / is too used, 92 %. I found the guilt.. is the /usr.
how can I create an separate filesystem to the /usr?

I'm using fedora C4 with lvm partitions. the / is under a VG00 and lvol1.
I'm looking for create another VG and lvol to /usr only. or even put one more disk into VG00 and create another lvol.

if everything above is too hard, I have another option: I still have 1,38GB unused into the VG, could I extend the "/" online? if no how can I do it offline?
 
Old 03-12-2007, 10:08 AM   #2
fayez
Member
 
Registered: Aug 2004
Location: Amman
Distribution: Red Hat
Posts: 50

Rep: Reputation: 15
try the following:

# vgdisplay -v VolGroup00
find out the free PE in the VolGroup00, and the No. of LE for LogVol00.(these names are the default naming).

# lvextend -l x /dev/VolGroup/LogVol00
where x = free PE+No. of LE

# ext2online /dev/VolGroup00/LogVol00
this utility for online ext2 file system resizer.
 
Old 03-12-2007, 11:16 AM   #3
teco
LQ Newbie
 
Registered: Oct 2004
Location: Brazil
Distribution: RH, Fedora
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks a lot Fayez.. that solved my problem.
your post was very helpfull.

One more thing.
If I wanted create another filesystem to the /usr?
how can I unmount the original /usr?

thanks in advance.
 
Old 03-13-2007, 01:54 AM   #4
fayez
Member
 
Registered: Aug 2004
Location: Amman
Distribution: Red Hat
Posts: 50

Rep: Reputation: 15
You can create a separate file system, then copy /usr as it is to the new FS.
but the problem is that /usr contains lots of links and special Permission on certain files. any way you try it, but remember to modify /etc/fstab to point to the new FS.
If it gives problems at boot time, you can modify same entry in fstab file to point to the old FS.
 
Old 03-13-2007, 10:27 PM   #5
teco
LQ Newbie
 
Registered: Oct 2004
Location: Brazil
Distribution: RH, Fedora
Posts: 10

Original Poster
Rep: Reputation: 0
Thumbs up

tkx a lot for your help.
 
  


Reply

Tags
extend, filesystem, resizing


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
making files available in /usr/local/bin and /usr/sbin reakinator Linux - Newbie 1 10-14-2006 05:09 PM
./configure --prefix=/usr [default: /usr/local] why??? stevesk Slackware 14 07-03-2006 06:28 AM
Resizing ext3 partitions (/usr) [file system management] xxx_anuj_xxx Red Hat 5 11-29-2005 03:35 AM
resizing /usr partition tjgadu Linux - Newbie 2 07-27-2005 03:24 AM
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 07:10 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