LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-09-2007, 01:23 AM   #1
xyleo
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Rep: Reputation: 0
root partition space constraint


Dear Linux Fan,

Currently i am running a Webserver, using RedHat Ent 4.

Below is my df -h output : -

[root@fosters bin]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup_ID_20323-LogVol1
1008M 840M 118M 88% /
/dev/sda3 99M 9.2M 85M 10% /boot
none 1014M 0 1014M 0% /dev/shm
/dev/mapper/VolGroup_ID_20323-LogVol2
496M 12M 460M 3% /tmp
/dev/mapper/VolGroup_ID_20323-LogVol5
47G 6.6G 38G 16% /usr
/dev/mapper/VolGroup_ID_20323-LogVol4
496M 205M 266M 44% /var
/dev/mapper/VolGroup_ID_20323-LogVolHome
25G 1.8G 22G 8% /home
[root@fosters bin]#

Currently as you can see my root partition is fully utilised, is there any ways i can reduce by deleting some files in my root partition or by incresing my root partition size? Below is the content under root partition : -

[root@fosters /]# ls -lrt
total 146
drwxr-xr-x 2 root root 4096 Aug 13 2004 srv
drwxr-xr-x 2 root root 4096 Aug 13 2004 mnt
drwxr-xr-x 2 root root 4096 Aug 13 2004 initrd
drwxr-xr-x 2 root root 4096 Jul 10 2006 selinux
drwxr-xr-x 3 root root 4096 Jul 10 2006 opt
drwx------ 2 root root 16384 Jul 10 2006 lost+found
drwxr-xr-x 2 root root 4096 Jul 12 2006 misc
drwxr-xr-x 25 root root 1024 Jul 28 2006 var
drwxr-xr-x 23 root root 4096 Sep 27 2006 usr
drwxr-xr-x 11 root root 4096 Jan 12 10:49 lib
drwxr-xr-x 2 root root 4096 Jan 26 20:17 bin
drwxr-xr-x 4 root root 1024 May 8 15:13 boot
drwxr-xr-x 4 root root 4096 May 8 15:20 media
dr-xr-xr-x 217 root root 0 May 8 23:17 proc
drwxr-xr-x 9 root root 0 May 8 23:17 sys
drwxr-xr-x 2 root root 12288 May 9 04:02 sbin
drwxr-xr-x 92 root root 12288 May 9 08:40 etc
drwxr-xr-x 9 root root 6880 May 9 09:27 dev
drwxr-x--- 19 root root 4096 May 9 09:27 root
drwxrwxrwt 12 root root 1024 May 9 09:33 tmp
drwxr-xr-x 27 root apache 4096 May 9 09:38 home
[root@fosters /]#


Need you advice on how to clean up some unwanted files or to increase the partition size..

Thank you,
Cheers,
xyleo
malaysia
 
Old 05-09-2007, 02:01 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The partitions that tend to be the largest, such as /usr are already mounted elsewhere. Why don't you look at /opt and /lib and see how much space they use.

You might also scan through the Linux Filesystem Hierarchy Standard ( it's on the www.tldp.org website. ).
Some of the partitions like /usr, you may be able to mount read-only.
 
Old 05-09-2007, 02:29 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,124

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Looks like it's LVM, why not use it like it was designed.
Add another partition/disk to that vg, then extend the lv.

If you had to, you could reduce /home and add it to the root. Can get ugly depending on the filsesystem involved.
There is a howto on tldp - handy site in lotsa ways.
 
Old 05-10-2007, 01:15 AM   #4
xyleo
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Hi syg00,

Thanx for your advice. Can you guide me how to do this as i m not good when it comes to partitioning in linux. I dont mind taking 5GB from /home partition adding into the root partition. How to do this without facing any catasthrophy?

Thanx a million.
Cheeers,
xyleo

Quote:
Originally Posted by syg00
Looks like it's LVM, why not use it like it was designed.
Add another partition/disk to that vg, then extend the lv.

If you had to, you could reduce /home and add it to the root. Can get ugly depending on the filsesystem involved.
There is a howto on tldp - handy site in lotsa ways.
 
Old 05-10-2007, 02:06 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,124

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Nope - you'll be much better off going here.
Seems to cover everything you should need by people who know what they are talking about. I don't use LVM - keep meaning to, never got to it for various reasons.
 
  


Reply



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
where did the space under the root partition go? gongtech2006 Debian 6 01-19-2007 03:37 PM
Where did root partition space go? username is already Linux - General 3 12-15-2005 02:16 PM
Missing Space on Root Partition newtommy Linux - General 2 11-27-2005 10:17 AM
/ root partition has 0 space?? adambeazley Mandriva 1 05-01-2004 09:53 PM
Root partition space @ 0% jbrashear Linux - Newbie 1 04-03-2004 12:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:07 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration