LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-15-2012, 09:24 AM   #1
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Rep: Reputation: Disabled
How to find what is filling up the space


Hi all,

There is an NFS share on linux box and it is getting filled very fast. It is filling hundreds of GBs everyday. How can i find what is filling up the space ?
thanks in advance!
 
Old 05-15-2012, 10:06 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,793

Rep: Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753
du -sh /path-to-device/*

Also
lsof |grep path-to-device
 
Old 05-15-2012, 10:21 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
I prefer ncdu for such tasks. It should be available for almost any distribution and is quite handy, since its interactivity really can (and does) speed up to find the culprit.
 
Old 05-15-2012, 10:48 AM   #4
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Original Poster
Rep: Reputation: Disabled
thanks business_kid and TobiSGD,

will "ncdu" work on CentOS5/RHEL5 ? because i can't see it there on the ncdu page link.
 
Old 05-15-2012, 10:51 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
There are packages for ncdu: http://pkgs.org/centos-5-rhel-5/atom...86_64.rpm.html
 
1 members found this post helpful.
Old 05-15-2012, 11:14 AM   #6
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Original Poster
Rep: Reputation: Disabled
thanks TobiSGD

but i got following error while trying to install ncdu
Code:
# yum install ncdu
Could not retrieve mirrorlist http://www.atomicorp.com/mirrorlist/atomic/centos-5-i386 error was
[Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Error: Cannot retrieve repository metadata (repomd.xml) for repository: atomic. Please verify its path and try again
 
Old 05-15-2012, 11:15 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Sorry, I am no CentOS user, can't help with that.
 
Old 05-15-2012, 11:24 AM   #8
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Original Poster
Rep: Reputation: Disabled
Hi TobiSGD,

sorry my bad, i tried to install 64bit rpm on 32 bit. i installed it now

Code:
# rpm -qa | egrep 'atomic|ncdu'
atomic-release-1.0-14.el5.art
ncdu-1.5-1.el5.art
and now HOW TO USE this tool ?
 
Old 05-15-2012, 11:54 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Just type
Code:
ncdu /path/to/your/share
It will begin to scan the path you have given to it recursively and displays the files/folders sorted by size. Navigate with the cursor keys, delete highlighted files/folders with the d-key, if you want.
For more info type
Code:
man ncdu
 
  


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
[SOLVED] Ubuntu LTS server 10.04.03 is filling disk space rytec Linux - Server 3 01-24-2012 03:48 AM
HDD space filling rapidly decenter Linux - Server 5 01-08-2012 07:12 PM
ClamAV files filling up disk space noir911 Linux - Server 5 10-10-2008 06:04 AM
/var/log/messages filling up space. Asim Ahmed Linux - Newbie 1 04-09-2008 02:10 AM
Space is filling up Corrado Linux - General 2 09-12-2006 04:17 PM


All times are GMT -5. The time now is 12:00 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