LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-02-2011, 01:12 PM   #1
qwerty0492
LQ Newbie
 
Registered: Sep 2010
Distribution: CentOS
Posts: 4

Rep: Reputation: 0
Determining what is using disk space


We have a CentOS server which is mysteriously reporting disk space filling up in the middle of the night. There's nothing in the crontab so it isn't that.... is there any command we can run to determine what process is filling up the space at that time?

Edit: Maybe some command that shows disk usage (df?) but has a flag that allows me to see what process is currently filling up the disk?

Last edited by qwerty0492; 01-02-2011 at 01:15 PM.
 
Old 01-02-2011, 01:20 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

If you knew *which* file and directory was filling up, that might be your best clue as to "who" and "why".

Short of that, you can run "lsof".

SUGGESTION: take "lsof" snapshots and "df -k" every 15 minutes or so - that might help you find the culprit...
 
Old 01-02-2011, 02:44 PM   #3
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 269

Rep: Reputation: 54
How much free space is there normally? It could just be some process running overnight which just uses some temp space to complete a job is causing this if you are hovering right at capacity.
 
Old 01-04-2011, 01:04 AM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Possibly useful lsof(8) output:

Code:
# lsof -s | gawk '{ print $7, $1 "/" $2, "("$3")"; }' | sort -nr | head -50
Run as a cronjob every 10 minutes, and redirected to a date/time-stamped output file should do the trick.
 
  


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
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
Determining file system type of disk Adam Sylvester Linux - Newbie 1 11-25-2009 12:55 AM
hard disk partitioning/I am out of space /how to increase linux space? RMLinux Red Hat 8 09-05-2008 12:33 PM
Cedega "Disk space required for the installation exceeds available disk space" Solved Spewdemon LinuxQuestions.org Member Success Stories 1 10-18-2007 06:19 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM

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

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