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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-19-2005, 11:10 PM
|
#1
|
LQ Newbie
Registered: Aug 2003
Posts: 27
Rep:
|
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 ?
|
|
|
06-20-2005, 01:23 AM
|
#2
|
Senior Member
Registered: Nov 2002
Location: Birmingham UK
Distribution: Various
Posts: 1,736
Rep: 
|
Just a thought...
How did you remove the file?
(Is it still in the trash? /root/.Trash or your home .Trash).
|
|
|
06-20-2005, 01:35 AM
|
#3
|
LQ Newbie
Registered: Aug 2003
Posts: 27
Original Poster
Rep:
|
nope, not in .Trash
i used the command 'rm' to remove the file directly
|
|
|
06-20-2005, 03:30 AM
|
#4
|
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:
|
I got a hunch about what causes your machine to fill up but first run
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.
|
|
|
06-20-2005, 04:06 AM
|
#5
|
LQ Newbie
Registered: Aug 2003
Posts: 27
Original Poster
Rep:
|
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 ?
|
|
|
06-20-2005, 04:40 AM
|
#6
|
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:
|
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.
|
|
|
06-20-2005, 04:47 AM
|
#7
|
LQ Newbie
Registered: Aug 2003
Posts: 27
Original Poster
Rep:
|
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 ?
|
|
|
06-20-2005, 05:27 AM
|
#8
|
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:
|
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?
|
|
|
06-20-2005, 07:46 AM
|
#9
|
Member
Registered: Jan 2004
Location: Munich
Distribution: SuSE 9.2, 10.2, 10.3, knoppix
Posts: 276
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 10:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|