View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 25 posts ] 
Go to page Previous  1, 2

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: /cache
PostPosted: Sun Nov 13, 2005 6:10 pm 
Offline
Joined: Sun Jun 13, 2004 4:11 pm
Posts: 2
Hi there,

I had a similar problem with R5A22. I deleted some logs, but that (while it may be enough to get things working again) improved the disk usage only marginally. I used "du" to check where most of the disk space was used, and found about 1.5 GB in /var/cache. On the other hand, the /cache partition was empty. So I moved the contents of /var/cache to /cache/cache, and replaced /var/cache with a symbolic link to /var/cache.

So far things are working fine - is this a bug in the install, or am I missing something?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 13, 2005 6:38 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,
do alt x , run mythtv-setup , page 2 I think, set live buffer /cache/cache , make cache size 1 gig less than what you see with df -h see if that helps.

mine is 15 & 18 ,, I would rather waste a byte or two than have the other issue. Very important step on small drives.

Mike


Top
 Profile  
 
PostPosted: Wed Mar 08, 2006 2:05 pm 
Offline
Joined: Wed Mar 08, 2006 1:20 pm
Posts: 2
i had the exact problem except i had 0b free on hda1 (yes 0 bytes) and couldn't even get into a gui... and me being new to even using linux i used google on a different computer and found this topic except i did'nt know how to clear out log files so i found out how with google again... well anyways after i found out how to do it i typed this into the root terminal
Quote:
> /var/log/kern.log
> /var/log/kern.log.0
> /var/log/syslog
> /var/log/syslog.0

then i could log in again
i also found out that myth wasn't set to auto-expire recordings so when the recordings partition got full it would log that information for i'm guessing each byte it could'nt write and then that eventually filled up hda1 with log files...
also to prevent this from happening again i set myth to delete old recordings when the drive gets full (i think it's in TV settings then general on the 2nd page)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 08, 2006 7:02 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi yugiohdan6,

Good work on the digging! Do an alt + s and check the cache size also, I ended up running mine at 1 and that stopped a simular issue of the fill up of hda1.

Enjoy
Mike


Top
 Profile  
 
 Post subject: Re: Been there
PostPosted: Sun Mar 12, 2006 10:09 am 
Offline
Joined: Mon Jan 30, 2006 1:18 pm
Posts: 86
Location: Dayton, Ohio
mjl wrote:
Hi raffir,

Ran in to something simular to your problem a while ago,
http://mysettopbox.tv/phpBB2/viewtopic. ... ght=#29858 and you can do a copy and paste of the script there to cleanup the 'big' files.

The first time it happened to me I didn't have a clue, I'm still clueless but now know how to get big files cleaned up. However, you will have to figure out exactly what is causing the error so it doesn't happen again.

Hope this is helpful to you.
Mike


By the by mjl, I ran into this yesterday and tried your script, first by typing it in on a command-by-command basis. This line yielded problems every time:

/usr/local/bin/reset-mythbackend

There's no such command. Is this supposed to be a -reset parameter for the command that starts mythbackend? (Haven't had time to look it up myself yet...)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 12, 2006 3:02 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi Harbinger,

I thought I had put that up also, many apologies...
#<code>
#!/bin/sh
#
#gracefull backend restart
(play /usr/share/games/frozen-bubble/snd/snore.wav >& /dev/null)&
sudo sh /etc/init.d/mythtv-backend stop
sleep 7
sudo sh /etc/init.d/mythtv-backend restart
(play /usr/share/games/frozen-bubble/snd/applause.wav >& /dev/null)
#
#<end code>


This is just my way, not saying it is the right or best way :)
Mike


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 27, 2006 9:04 am 
Offline
Joined: Tue Mar 22, 2005 11:56 am
Posts: 110
Location: San Francisco
I put doom3 in my games directory about a month ago and kind of forgot about it. I got the same gdm message and couldn't figure out why.

I used
Code:
du -a / >usage.txt


and opened the file in excel- did a sort by file size and this showed me exactly where all of my space had been eaten up. those .pak files are quite large!
rm -Rf took care of them... no more doom3- my 2800+ / MX440 couldn't handle it anyway.

I would have liked to find a switch to sort the output of du by size but got impatient and went the winders route.

anyone know how to cat the output of / by file size?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 27, 2006 9:27 am 
Offline
Joined: Tue Feb 21, 2006 2:25 pm
Posts: 39
finger51 wrote:
anyone know how to cat the output of / by file size?

Hmm? not really sure what you mean there.

Code:
ls -lS


...will sort a directory listing by size. Add "r" flag to reverse sort order.

Code:
du / -c | sort


...will sort a du listing by the first character on a line, which is size - however it might be inaccurate since it's doing a text sort. 8 comes before 80 which comes before 9. Sounds like Excel might be the best way to do it.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 27, 2006 4:54 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Code:
du -k / | sort -n

If you want to get really detailed:
Code:
find / -type f -ls | sort -n +6

This may take a while to run. ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 27, 2006 11:57 pm 
Offline
Joined: Tue Mar 22, 2005 11:56 am
Posts: 110
Location: San Francisco
tjc wrote:
Code:
du -k / | sort -n

If you want to get really detailed:
Code:
find / -type f -ls | sort -n +6

This may take a while to run. ;-)


yeah! that du -k is cool! I never knew about the sort command

thanks to you both!

_________________
R5F27 | M2NPV-VM | 4600+ 65W AM2X2 | CORSAIR TWIN2X1024A-6400 | 2x HD-5000 |
DVI to HP LC3700N


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ] 
Go to page Previous  1, 2



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu