LinuxQuestions.org
Visit Jeremy's Blog.
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 10-03-2017, 11:24 AM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 636

Rep: Reputation: 34
No lsof, what is eating up my disk space


Hi need a bit of urgent help, root file-system is full and I dont have lsof installed on this system. How can I go about finding what file is open with large size

XenServer release 6.5.0-90233c (xenenterprise)

Linux compute2.nimbus.lk 3.10.0+2 #1 SMP Wed Mar 11 11:20:46 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux


Thanks and best Regards
 
Old 10-03-2017, 11:49 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656
Something like this?

Code:
ls -l /proc/*/fd | cut -d' ' -f12- | grep -v 'null\|socket\|inode\|pipe\|proc\|/dev/\|/run\|^$\|net:' | xargs du -h | sort
 
1 members found this post helpful.
Old 10-03-2017, 11:51 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249
no lsof?
that's bad.
maybe try
Code:
du
?
 
1 members found this post helpful.
Old 10-03-2017, 11:55 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,015

Rep: Reputation: 1732Reputation: 1732Reputation: 1732Reputation: 1732Reputation: 1732Reputation: 1732Reputation: 1732Reputation: 1732Reputation: 1732Reputation: 1732Reputation: 1732
Can you go at it this way?
Code:
cd /
sudo du -sh *|less
Ignore results from /proc. You're at the base of the tree there. Go after the Gigs, and the Megs will look after themselves. /tmp can bulge massively, and most (but usually not all) of it can go. cd into the large ones, and repeat the second line above in /var, for instance. If you've a server online, you'll probably want to backup /var/log, before deleting space.

Something is probably spawning huge numbers of files and not deleting them, or you haven't been keeping house very well. This command
Code:
df -h
tells you what's actually free. Don't forget root's ~/.cache dir if root does much online. I presume /home is not on the / partition; if it is, move it's if possible to another partition and mount it on /home.
 
Old 10-10-2017, 06:23 AM   #5
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 636

Original Poster
Rep: Reputation: 34
Hi Guys, thank you for your help and sorry for not replying

The server went for a reboot and it never cam up, it was advised by the vendor to reinstall

Thanks and Best Regards
 
  


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
ubuntu trusty 14.04 eating disk space davidrjones1066 Linux - Software 7 09-09-2014 03:20 PM
/var/lib/apt/list/partial eating all of the disk space. replica9000 Debian 1 06-16-2014 03:47 PM
Something's eating up my disk space TomConnolly Linux - Newbie 5 03-15-2013 01:44 AM
disk space eating...? WiseDraco Linux - Desktop 10 08-16-2011 03:13 AM
Thunderbird eating up space! stonecrest Linux - Software 1 10-17-2004 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:59 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
Open Source Consulting | Domain Registration