LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   resizing /usr (https://www.linuxquestions.org/questions/linux-server-73/resizing-usr-535809/)

teco 03-08-2007 05:46 PM

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?

fayez 03-12-2007 10:08 AM

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.

teco 03-12-2007 11:16 AM

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.

fayez 03-13-2007 01:54 AM

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.

teco 03-13-2007 10:27 PM

tkx a lot for your help.


All times are GMT -5. The time now is 12:10 AM.