LinuxQuestions.org
Help answer threads with 0 replies.
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-06-2012, 04:50 PM   #1
decenter
Member
 
Registered: Sep 2011
Distribution: Fedora release 21 (Twenty One)
Posts: 156

Rep: Reputation: 19
HDD space filling rapidly


Hi,

I have a debian 6.0 server. Recently the HDD space is filling rapidly. I have used commands to see the space of the folders, but it does not take more space. Any idea how to detect which is eating the space?

Thanks
 
Old 01-06-2012, 04:58 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
What commands did you run? Typically df -h is a good first step. Then you have to use something like du -a / | sort -n -r | head -n 10 to find the largest files/directories.

Most times when I've had space problems, it has been on the /var partition, particularly the /var/log directory. I believe you can set max log file sizes in /etc/logrotate.conf.
 
Old 01-06-2012, 05:14 PM   #3
decenter
Member
 
Registered: Sep 2011
Distribution: Fedora release 21 (Twenty One)
Posts: 156

Original Poster
Rep: Reputation: 19
Tried those commands.No files / folders are making that much space. The / partition is 500GB and its full. I checked /var/log, but it is only 23MB.
 
Old 01-06-2012, 06:01 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
What is the output of fdisk -l and df -h?
 
Old 01-06-2012, 10:26 PM   #5
decenter
Member
 
Registered: Sep 2011
Distribution: Fedora release 21 (Twenty One)
Posts: 156

Original Poster
Rep: Reputation: 19
df -h:

Quote:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/e5620--23468-root
527G 500G 0 100% /
tmpfs 24G 0 24G 0% /lib/init/rw
udev 24G 140K 24G 1% /dev
tmpfs 24G 0 24G 0% /dev/shm
/dev/sda1 228M 16M 201M 8% /boot
fdisk -l:

Quote:
Disk /dev/sda: 598.9 GB, 598879502336 bytes
255 heads, 63 sectors/track, 72809 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000afd95

Device Boot Start End Blocks Id System
/dev/sda1 * 1 32 248832 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 32 72810 584591361 5 Extended
/dev/sda5 32 72810 584591360 8e Linux LVM

Disk /dev/dm-0: 574.4 GB, 574376378368 bytes
255 heads, 63 sectors/track, 69830 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 24.2 GB, 24243077120 bytes
255 heads, 63 sectors/track, 2947 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table
 
Old 01-08-2012, 07:12 PM   #6
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
Quote:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/e5620--23468-root 527G 500G 0 100% /
That line tells us that the root file system is used. Since you appear to have /home and other misc locations under your / location you might try looking at /home, /tmp, /var/tmp. Those would be the places that I would start.
 
  


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
ClamAV files filling up disk space noir911 Linux - Server 5 10-10-2008 06:04 AM
Space is filling up Corrado Linux - General 2 09-12-2006 04:17 PM
some files are filling up my HDD zomgg Linux - General 1 08-11-2006 02:56 AM
Duplicating a Linux System Disk rapidly (ie. ghosting a HDD) richearle Linux - General 1 08-02-2006 04:56 AM
/var/log/messages --filling up rapidly lub0 Linux - Security 1 10-13-2003 08:16 AM

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

All times are GMT -5. The time now is 06:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration