LinuxQuestions.org
Help answer threads with 0 replies.
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 08-26-2009, 10:09 AM   #1
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Rep: Reputation: 18
Question kcore question / root partition full.


Before anyone jumps down my throat, i know Kcore is the kernel core and is simply a reference to memory and is not on the filesystem. apparently.

However -
Code:
 df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p3     4.0G  4.0G  6.2M 100% /
/dev/cciss/c0d0p1      99M   14M   81M  14% /boot
none                  2.0G     0  2.0G   0% /dev/shm
/dev/cciss/c0d0p8     7.9G  263M  7.3G   4% /home
/dev/cciss/c0d0p5     7.9G   61M  7.5G   1% /opt
/dev/cciss/c0d0p10     95G   58G   32G  65% /space
/dev/cciss/c0d0p9    1012M   34M  927M   4% /tmp
/dev/cciss/c0d0p6     7.9G  1.9G  5.7G  25% /usr
/dev/cciss/c0d0p7     7.9G  165M  7.4G   3% /var
We also have nfs storage mounting to this machine that im not including here.

a closer look:

Code:
df -ha

Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p3     4.0G  4.0G  6.2M 100% /
none                     0     0     0   -  /proc
none                     0     0     0   -  /sys
none                     0     0     0   -  /dev/pts
usbfs                    0     0     0   -  /proc/bus/usb
/dev/cciss/c0d0p1      99M   14M   81M  14% /boot
none                  2.0G     0  2.0G   0% /dev/shm
/dev/cciss/c0d0p8     7.9G  263M  7.3G   4% /home
/dev/cciss/c0d0p5     7.9G   61M  7.5G   1% /opt
/dev/cciss/c0d0p10     95G   58G   32G  65% /space
/dev/cciss/c0d0p9    1012M   34M  927M   4% /tmp
/dev/cciss/c0d0p6     7.9G  1.9G  5.7G  25% /usr
/dev/cciss/c0d0p7     7.9G  165M  7.4G   3% /var
Code:
du -ha /proc/kcore 4.8G    /proc/kcore
It is noticeably bigger than the root fs anyway.

Ive done many many finds, du etc etc and i cannot locate a 4GB file on the root partition ir anything that adds up to 4GB. As this machine mounts a lot ( as terabytes) of data, so random finds for files over 500M isnt appropriate.

I also went through each directory that isnt on the root partition manually and still couldnt find anything that got over 10M. Overall adding up the directories in the filesystem, minus /proc doesnt equal anywhere near 4gig, more like a couple hundred meg.

The only place where a 4gig file is referenced is in /proc. and that file isnt actually on the filesystem.

Reboot is out of the question

im stumped.

Suggestions?

Last edited by dxangel; 08-26-2009 at 10:29 AM. Reason: because people dont read it the first time :/
 
Old 08-26-2009, 10:16 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by dxangel View Post
Before anyone jumps down my throat, i know Kcore is the kernel core and is simply a reference to memory and is not on the filesystem. apparently.

However -
Code:
 df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p3     4.0G  4.0G  6.2M 100% /
/dev/cciss/c0d0p1      99M   14M   81M  14% /boot
none                  2.0G     0  2.0G   0% /dev/shm
/dev/cciss/c0d0p8     7.9G  263M  7.3G   4% /home
/dev/cciss/c0d0p5     7.9G   61M  7.5G   1% /opt
/dev/cciss/c0d0p10     95G   58G   32G  65% /space
/dev/cciss/c0d0p9    1012M   34M  927M   4% /tmp
/dev/cciss/c0d0p6     7.9G  1.9G  5.7G  25% /usr
/dev/cciss/c0d0p7     7.9G  165M  7.4G   3% /var
We also have nfs storage mounting to this machine that im not including here.

a closer look:

Code:
df -ha

Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p3     4.0G  4.0G  6.2M 100% /
none                     0     0     0   -  /proc
none                     0     0     0   -  /sys
none                     0     0     0   -  /dev/pts
usbfs                    0     0     0   -  /proc/bus/usb
/dev/cciss/c0d0p1      99M   14M   81M  14% /boot
none                  2.0G     0  2.0G   0% /dev/shm
/dev/cciss/c0d0p8     7.9G  263M  7.3G   4% /home
/dev/cciss/c0d0p5     7.9G   61M  7.5G   1% /opt
/dev/cciss/c0d0p10     95G   58G   32G  65% /space
/dev/cciss/c0d0p9    1012M   34M  927M   4% /tmp
/dev/cciss/c0d0p6     7.9G  1.9G  5.7G  25% /usr
/dev/cciss/c0d0p7     7.9G  165M  7.4G   3% /var
Code:
du -ha /proc/kcore 4.8G    /proc/kcore
It is noticeably bigger than the root fs anyway.

Ive done many many finds, du etc etc and i cannot locate a 4GB file on the root partition ir anything that adds up to 4GB. As this machine mounts a lot ( as terabytes) of data, so random finds for files over 500M isnt possible.

I also went through each directory that isnt on the root partition manually and still couldnt find anything that got over 10M. Overall adding up the directories in the filesystem, minus /proc doesnt equal anywhere near 4gig, more like a couple hundred meg.

The only place where a 4gig file is referenced is in /proc. and that file isnt actually on the filesystem.

Reboot is out of the question

im stumped.

Suggestions?

try this

Code:
find / -type f  -printf '%k %u  %p   \n' | perl -nae 'print if $F[0] > 50000'

This will search for any files that are bigger then 50000kb (roughly 50mb)
you can alway send the command output to a file for further analysis.

Code:
find  / -type f  -printf '%k %u  %p   \n' | perl -nae 'print if $F[0] > 50000' > out_file

Last edited by centosboy; 08-26-2009 at 10:17 AM.
 
Old 08-26-2009, 10:21 AM   #3
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
you can also run this command.

Code:
du / --max-depth 1 | sort -rn
 
Old 08-26-2009, 10:24 AM   #4
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Original Poster
Rep: Reputation: 18
erm, like i said i have terabytes of data mounted to this machine, so a simple du or find will take a VERY long time to come back, if at all.
 
Old 08-26-2009, 10:30 AM   #5
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by dxangel View Post
erm, like i said i have terabytes of data mounted to this machine, so a simple du or find will take a VERY long time to come back, if at all.

ok...start off with the /var directory as many log files are kept here
 
Old 08-26-2009, 10:59 AM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
It takes a very careful read of this thread to even try to guess what question is being asked. I doubt most experts who might be helpful at finding the answer will guess the question.

I think the question is what is taking up all the space on
/dev/cciss/c0d0p3

The OP has listed all the subdirectories of / (including /proc) which are not located on /dev/cciss/c0d0p3. Other subdirectories of / are located on /dev/cciss/c0d0p3 and somewhere in there is some use of space that the OP doesn't understand (if I'm correctly guessing the question).

Edit:
Quote:
Originally Posted by centosboy View Post
start off with the /var directory
Some content was lost when GrapefruiTgirl removed the flames, so please notice that /var is one of the directories listed by the OP as not being physically included in the filesystem that has the unexplained use of space.

Last edited by johnsfine; 08-26-2009 at 11:28 AM.
 
Old 08-26-2009, 11:05 AM   #7
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by johnsfine View Post
It takes a very careful read of this thread to even try to guess what question is being asked. I doubt most experts who might be helpful at finding the answer will guess the question.

I think the question is what is taking up all the space on
/dev/cciss/c0d0p3

The OP has listed all the subdirectories of / (including /proc) which are not located on /dev/cciss/c0d0p3. Other subdirectories of / are located on /dev/cciss/c0d0p3 and somewhere in there is some use of space that the OP doesn't understand (if I'm correctly guessing the question).

That is correct, yes. However everything that is on /dev/cciss/c0d0p3 does not add up to 4GB.
 
Old 08-26-2009, 11:16 AM   #8
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by dxangel View Post
However everything that is on /dev/cciss/c0d0p3 does not add up to 4GB.
I think df is telling you that what is actually on /dev/cciss/c0d0p3 does add up to 4GB and that is excluding anything (including /proc and /var etc.) that is mounted as subdirectories in or below /

I assume there is some tool that will go through every subdirectory from a specific path (initially /) and for each recursively add up all the used space below that subdirectory and will skip all soft links, all hard links and all directory entries to which other file systems have been mounted (in other words skip everything that is really somewhere else).

I don't happen to know what tool that is, but if you asked more nicely, I expect one of the experts would tell you. With such a tool, you ought to be able to figure out where that 4GB is hiding.

