Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
No free disk space

I have a linux server, which is reporting as having it's disk full, but as far as I can tell- the disk is not full, a df -h shows this:

/dev/mapper/VolGroup00-LogVol00<br>
                       19G   18G     0 100% /
/dev/xvda1             99M   27M   67M  29% /boot
tmpfs                 1.1G     0  1.1G   0% /dev/shm
/dev/mapper/VolGroup01-LogVol02  58G  7.5G   48G  14% /mnt/somewhere

This is a virtual server (using Xencenter), which has 2 drives, 20gb & 40gb mounted on it. If I look at the / I can only see approx 12gb in use, so where has the rest gone?

share|improve this question

marked as duplicate by Iain, mattdm, Scott Pack, Chris S, Ward Feb 19 '11 at 6:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

2 Answers

up vote 6 down vote accepted

Use lsof utils to find file that is delete but still open:

$ lsof +L1
share|improve this answer
    
Ah hah- looks like its found 2 files (which look to be 7gb each in size), how would I delete these? In the normal manner? –  AliGibbs Feb 18 '11 at 13:31
2  
restart process, who open the files –  ooshro Feb 18 '11 at 13:34
    
A more detailed explanation of why this happens can be found here: mradomski.wordpress.com/2007/01/08/… –  ThatGraemeGuy Feb 18 '11 at 14:46
add comment

My first question for questions like this is whether you checked using lsof to see if there are deleted files held open despite being marked "deleted." Second is usually to check for logfiles. Third is to check du for directory sizes to see if anything shows up or if running X use a graphical mapping utility to traverse directories.

Scarier thoughts move to what the server is used for...open to the Internet? Could someone have penetrated it and compromised it to store files? Rootkit check?

share|improve this answer
    
Cheers for the answer- ran a lsof +L1 as suggested by ooshro, and this has found 2 files. This server is not open to the internet. –  AliGibbs Feb 18 '11 at 13:32
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.