Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
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.
I have the disk with ReiserFS. Sometimes it gets full becouse of my php error_log (I know how to deal with php settings and my question is not about it).
My partition is 900MB. My linux uses about 380MB of disk space. So the log must become about 520MB to fill it up. After removing the file I still have whole disk space taken, however the file disapears. After rebooting I'm getting disk space free again. What's the matter?
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda1 975676 975676 0 100% /
/dev/hdb1 11719020 220120 11498900 2% /hdb1
Hmm, interesting. If you cat /dev/null > php.log, then you should be able to free up some space in /. Yea, try tinksters suggestion of restarting apache and see if that helps - even though I don't know how it would.
This problem occurs in Solaris as well once you fill up a disk. The only solution that we've found for it is to reboot the machine. And normally when we would fill up a disk, it was with a database export. As such, I don't think that the problem would be with Apache holding on to that memory (once our export would finish, we would remove the files in question, and still not reclaim the free space, and Oracle wouldn't be holding onto it as that process was finished at the time). I'd definately try restarting the Web Server, but I doubt that it will clean up that free space.
Great advice everybody! O course, I haven't stopped apache before deleting the file. Restarting it later, after removing log didn't help but ... I deleted some other small file to get some free bytes. The new log of size of 160B appeared. Then I stopped apache and deleted the new log. The result was that after deleting 160 bytes small file I got 500MB of disk space.. So thank you everybody for the good advice!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.