But I also don't know how you look for more obscure uses of disk space. For example, I think that if you open a file and then delete it, it will no longer appear in the directory it was in but it will still exist on disk, taking up space, until you close it. Experts may know how you find out whether a lot of space is tied up that way and/or know what other ways there are to tie up disk space without showing up in directories.
 
Old 08-26-2009, 11:16 AM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by dxangel View Post
I now feel like my original post has been swamped by irrelevant replies :^( can this be deleted and i'll repost?
Please do not post the issue again elsewhere. Give me a few moments to tidy up the thread

UPDATE: erronious posts hidden at OP's request. Let's all have a breather now, and continue where we left off..

Sasha

Last edited by GrapefruiTgirl; 08-26-2009 at 11:21 AM.
 
Old 08-26-2009, 11:23 AM   #10
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by johnsfine View Post
I think df is telling you that what is actually on /dev/cciss/c0d0p3 does add up to 4GB and that is excluding anything (including /proc and /var etc.) that is mounted as subdirectories in or below /

I assume there is some tool that will go through every subdirectory from a specific path (initially /) and for each recursively add up all the used space below that subdirectory and will skip all soft links, all hard links and all directory entries to which other file systems have been mounted (in other words skip everything that is really somewhere else).

I don't happen to know what tool that is, but if you asked more nicely, I expect one of the experts would tell you. With such a tool, you ought to be able to figure out where that 4GB is hiding.

But I also don't know how you look for more obscure uses of disk space. For example, I think that if you open a file and then delete it, it will no longer appear in the directory it was in but it will still exist on disk, taking up space, until you close it. Experts may know how you find out whether a lot of space is tied up that way and/or know what other ways there are to tie up disk space without showing up in directories.
Yes, I have examined the directories on /dev/cciss/c0d0p3 using du -h which examines and adds up all space used in the manner that you describe.
Ive also examined the system using lsof.
 
Old 08-26-2009, 11:23 AM   #11
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Original Poster
Rep: Reputation: 18
thank you moderator!
 
Old 08-26-2009, 12:01 PM   #12
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Original Poster
Rep: Reputation: 18
Im going to sum up this issue, in case my original post is too hard to understand.

the root partition is 6meg away from filling up.
the machine is partitioned out so things like /var /tmp are not on the same filesystem as / ( see OP )
the device is /dev/cciss/c0d0p3
du -h on the directories on c0d0p3
boot/ bin/ initrd/ media/ mnt/ lib
lib64/ misc/ root/ srv/ etc/ mnt/ sbin/

show no more than a couple of hundred meg used.

lsof shows nothing is writing to the device

There is also a kcore file of 4.8GB

Reboots are out of the question.

Im not going to sit here and beg for crumbs from 'experts' - i am seriously interested in what people might think it is. I am still working on the issue myself. IMHO i think this may be an issue with a process taking out a R/W file descriptor, then unlinking it.

Any other suggestions would be most welcome.

Last edited by dxangel; 08-26-2009 at 12:03 PM.
 
Old 08-26-2009, 12:35 PM   #13
sarin
Member
 
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Rep: Reputation: 34
I don't know the real solution to your problem. But, as far as I can see, you are not running a find on it since it has lot of other file systems mounted on it. Why not run find with -xdev (-mount) option? Du has a similar option (-x). Hope this helps.
 
Old 08-26-2009, 01:04 PM   #14
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by dxangel View Post
lsof shows nothing is writing to the device
Sorry if these are stupid questions, but:

1) Did you use lsof as root? Much of the info is missing if you aren't root.

2) What does "writing" matter. Even opening a file for read can keep tie up the disk space of that file even if something else deletes the file. You want to know if large files or large numbers of files are open that would be physically located in that filesystem
 
Old 08-26-2009, 01:33 PM   #15
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Original Poster
Rep: Reputation: 18
Yes i am running as root.

I mentioned that there are no files being written to / to make it clear the space taken up is static.
 
  


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
root partition full redhawk1973 Ubuntu 8 03-10-2009 10:07 AM
root partition full trashbird1240 Slackware 10 05-27-2008 09:04 PM
root partition full laan97ac Mandriva 6 07-23-2007 01:09 PM
Root partition full juleslinux Red Hat 4 01-12-2006 10:00 AM
Root partition is full, what now? Joe Soap Linux - Newbie 30 03-31-2005 11:38 AM

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

All times are GMT -5. The time now is 09:53 PM.

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