LinHES Forums http://forum.linhes.org/ |
|
R5.5 - root partition 75% used - is that normal? http://forum.linhes.org/viewtopic.php?f=6&t=19811 |
Page 1 of 1 |
Author: | neutron68 [ Thu Apr 23, 2009 7:18 pm ] |
Post subject: | R5.5 - root partition 75% used - is that normal? |
I just had a situation that caused me to look at how full my root partition was. It is a 4GB partition (auto created by the R5F27 auto install) and is about 75% full. I read this page: http://www.knoppmythwiki.org/index.php? ... kFullError and then deleted old backups of the log files, but it didn't make more than 1% of a difference. Is 75% a normal amount of "fullness" for a 4GB boot partition? Does it indicate anything is going wrong? Eric |
Author: | cliffsjunk [ Fri Apr 24, 2009 12:50 am ] |
Post subject: | |
That sounds within reason. My 4.8G R5.5 root has 1.5G free. I start to worry when it gets to be less than a gig free. If you haven't rebooted in a while, you may find that space gets freed up when you do. Open files that have been deleted hang around till they are closed and some only get closed on reboot. (as root) lsof | grep deleted will show you the files that will get reclaimed on reboot. The second to last column is the file size as I recall. Cliff |
Author: | neutron68 [ Fri Apr 24, 2009 8:56 am ] |
Post subject: | deleted files |
cliffsjunk wrote: (as root) lsof | grep deleted
will show you the files that will get reclaimed on reboot. The second to last column is the file size as I recall. Cliff Here is the output from that command Code: root@mythtv:~# lsof | grep deleted
gconfd-2 3767 mythtv 13wW REG 8,1 617 448427 /tmp/gconfd-mythtv/lock/0t1240526608ut979295u100p3767r828616530k3214120936 (deleted) mysqld 12953 mysql 4u REG 8,1 0 448258 /tmp/ibmBJFKJ (deleted) mysqld 12953 mysql 5u REG 8,1 224 448260 /tmp/ibwrsLkj (deleted) mysqld 12953 mysql 6u REG 8,1 0 448262 /tmp/ibEInIUS (deleted) mysqld 12953 mysql 7u REG 8,1 0 448263 /tmp/ibEtKWIs (deleted) mysqld 12953 mysql 11u REG 8,1 0 448266 /tmp/ib2mno1o (deleted) root@mythtv:~# The file sizes don't look like they add up to much. I guess there's nothing out of the ordinary. Eric |
Author: | ceenvee703 [ Fri Apr 24, 2009 11:13 am ] |
Post subject: | Re: deleted files |
Have you checked /tmp for other files to delete? I've had problems with transcoding failing, and have found lots of temp files in there that didn't get deleted after reboots. |
Author: | neutron68 [ Fri Apr 24, 2009 2:31 pm ] |
Post subject: | Re: deleted files |
ceenvee703 wrote: Have you checked /tmp for other files to delete? I've had problems with transcoding failing, and have found lots of temp files in there that didn't get deleted after reboots.
I do have a number of directories inside the /tmp folder which are in the following name format: "mythtv_ddp_mWNxKi". They range in date from Feb.11 to April.23 of 2009. They contain files such as "mythtv_dd_cache_1_[my-email-address]_UTC_20090315050000_to_20090316050000" I'm not 100% sure what they are. Could they be program guide updates? Should I go in and delete them or will they get deleted by the system? What about old downloaded .tar, .gz and .bz2 files? Is there a command line command that will show me where all the old tar files are sitting? The command "locate *.tar" does not work. It lists everything on the hard drive, it appears. Eric |
Author: | graysky [ Fri Apr 24, 2009 2:43 pm ] |
Post subject: | |
Get a program from the repo (apt-get) called ncdu which is very helpful for diagnosing exactly where space is on your system. You can then see about removing the offending files to cleanup some room. My understanding is that most filesystems like to have around 80 % free space to keep defragged. For your reference, my / partition on my R5.5 box is 4.6 G total and 2.4 G used. |
Author: | ceenvee703 [ Fri Apr 24, 2009 4:56 pm ] |
Post subject: | |
I have similar ratios to graysky: 2.6 G used out of 4.6 G total, 59% used. 75% seemed high when you mentioned it. |
Author: | graysky [ Fri Apr 24, 2009 5:15 pm ] |
Post subject: | |
@op - post the output of ncdu -x on your / as the root user. Code: # ncdu -x /
ncdu 1.3 ~ Use the arrow keys to navigate, press ? for help --- / ----------------------------------------------------------------------------------------- 1.7GB [##########] /usr 303.8MB [# ] /var 146.7MB [ ] /home 71.6MB [ ] /lib 15.8MB [ ] /etc 12.4MB [ ] /sbin 11.4MB [ ] /root 4.7MB [ ] /boot 3.9MB [ ] /bin 1.2MB [ ] /tmp e 16.0kB [ ] /lost+found e 4.0kB [ ] /.qt e 4.0kB [ ] /cdrom e 4.0kB [ ] /initrd e 4.0kB [ ] /media e 4.0kB [ ] /mnt e 4.0kB [ ] /opt e 4.0kB [ ] /srv 4.0kB [ ] knoppmyth 4.0kB [ ] knoppmyth-sata @ 0.0 B [ ] vmlinuz > 0.0 B [ ] /dev > 0.0 B [ ] /myth > 0.0 B [ ] /proc > 0.0 B [ ] /sys |
Author: | neutron68 [ Sun Apr 26, 2009 7:15 pm ] |
Post subject: | here it is |
Code: root@mythtv:~# ncdu -x /
ncdu 1.3 ~ Use the arrow keys to navigate, press ? for help --- / --------------------------------------------------------------------------------------------------- 1.9GB [##########] /usr 472.2MB [## ] /var 367.9MB [# ] /tmp 207.1MB [# ] /home 74.0MB [ ] /lib 15.6MB [ ] /etc 12.4MB [ ] /sbin 11.5MB [ ] /root 4.8MB [ ] /boot 3.9MB [ ] /bin e 16.0kB [ ] /lost+found 16.0kB [ ] R5.5.patches.tar.bz2 e 4.0kB [ ] /.qt e 4.0kB [ ] /cdrom e 4.0kB [ ] /initrd e 4.0kB [ ] /media e 4.0kB [ ] /mnt e 4.0kB [ ] /opt e 4.0kB [ ] /srv 4.0kB [ ] knoppmyth 4.0kB [ ] knoppmyth-sata @ 0.0 B [ ] vmlinuz > 0.0 B [ ] /dev > 0.0 B [ ] /myth > 0.0 B [ ] /proc > 0.0 B [ ] /sys |
Author: | graysky [ Mon Apr 27, 2009 1:38 pm ] |
Post subject: | |
Just comparing your output to mine, looks like you can squeeze a bit in the /home /var and /usr partitions. |
Author: | neutron68 [ Mon Apr 27, 2009 1:59 pm ] |
Post subject: | agreed |
graysky wrote: Just comparing your output to mine, looks like you can squeeze a bit in the /home /var and /usr partitions.
I agree, those directories are more full on my system than yours. Could .deb files from downloaded apt-get software packages be a big part of the /var folder contents? I used "locate *.deb" and found a bunch of .deb files in /var/cache/apt/archives folder. Also, there are a number of directories inside the /tmp folder which are in the following name format: "mythtv_ddp_mWNxKi". They range in date from Feb.11 to April.23 of 2009. They contain files such as "mythtv_dd_cache_1_[my-email-address]_UTC_20090315050000_to_20090316050000" They look like program guide updates? Should I go in and delete them manually or will they get deleted by the system? Eric |
Author: | neutron68 [ Tue May 05, 2009 8:24 pm ] |
Post subject: | deleted directories |
I just removed all those "mythtv_ddp_*" directories in the /tmp directory and the usage went WAY down. I do think those were schedule data temp files. I wonder why they didn't get deleted automatically? Code: root@mythtv:/tmp# ncdu -x /
ncdu 1.3 ~ Use the arrow keys to navigate, press ? for help --- / ------------------------------------------------------------------------------------------------------------------------------------ 1.9GB [##########] /usr 513.8MB [## ] /var 207.1MB [# ] /home 74.0MB [ ] /lib 15.6MB [ ] /etc 12.4MB [ ] /sbin 11.5MB [ ] /root 4.8MB [ ] /boot 3.9MB [ ] /bin 324.0kB [ ] /tmp e 16.0kB [ ] /lost+found 16.0kB [ ] R5.5.patches.tar.bz2 e 4.0kB [ ] /.qt e 4.0kB [ ] /cdrom e 4.0kB [ ] /initrd e 4.0kB [ ] /media e 4.0kB [ ] /mnt e 4.0kB [ ] /opt e 4.0kB [ ] /srv 4.0kB [ ] knoppmyth 4.0kB [ ] knoppmyth-sata @ 0.0 B [ ] vmlinuz > 0.0 B [ ] /dev > 0.0 B [ ] /myth > 0.0 B [ ] /proc > 0.0 B [ ] /sys |
Author: | cliffsjunk [ Sat May 16, 2009 10:54 am ] |
Post subject: | |
I've seen that too (R5.5) where old schedule downloads take up a lot of /tmp over time. |
Author: | neutron68 [ Sat May 16, 2009 11:00 am ] |
Post subject: | old schduleing data accumulates in R5.5 |
cliffsjunk wrote: I've seen that too (R5.5) where old schedule downloads take up a lot of /tmp over time.
This is good feedback! I just went and looked at my /tmp directory again. Since I manually deleted the scheduling data directories, it is accumulating old scheduling data again. What mechanism used to remove the scheduling data in older versions of Knoppmyth prior to R5.5? |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |