etrader Posted April 9, 2009 Share Posted April 9, 2009 I was noticed that my used disk space is increasing dramatically I just found large log files (in order of few gigs), then I deleted the log files, but still a large disk space is consuming but nothing in the log folder, and I even cannot find where such heavy files are stored. Can you help? Quote Link to comment https://forums.phpfreaks.com/topic/153295-solved-huge-log-files/ Share on other sites More sharing options...
corbin Posted April 9, 2009 Share Posted April 9, 2009 According to http://www.cyberciti.biz/faq/how-do-i-find-the-largest-filesdirectories-on-a-linuxunixbsd-filesystem/ you could just do: du -a / | sort -n -r | head -n 10 To find the 10 largest files. It could be your mail spool if you've been doing a lot of maintenance stuff. After updating Fedora Core from 9->10 and doing some package updates, root's spool was 18GB (some stuff went wrong along the way, so there were a lot of errors ;p). Or are you on Windows? Quote Link to comment https://forums.phpfreaks.com/topic/153295-solved-huge-log-files/#findComment-805856 Share on other sites More sharing options...
etrader Posted April 9, 2009 Author Share Posted April 9, 2009 I'm on freshly installed Fedora 10 (no update) I run the command you introduced and it listed 10 large directories, but nothing strange in them. The problem is that when I get the size of all folder via File Manager of Webmin, more than 10GB is missing. On the other hand, the used disk space increases by seconds (probably as visitors come) Quote Link to comment https://forums.phpfreaks.com/topic/153295-solved-huge-log-files/#findComment-805892 Share on other sites More sharing options...
corbin Posted April 9, 2009 Share Posted April 9, 2009 Are you storing a ridiculously large amount of data in sessions by any chance? If you have a high enough visitor count, that could be it, but I doubt it... Hrmmm.... Are there other log files somewhere else maybe? Quote Link to comment https://forums.phpfreaks.com/topic/153295-solved-huge-log-files/#findComment-805908 Share on other sites More sharing options...
etrader Posted April 9, 2009 Author Share Posted April 9, 2009 Yes I have lots of data (5GB) with many visitors, but cannot understand what it may happen My problem is that I cannot find such rapidly growing log files. The strange thing is that the used disk space showing on the frontpage of Webmin is different from the folder sizes as can be calculated in its Java-based File Manager (more than 10 GB difference). Quote Link to comment https://forums.phpfreaks.com/topic/153295-solved-huge-log-files/#findComment-805916 Share on other sites More sharing options...
corbin Posted April 10, 2009 Share Posted April 10, 2009 Have you looked in your MySQL folders? Could be MySQL logs or something. Quote Link to comment https://forums.phpfreaks.com/topic/153295-solved-huge-log-files/#findComment-805995 Share on other sites More sharing options...
etrader Posted April 14, 2009 Author Share Posted April 14, 2009 I just found the source of this problem, It was a mismatch between du and df Quote Link to comment https://forums.phpfreaks.com/topic/153295-solved-huge-log-files/#findComment-809382 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.