Author Topic: MythTV and 0810 - how to use Storage Groups ?  (Read 3075 times)

Viking

  • Addicted
  • *
  • Posts: 521
    • View Profile
MythTV and 0810 - how to use Storage Groups ?
« on: July 07, 2009, 10:50:53 pm »
Hi,

I saw that there were added some changes to 0810 alpha2 to use Storage Groups. How is that usable ?

Greetings
Viking

merkur2k

  • Addicted
  • *
  • Posts: 513
    • View Profile
Re: MythTV and 0810 - how to use Storage Groups ?
« Reply #1 on: July 08, 2009, 12:44:34 am »
The storage groups stuff seems to be in a bit of a flux right now, due to the developer that was working on it having gone MIA...

Viking

  • Addicted
  • *
  • Posts: 521
    • View Profile
Re: MythTV and 0810 - how to use Storage Groups ?
« Reply #2 on: July 09, 2009, 01:51:43 pm »
MIA = Missing In Action ?

OK, so he is the one that did the changes here :
http://wiki.linuxmce.org/index.php/LinuxMCE-0810_alpha2#20090601_.28alpha_2.22.29

Storage group enhancements to use the new pvr directory, as well as addition of a new script to handle mythtv storagegroup creation nd maintenance. Hopefully this will also fix some stability issues. Mythtv auto expire set from 1GB to 10GB to match the LMCE low disk space nag.

The 10G part i saw in the myth logfile. But where is the rest :) Maybe I should take a look at the package, what is in there.

Greetings
Viking

merkur2k

  • Addicted
  • *
  • Posts: 513
    • View Profile
Re: MythTV and 0810 - how to use Storage Groups ?
« Reply #3 on: July 09, 2009, 04:17:14 pm »
so far as i can tell, that was never completed. which is the problem.

donpaul

  • Guru
  • ****
  • Posts: 300
    • View Profile
Re: MythTV and 0810 - how to use Storage Groups ?
« Reply #4 on: September 15, 2009, 10:37:45 pm »
The problem with LiveTV recordings being scanned and added to the video list is still there. Could we seperate the LiveTV and Recording directories? We can then folderlock the LiveTV dir so it is never scanned.

Recording dirs: 
 CheckMythTVStorageGroup("/home/public/data/pvr/Recordings","Default","$hostName");

LiveTV Dirs:         
 CheckMythTVStorageGroup("/home/public/data/pvr/LiveTV","LiveTV","$hostName");

donpaul

  • Guru
  • ****
  • Posts: 300
    • View Profile
Re: MythTV and 0810 - how to use Storage Groups ?
« Reply #5 on: September 16, 2009, 01:04:52 am »
Here are patch files for changes I made, and it works well for me. Does anyone else see value or problems with doing it that way?

Viking

  • Addicted
  • *
  • Posts: 521
    • View Profile
Re: MythTV and 0810 - how to use Storage Groups ?
« Reply #6 on: September 21, 2009, 04:31:12 pm »
Hi,

could be a soultion :)

At the moment i have manually configured LiveTV to my primary disk with OS and the Default to "/home/public/data/pvr".

Greetings
Viking

chrisbirkinshaw

  • Guru
  • ****
  • Posts: 431
    • View Profile
Re: MythTV and 0810 - how to use Storage Groups ?
« Reply #7 on: March 01, 2010, 06:26:16 pm »
I didn't want mythtv to record to my small local drive (I have 2 big NAS drives for that), so I ran the following:

mysql mythconverg
delete from storagegroup where dirname='/home/public/data/pvr';

Is there a more elegant way of dealing with this issue that I've missed? I'm sure it's quite a common one.

Thanks,

Chris

purps

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1393
  • If it ain't broke, tweak it
    • View Profile
Re: MythTV and 0810 - how to use Storage Groups ?
« Reply #8 on: March 04, 2010, 11:17:23 am »
I sorted mine out by going into mythTV setup through the computing menu in the main orbiter window, and selecting the appropriate path in the "storage groups" menu.

Definitely a vast improvement on 0710 - thanks devs.
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: http://wiki.linuxmce.org/index.php/User:Purps

donpaul

  • Guru
  • ****
  • Posts: 300
    • View Profile
Re: MythTV and 0810 - how to use Storage Groups ?
« Reply #9 on: March 05, 2010, 01:19:29 am »
Those changes will not stick. To make it permanent, edit /usr/pluto/bin/mythtv_setup.pl

Comment out the lines for the local drive path
Code: [Select]
#CheckMythTVStorageGroup("/home/public/data/pvr....."); 

merkur2k

  • Addicted
  • *
  • Posts: 513
    • View Profile
Re: MythTV and 0810 - how to use Storage Groups ?
« Reply #10 on: March 05, 2010, 06:28:06 am »
cmon guys, use the tools that are there the way they are meant to be used!
mythtv will only ever use a drive with little space if the larger ones fill up.
you can also set storage groups by recording profile in mythweb.
editing the mythtv_setup.pl file is also not permanent, the next time that package is updated your file will be overwritten.

chrisbirkinshaw

  • Guru
  • ****
  • Posts: 431
    • View Profile
Re: MythTV and 0810 - how to use Storage Groups ?
« Reply #11 on: March 16, 2010, 01:22:57 pm »
Problem is that be default mythtv fills up my local drive first, then starts on my NAS. LMCE then complains constantly that my local drive is full. :-(


merkur2k

  • Addicted
  • *
  • Posts: 513
    • View Profile
Re: MythTV and 0810 - how to use Storage Groups ?
« Reply #12 on: March 16, 2010, 03:40:12 pm »
you have changed something in mythtv's config then, or you arent running 0810.

mythtified

  • Guru
  • ****
  • Posts: 176
    • View Profile
Re: MythTV and 0810 - how to use Storage Groups ?
« Reply #13 on: March 16, 2010, 09:41:41 pm »
Problem is that be default mythtv fills up my local drive first, then starts on my NAS. LinuxMCE then complains constantly that my local drive is full. :-(



create a folder on your nas and call it what ever you want.  Then go into mythbackendsetup and edit your default storage group to point at the folder you created on your nas or am I missing something.

Viking

  • Addicted
  • *
  • Posts: 521
    • View Profile
Re: MythTV and 0810 - how to use Storage Groups ?
« Reply #14 on: March 17, 2010, 10:39:10 am »
you are missing the automatic setup of storage groups that is done by Linuxmce (/usr/pluto/bin/mythtv_setup.pl) IIRC on each boot.
Viking