Linux - Server This forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
12-10-2006, 12:35 AM
#1
LQ Newbie
Registered: May 2005
Location: India
Posts: 13
Rep:
why is my root partition showing 100%
Hi,
I am facing a very peculiar problem. My server root partition kept on increasing and today its showing 100%.
I checked all my application but no application is making log in the root partition.
Below is the df result
[root@linux3 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
4.0G 3.9G 0 100% /
/dev/sda3 190M 15M 166M 8% /boot
none 2.0G 0 2.0G 0% /dev/shm
/dev/mapper/VolGroup00-LogVol05
4.0G 41M 3.7G 2% /home
/dev/mapper/VolGroup00-LogVol03
4.0G 41M 3.7G 2% /tmp
/dev/mapper/VolGroup00-LogVol02
7.9G 2.6G 4.9G 35% /usr
/dev/mapper/VolGroup00-LogVol04
4.0G 1.3G 2.6G 33% /var
/dev/sdb1 68G 17G 47G 27% /opt/opt1
/dev/sdc1 68G 2.4G 62G 4% /opt/opt2
/dev/sdd1 68G 147M 64G 1% /opt/opt3
Root directory ls command
[root@phoneylinux3 ~]# ls -ltrh
total 124K
-rw-r--r-- 1 root root 6.4K Apr 30 2006 install.log.syslog
-rw-r--r-- 1 root root 48K Apr 30 2006 install.log
-rw-r--r-- 1 root root 2.0K Apr 30 2006 anaconda-ks.cfg
-rw-r--r-- 1 root root 1.5K Jun 28 01:34 JavaDaemonTest.java
-rwxr-xr-x 1 root root 8.6K Jul 11 00:40 javaDaemonTest.sh
-rw-r--r-- 1 root root 124 Jul 25 01:42 \
-rw-r--r-- 1 root root 394 Sep 8 19:06 JavaDaemonTest$1.class
-rw-r--r-- 1 root root 630 Sep 13 12:33 db.sh
-rw-r--r-- 1 root root 1.7K Sep 13 12:38 create_table.sql
-rw-r--r-- 1 root root 909 Dec 8 15:45 MyLogger.proprties
-rw-r--r-- 1 root root 5.5K Dec 8 15:45 Mis7886.properties
-rw-r--r-- 1 root root 3.0K Dec 8 16:32 testing.txt
[root@phoneylinux3 ~]# pwd
/root
[root@phoneylinux3 ~]#
Can any body help me how to identify what might be the root cause for the above situation.
And how i can create space on the root partition.
Regards,
Anand
12-10-2006, 12:40 AM
#2
Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,858
Rep:
"du -s" until you find the hog(s)
PS:
4GB isn't really a whole heck of a lot of space to begin with, is it???
12-10-2006, 12:59 AM
#3
LQ Newbie
Registered: May 2005
Location: India
Posts: 13
Original Poster
Rep:
why is my root partition showing 100%
Quote:
Originally Posted by paulsm4
"du -s" until you find the hog(s)
PS:
4GB isn't really a whole heck of a lot of space to begin with, is it???
4GB isn't really a whole heck of a lot of space to begin with, is it???
i am not able to understand the above line.
Regards,
Anand
12-10-2006, 09:03 PM
#4
Member
Registered: Nov 2001
Location: California
Distribution: Slackware 13.1
Posts: 231
Rep:
It looks like you are searching in "/root", when you should be searching in "/".
Run "du -sk" on directories in your "/" partition (excluding directories that are mapped to other partitions, like /var, /home, /tmp, /usr, ...).
12-21-2006, 04:41 AM
#5
Member
Registered: Feb 2003
Location: FTWorth, TX
Distribution: Gentoo, Debian, CentOS, FreeBSD, NetBSD & OpenBSD
Posts: 55
Rep:
According to your df output 4.0G 3.9G 0 100% / damn what is it your are download as root?
Ok try this
Quote:
#cd <enter>
#du -h --max-depth=1 / <enter>
if you find the largest directory you can cd into it and try find the largest of the contents
Quote:
#du -hs | sort -nr | head -15 <enter>
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 11:35 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News