LinHES Forums http://forum.linhes.org/ |
|
Running out of space on / http://forum.linhes.org/viewtopic.php?f=3&t=13019 |
Page 1 of 1 |
Author: | bruce_s01 [ Mon Dec 18, 2006 10:53 am ] |
Post subject: | Running out of space on / |
After listening to some Pod^WNetcasts using MythStream, I couldn't get it to work with another, reporting "No URLs found". I rebooted then found I wasn't able to login. Going in using ssh, I found that I had ran out of space under /, so I had a look under /var/log and /var/log/myth to see if there is a rogue log file, there wasn't any evidence of this. I had recently installed a new ivtv so I deleted the source directory for this, but this didn't free up much space. So I decided to have a look at the mythtv user home directory, looking at the ~/mythtv/.mythtv/mythstream directory, I found that there were lots of data under downloads, so deleting the files underneath this, freed up 2.0GB of space. It might might be worthwhile for a script to expire files under ~/mythtv/.mythtv/mythstream/downloads. Bruce S. |
Author: | ryanpatterson [ Mon Dec 18, 2006 1:04 pm ] |
Post subject: | |
I'd go one step further and move that directory off the root partition. Do we know where that is configured? |
Author: | bruce_s01 [ Tue Dec 19, 2006 7:34 am ] |
Post subject: | |
It's under /home, so it would be worthwhile creating a new partition, moving the contents over then remounting the partition under /home. The problem is, without looking at the content of ~/mythtv/.mythtv/mythstream/downloads regularly, you will run out of space, particularly if you watch a lot of Video Netcasts. Bruce S. |
Author: | dvanced [ Sun Dec 24, 2006 5:07 pm ] |
Post subject: | |
you can ghetto chop it onto another partition with a sym link Code: mkdir /myth/mythstream-downloads
cp -r /home/mythtv/.mythtv/mythstream/downloads/* /myth/mythstream-downloads rm -r /home/mythtv/.mythtv/mythstream/downloads ln -s /myth/mythstream-downloads /home/mythtv/.mythtv/mythstream/downloads chown mythtv /myth/mythstream-downloads |
Author: | bruce_s01 [ Wed Dec 27, 2006 5:33 pm ] |
Post subject: | |
Good idea, but you still start to lose space if you don't keep an eye on your mythstream/downloads/ directory. If you do something like: Code: #!/bin/sh #Script to find downloaded streams that are older than 30 days and delete them find /home/mythtv/.mythtv/mythstream/downloads/ -type f -mtime +29 -exec rm -f '{}' \; I called it cleanup-mythstream and carried out the following: Code: su
cp cleanup-mythstream /etc/cron.daily/ chmod +x /etc/cron.daily/cleanup-mythstream So this should delete the content of the mythstream/downloads/ directory that have been modified greater than 30days ago and is ran once a day. Edited to change line ending in code. Bruce S. |
Author: | khrusher [ Wed Dec 27, 2006 6:55 pm ] |
Post subject: | |
Some of my best code is written in 'Ghetto Chop' |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |