LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2013, 01:27 AM   #1
azarmohds
LQ Newbie
 
Registered: Jan 2013
Posts: 9

Rep: Reputation: Disabled
root mountpoint size getting bigger


Hi,

OS Version : Redhat 5.6 64 bit

My Linux machine's root mount point size is getting bigger. I don't know what is the root cause? Where I can I check which files are occupying more space?

[root@ebsdb ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 20G 19G 130M 100% /
/dev/sdc1 97G 38G 55G 42% /u01
/dev/sda1 99M 15M 80M 16% /boot
tmpfs 7.9G 194M 7.7G 3% /dev/shm
/dev/sde1 158G 148G 2.3G 99% /u02
/dev/sdi1 247G 155G 79G 67% /u03
[root@ebsdb ~]#

See I allocated root mount point for /dev/sda2 20GB but here only 130MB space reamining there. Why root mount point need 20GB , please advise me what should i do? This is Oracle database server
 
Old 01-27-2013, 04:21 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
You've got an oracle db server with a partition layout as simple as that?? That's really not good. /usr and /home and /var really should have been separate partitions to prevent you getting in a situation as dangerous as this.

Anyway, to find where the space has gone, *MY* preference is usually to do something like "du -xh --max-depth=1 /" to get the size of only the first level of directories, and gradually dig deeper and deeper. easier to put the size of all the same level of directory into context I find.
 
Old 01-27-2013, 04:41 AM   #3
azarmohds
LQ Newbie
 
Registered: Jan 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
See the output
[root@ebsdb ~]# du -xh --max-depth=1 /
83M /root
96K /tmp
12K /mnt
4.0K /u03
2.0K /boot
0 /sys
672K /home
46M /sbin
16K /lost+found
8.0K /selinux
0 /misc
4.0K /u02
111M /etc
8.0K /media
0 /dev
27M /lib64
4.0K /u01
159M /lib
0 /proc
0 /net
100M /var
18M /opt
8.0K /srv
100K /tftpboot
2.8G /usr
4.0K /install
7.8M /bin
3.4G /

Total 3.4 GB , but my root mount point / total size 20GB but now it's showing 130m free space, So Where is the remaining space for this hard disk ? How did linux occupied this space ?
 
Old 01-27-2013, 05:21 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Sounds like you've deleted a file that's still in use. If so, you can restart the service or whatever has that file open and the space should come back. badly configured logfile rotation is often a culprit for this.

run "lsof | grep deleted" and look for large entries there.
 
1 members found this post helpful.
Old 01-27-2013, 06:31 AM   #5
azarmohds
LQ Newbie
 
Registered: Jan 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
Sounds like you've deleted a file that's still in use. If so, you can restart the service or whatever has that file open and the space should come back. badly configured logfile rotation is often a culprit for this.

run "lsof | grep deleted" and look for large entries there.
Thanks for your idea, I think I am now in right path, let me check and come back to you
 
Old 01-28-2013, 03:55 AM   #6
azarmohds
LQ Newbie
 
Registered: Jan 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
Sounds like you've deleted a file that's still in use. If so, you can restart the service or whatever has that file open and the space should come back. badly configured logfile rotation is often a culprit for this.

run "lsof | grep deleted" and look for large entries there.
I restarted the server also, Still I am getting very less size only
 
Old 01-28-2013, 04:09 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
if you restarted the entire machine, the space should either have been freed, or clearly used up in the du output.
 
Old 01-28-2013, 06:37 AM   #8
azarmohds
LQ Newbie
 
Registered: Jan 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
Sounds like you've deleted a file that's still in use. If so, you can restart the service or whatever has that file open and the space should come back. badly configured logfile rotation is often a culprit for this.

run "lsof | grep deleted" and look for large entries there.
Thank you.

Last edited by azarmohds; 01-28-2013 at 06:40 AM.
 
  


Reply


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
partition size detected by testdisk bigger than disk size Person_1873 Linux - Hardware 2 03-18-2011 12:11 AM
compress file size bigger than uncompress in gzip format kumartnj Linux - General 1 04-10-2009 03:28 AM
Which command will use to display all .php file have size bigger than 30kb niitpro Linux - Newbie 3 09-09-2007 09:38 AM
app menu's font size bigger on gnome than on kde minike Linux - Software 3 03-29-2007 06:18 AM
size gets bigger and bigger alaios Linux - General 1 07-22-2004 11:18 AM


All times are GMT -5. The time now is 07:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration