LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-19-2005, 11:10 PM   #1
max_tcs
LQ Newbie
 
Registered: Aug 2003
Posts: 27

Rep: Reputation: 15
Help~! Strange Disc Full ...running out of space...


i have a linux box with RH9
recently i found that my linux box running out of space

# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 14143744 13467836 0 100% /
/dev/hda1 99043 9321 84608 10% /boot
none 62996 0 62996 0% /dev/shm

so i remove old backup file from this server, eat space around 2G ...
But when i recheck the disk space, still same !
0% free on /
it caused mysql server unable to start ... coz there is no free space to write
what should i do now ?
 
Old 06-20-2005, 01:23 AM   #2
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Slackware64
Posts: 1,704

Rep: Reputation: 76
Just a thought...
How did you remove the file?
(Is it still in the trash? /root/.Trash or your home .Trash).
 
Old 06-20-2005, 01:35 AM   #3
max_tcs
LQ Newbie
 
Registered: Aug 2003
Posts: 27

Original Poster
Rep: Reputation: 15
nope, not in .Trash
i used the command 'rm' to remove the file directly
 
Old 06-20-2005, 03:30 AM   #4
Gibsonist
Member
 
Registered: Mar 2004
Location: Meersburg (GER)
Distribution: Cygwin,RH 7.2 7.3, SuSe 6.4 8.2 9.1,TinyLinux, Debian Sarge, Knoppix 3.*, Knoppicilin, Knoppix STD
Posts: 191

Rep: Reputation: 30
I got a hunch about what causes your machine to fill up but first run
Code:
du -sh `ls`
and follow your dir tree downward.

Back to my hunch look at /var/log/mysql for size, as mysql has the tendency of filling up your system with redundant data

Give me a shout if it worked.
 
Old 06-20-2005, 04:06 AM   #5
max_tcs
LQ Newbie
 
Registered: Aug 2003
Posts: 27

Original Poster
Rep: Reputation: 15
here is the result :
Code:
# cd /
#du -sh `ls`
4.6M    bin
5.1M    boot
420K    dev
18M     etc
545M    home
4.0K    initrd
54M     lib
16K     lost+found
4.0K    misc
760M    mnt
4.0K    opt
du: `proc/4198/fd/3': No such file or directory
129M    proc
5.9M    root
12M     sbin
1.3M    tmp
4.0G    usr
4.8G    var
here i found a file named /var/log/bandwith, eat space 4G
so i deleted this file, and run again #du -sh `ls`

the result comes out :
Code:
# du -sh `ls`
4.6M    bin
5.1M    boot
420K    dev
18M     etc
545M    home
4.0K    initrd
54M     lib
16K     lost+found
4.0K    misc
760M    mnt
4.0K    opt
du: `proc/4198/fd/3': No such file or directory
129M    proc
5.9M    root
12M     sbin
1.3M    tmp
4.0G    usr
841M    var
and i check the free space again :
Code:
# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda2             14143744  13440764         0 100% /
/dev/hda1                99043      9321     84608  10% /boot
none                     62996         0     62996   0% /dev/shm
free space still 0% .....why ?
 
Old 06-20-2005, 04:40 AM   #6
Gibsonist
Member
 
Registered: Mar 2004
Location: Meersburg (GER)
Distribution: Cygwin,RH 7.2 7.3, SuSe 6.4 8.2 9.1,TinyLinux, Debian Sarge, Knoppix 3.*, Knoppicilin, Knoppix STD
Posts: 191

Rep: Reputation: 30
to be honest I am stumped
but i remember that the system sometimes needs a few minutes to react to changes (specially if you delete 4G)

If you use df use it with the -h flag to make the sizes human readable.

Try it again now and see if it took the changes.
 
Old 06-20-2005, 04:47 AM   #7
max_tcs
LQ Newbie
 
Registered: Aug 2003
Posts: 27

Original Poster
Rep: Reputation: 15
i had reboot the machine twice already
and # updatedb
still same .....

Code:
# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2              14G   13G     0 100% /
/dev/hda1              97M  9.2M   83M  10% /boot
none                   62M     0   62M   0% /dev/shm
is that possible the HD not running properly ?
 
Old 06-20-2005, 05:27 AM   #8
Gibsonist
Member
 
Registered: Mar 2004
Location: Meersburg (GER)
Distribution: Cygwin,RH 7.2 7.3, SuSe 6.4 8.2 9.1,TinyLinux, Debian Sarge, Knoppix 3.*, Knoppicilin, Knoppix STD
Posts: 191

Rep: Reputation: 30
What filesystem are you using on / btw? Last time I looked RH was on ext3 and didn't support reiserfs
and what services are you running?
 
Old 06-20-2005, 07:46 AM   #9
Marius2
Member
 
Registered: Jan 2004
Location: Munich
Distribution: SuSE 9.2, 10.2, 10.3, knoppix
Posts: 274

Rep: Reputation: 30
cd to /var/log and delete superfluent logfiles (and .tar.gz backups of logs). Do the same in /var/run and its subfolders. You may also want to take a look into /tmp.

HTH
 
  


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
limit disc space ampena Debian 1 11-13-2005 10:52 PM
Why does the hard disc space get full till the very end? suro Linux - Software 3 07-11-2005 11:09 AM
Disc full error after a power failure P_Ko Linux - Newbie 4 01-31-2005 11:33 AM
How do I read disc and space used information on a DVD? opera_sys Linux - Hardware 2 07-19-2004 05:17 PM
hard disc space (and samba?) milesstandish Linux - General 5 11-27-2002 10:43 PM


All times are GMT -5. The time now is 05:17 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration