Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Linode disk usage
PostPosted: Fri Jul 23, 2010 7:02 pm 
Offline
Newbie

Joined: Fri Jul 23, 2010 6:55 pm
Posts: 2
Hi All,

We use several linodes, 512 and 1024, and one of our linode 512 has a strange disk issue.

We installed it last week, Debian 5, 32 bit, apt-get upgrade, update, install apache php mysql etc etc, nothing unusual (except that we use the dotdeb apt repository to have php 5.3.2)

So, the unusual is that the server is already pretty much full:

Quote:
li187-46:/# df -h -T
/dev/xvda ext3 16G 15G 492M 97% /
tmpfs tmpfs 250M 0 250M 0% /lib/init/rw
tmpfs tmpfs 250M 4,0K 250M 1% /dev/shm


but


Quote:
li187-46:/# du -chsx /*
3,7M /bin
4,0K /boot
4,0K /dev
3,7M /etc
3,0M /home
6,4M /lib
16K /lost+found
4,0K /media
4,0K /mnt
4,0K /opt
0 /proc
573M /root
3,2M /sbin
4,0K /selinux
4,0K /srv
0 /sys
208K /tmp
645M /usr
987M /var
2,2G total


So, a total is 2.2G is detected by du, but df says differently.

Anyone got a similar issue ? This is very annoying, and I can't get to find how the disk space is used...

Thanks!


Top
   
 Post subject:
PostPosted: Fri Jul 23, 2010 7:20 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
delete, but still kept open, files?

lsof | grep deleted

-Chris


Top
   
 Post subject: Re: Linode disk usage
PostPosted: Fri Jul 23, 2010 8:44 pm 
Offline
Senior Member

Joined: Fri Dec 07, 2007 1:37 am
Posts: 385
Location: NC, USA
Rodrigo wrote:
li187-46:/# du -chsx /*


That du syntax would miss it if there is a hidden file or folder in your root directory.

Code:
ls -Alr /


Top
   
 Post subject:
PostPosted: Sat Jul 24, 2010 2:36 am 
Offline
Newbie

Joined: Fri Jul 23, 2010 6:55 pm
Posts: 2
Thanks chris and stever for your help!

I tried the lsof command, but got no results. Checked a few folders with ls -A, but still got no results.

However, that lsof command was a good hint, I thought that it would either be that my server was hacked and used as an ftp server (haha, but netstat showed no suspect open ports, yet that would mean nothing if my server was hacked), OR an inode issue (deleted files, but inodes still active). Actually, I rebooted, and now a df shows

Code:
/dev/xvda             16255928   1726940  13868388  12% /


Yay, that's much better. I have no idea why lsof didn't show that, or why the inodes were not released, so I'll continue to monitor closely this server, but at least for now it's not "out of disk space" anymore.

Thanks guys!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group