Author Topic: Free up diskspace - HOWTO?  (Read 3261 times)

Lexje

  • Guru
  • ****
  • Posts: 230
    • View Profile
Free up diskspace - HOWTO?
« on: May 27, 2008, 09:18:02 am »
Hi forum,

I seem to have a problem here:
Running 7.10b4 with a single NIC.
Already previously experienced weird things with network shares. (It would be a good thing to have a tab with services in Pluto admin to be able to switch some of these functions on / off)
This shows as I have either shares unreacheable or I have e.g. videos turn up twice and more.
I think these are mainly due to my changes in my network, so I don't really blame LMCE.

Today however I start running out of diskspace.
As everything is in a database, I don't want to start just deleting stuff.
In /var/log/mythtv/mythbackend.log I get these:
Code: [Select]

2008-05-26 17:18:22.024 MainServer::HandleQueryRecordings()
                        Couldn't find backend for:
                        Kinderen van Dewindt : "Kant noch wal"
2008-05-26 17:18:22.028 MainServer::HandleQueryRecordings()
                        Couldn't find backend for:
                        Sense and Sensibility : ""
2008-05-26 17:18:22.031 MainServer::HandleQueryRecordings()
                        Couldn't find backend for:
                        Phara : ""
2008-05-26 17:18:22.033 MainServer::HandleQueryRecordings()
                        Couldn't find backend for:
                        Kinderen van Dewindt : "Late erfenis"
2008-05-26 17:18:22.039 MainServer::HandleQueryRecordings()
                        Couldn't find backend for:
                        Sophie Scholl - In Defiance of All Powers : ""
2008-05-26 17:18:22.043 MainServer::HandleQueryRecordings()
                        Couldn't find backend for:
                        Huizenjacht : ""
2008-05-26 17:18:22.047 MainServer::HandleQueryRecordings()
                        Couldn't find backend for:
                        Prison Break : "The Art of the Deal"
2008-05-26 17:18:22.051 MainServer::HandleQueryRecordings()
                        Couldn't find backend for:
                        Unknown : ""
2008-05-26 17:18:22.462 Error deleting '/home/public/data/videos/tv_shows_1/1079_20080521195324.mpg' could not open
                        eno: No such file or directory (2)
2008-05-26 17:18:22.467 Delete Error '/home/public/data/videos/tv_shows_1/1079_20080521195324.mpg'
                        eno: No such file or directory (2)
2008-05-26 17:18:26.473 Reschedule requested for id 0.
2008-05-26 17:18:26.481 Error deleting '/home/public/data/videos/tv_shows_1/1079_20080521195246.mpg' could not open
                        eno: No such file or directory (2)
2008-05-26 17:18:26.485 Delete Error '/home/public/data/videos/tv_shows_1/1079_20080521195246.mpg'
                        eno: No such file or directory (2)
2008-05-26 17:18:26.502 Scheduled 3 items in 0.0 = 0.01 match + 0.02 place
2008-05-26 17:18:26.510 scheduler: Scheduled items: Scheduled 3 items in 0.0 = 0.01 match + 0.02 place
2008-05-26 17:18:30.490 Reschedule requested for id 0.
2008-05-26 17:18:30.507 Scheduled 3 items in 0.0 = 0.01 match + 0.01 place
2008-05-26 17:18:30.512 scheduler: Scheduled items: Scheduled 3 items in 0.0 = 0.01 match + 0.01 place
2008-05-26 17:19:20.397 MainServer::HandleAnnounce Monitor
2008-05-26 17:19:20.411 adding: dcerouter as a client (events: 0)
2008-05-26 17:25:20.519 MainServer::HandleAnnounce Monitor
2008-05-26 17:25:20.524 adding: dcerouter as a client (events: 0)
2008-05-26 17:25:24.093 MainServer::HandleAnnounce Monitor
2008-05-26 17:25:24.099 adding: dcerouter as a client (events: 0)
2008-05-26 20:48:56.839 Expiring De Planckaerts from Sun May 25 20:25:00 2008, 187 MBytes, forced expire (LiveTV recording)
2008-05-26 20:48:56.847 autoexpire: Expiring Program: Expiring De Planckaerts from Sun May 25 20:25:00 2008, 187 MBytes, forced expire (LiveTV ng)
2008-05-26 20:58:56.877 Expiring De Planckaerts from Sun May 25 20:25:00 2008, 326 MBytes, forced expire (LiveTV recording)
2008-05-26 20:58:56.887 autoexpire: Expiring Program: Expiring De Planckaerts from Sun May 25 20:25:00 2008, 326 MBytes, forced expire (LiveTV ng)
2008-05-26 21:18:56.956 Expiring De Planckaerts from Sun May 25 20:25:00 2008, 523 MBytes, forced expire (LiveTV recording)
2008-05-26 21:18:56.964 autoexpire: Expiring Program: Expiring De Planckaerts from Sun May 25 20:25:00 2008, 523 MBytes, forced expire (LiveTV ng)
2008-05-26 21:45:02.214 TVRec(2): Changing from None to RecordingOnly
2008-05-26 21:45:02.234 TVRec(2): HW Tuner: 2->2


This is only a snippet. I think there were more errors.
Just yesterday I tried to delete quite some stuff via mythweb...

Today it seems that nothing gets deleted...
What can I do?
Is there any way to rebuild or check the database? I have no qlue...


Thanks for your advice!!

Erwin
« Last Edit: May 27, 2008, 09:20:40 am by Lexje »

Lexje

  • Guru
  • ****
  • Posts: 230
    • View Profile
Re: Free up diskspace - HOWTO?
« Reply #1 on: May 28, 2008, 07:46:52 am »
Okay, it seems after a couple of days, that autoexpiring does its job.

Problem seems to be, that somehow non-existing files seem to get created / registered.
I just found it the easiest way to look at the log via http://dcerouter/mythweb/backend_log
Also, it seems:
- In mythweb, recorded programs (this takes a whiiiiiiiiiiiiiile to load)
- There seem to be quite some recordings that do NOT have a screenshot
- Hovering over these recordings title, shows there file name (firefox, messageline at bottom)
Code: [Select]
myth://192.168.80.1:6543/file not found- Titles without screenshot show file not found

Question:
- In mythweb you seem to be able to change flag e.g. autoexpire yes/no -> but there doesn't seem to be a way / button to confirm your action??
- Is there any way (preferably within mythweb, as this would be easy) to have the myth-filename appear next to the title??
After all, how can you manually intervene and delete files if you don't know the link between TITLE and FILENAME?


Code: [Select]
-rw-r--r-- 1 root   root        12288 2008-05-27 22:02 1077_20080527204000.mpg.id3
-rw-rw-rw- 1 mythtv mythtv      32519 2008-05-27 21:58 1077_20080527204000.mpg.png
-rw-r--r-- 1 root   root        26670 2008-05-27 21:47 1077_20080527204000.mpg.png.tnj
-rwxrwxr-x 1 root   public      32591 2008-04-29 16:24 1078_20080429162352.mpg.png.tnj
-rwxrwxr-x 1 root   public      31938 2008-05-25 11:25 1078_20080525112019.mpg.png.tnj
-rwxrwxr-x 1 root   public      32652 2008-05-25 11:26 1078_20080525112535.mpg.png.tnj
-rwxrwxr-x 1 root   public      29101 2008-05-25 11:30 1078_20080525112949.mpg.png.tnj
-rwxrwxr-x 1 root   public      35590 2008-05-25 16:12 1078_20080525161025.mpg.png.tnj
[color=red]-rw-r--r-- 1 root   root [/color]       31020 2008-05-26 18:20 1078_20080526101950.mpg.png.tnj
[color=red]-rw-r--r-- 1 root   root [/color]       24429 2008-05-26 18:20 1078_20080526103003.mpg.png.tnj
[color=red]-rw-r--r-- 1 root   root [/color]       32412 2008-05-26 18:20 1078_20080526110000.mpg.png.tnj
-rwxrwxr-x 1 mythtv public 4912990516 2008-04-27 01:40 1079_20080427000500.mpg

How is it in hte above that some files are owned by root, group root???
As they are readonly it seems obvious that they may cause problems while auto expiring?

Thanks a lot!!

Erwin

Zaerc

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 2256
  • Department of Redundancy Department.
    • View Profile
Re: Free up diskspace - HOWTO?
« Reply #2 on: May 29, 2008, 12:02:02 pm »
...
How is it in hte above that some files are owned by root, group root???
As they are readonly it seems obvious that they may cause problems while auto expiring?
...

I don't know, but I can tell you how to fix those permissions, just run the following in that directory (or replace "." with a path to it):
Code: [Select]
chown root:public -R .
chmod g+w -R .
"Change is inevitable. Progress is optional."
-- Anonymous