Author |
Message |
poflynn
|
Posted: Sun Aug 14, 2011 9:30 pm |
|
Joined: Sat Apr 21, 2007 6:55 pm
Posts: 306
Location:
CA,USA
|
I installed LH 6.03 a while back for my neighbor (who has no linux experience). Of course I have been his tech support ever since Lately he has been very upset at the apparent demise of his system and I had a few moments today to check it out - after being shocked at the myriad of errors and problems I realized root was full. Using 'du' I can see the var directory is the second biggest after /myth. I deleted the rotated log files from /var/log/ & /var/log/mythtv but it still shows 100% full but oddly 24 of 25GB used, MySQL still failed to start. Then I had to leave. Before I head over there again, has anyone any other suggestions on what would be good candidates for deletion?
Thanks.
_________________ Paul O'Flynn
Last edited by poflynn on Thu Aug 25, 2011 10:46 pm, edited 3 times in total.
|
|
Top |
|
|
manicmike
|
Posted: Sun Aug 14, 2011 9:54 pm |
|
Joined: Sun Aug 28, 2005 7:07 pm
Posts: 821
Location:
Melbourne, Australia
|
Hi Paul,
You will have to restart anything that is using those files: Linux will hang on to them until they are not being used. Try restarting myth backend and run du after you delete them. You may want to find out what caused it to fill first, though.
Mysql nearly always corrupts when root fills. You should run mysqlcheckdb with -r option to find and fix. Run it again before attempting to start mysql. From memory (warning: I have several faulty memory modules) it should be something like "mysqlcheckdb -u root mythconverg *"
Finally, it may never get to actual 100%, as a few % is usually reserved for fs stuff.
logrotate can help you further. Not sure why this isn't the default, but it can rotate logs based on size and only keep a couple (you set the number of old files). This will prevent your fs from filling which, as you have discovered, is very annoying and inconvenient (but a great learning experience).
Good luck
Mike
_________________ ********************* LinHES 7.4 Australian Dragon *********************
|
|
Top |
|
|
tjc
|
Posted: Mon Aug 15, 2011 7:20 am |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
Ouch. This is always ugly. As manicmike said your db will almost certainly need to be repaired. As for the cause of the partition filling up, logfiles are almost always the prime suspect, and in the current system the acpid daemon is one of the more common culprits. (Searching for "acpid" should turn up a couple threads about the exact problem.)
|
|
Top |
|
|
mattbatt
|
Posted: Wed Aug 17, 2011 11:27 pm |
|
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location:
Orlando FL
|
When my root filled up it was because of firefox downloading to that partition. I was able to use gparted to increase the first partiton.
_________________ My System
|
|
Top |
|
|
Martin1802
|
Posted: Tue Aug 23, 2011 1:37 am |
|
Joined: Tue Feb 28, 2006 12:54 pm
Posts: 124
Location:
Konstanz, Germany
|
another problem is the pacman cache directory ...
check for with "ls -l /data/var/cache/pacman/" or "du -h -x --max-depth=1 /
data/var/cache/pacman/
my old R6 system has over 1.8GB files there, the following command will help
Quote: [root@wohnzimmer1 ~]# pacman -Sc Cache directory: /data/var/cache/pacman/pkg/ Do you want to remove uninstalled packages from cache? [Y/n] removing old packages from cache...
Database directory: /var/lib/pacman/ Do you want to remove unused repositories? [Y/n] n [/quote]
_________________ -------------------------------------------------
KnoppMyth R6 (release)
* ELITEGROUP 915P-A w P4 3,2 GHz 512MB
* ATI x300PCIe
* HD 200 GB SATA / DVD DL(RW)
- DVB-C / Hauppage PVR-500 (2x analog)
- ATI RemoteWonder, CHERRY /wl keyboard/mouse
|
|
Top |
|
|
poflynn
|
Posted: Thu Aug 25, 2011 10:46 pm |
|
Joined: Sat Apr 21, 2007 6:55 pm
Posts: 306
Location:
CA,USA
|
Thanks all. Got enough free to make it run and it did require a repair of the DB so thanks for that tip... Will keep searching for more stuff to delete.
_________________ Paul O'Flynn
|
|
Top |
|
|