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? |
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. |
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. |
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. |
tkx a lot for your help.
|
All times are GMT -5. The time now is 12:10 AM. |