[mythtv-users] Storage groups: How to set 'SGweightLocalStarting' to 0?

Jonathan Larson jtlarson at u.washington.edu
Wed Oct 8 20:50:24 UTC 2008


> On 10/08/2008 01:24 PM, Kevin Kuphal wrote:
> > On Wed, Oct 8, 2008 at 12:11 PM, Jonathan Larson wrote:
> >>>>>> So do I need to put in 3 entries-one for each BE, or 6-one for
> each storage
> >>>>>> dir?
> >>>>> Probably one for each backend.  Settings are not storage group
> specific but
> >>>>> host specific.
> >>>> I guess the problem for me is that the post you linked to
> addresses
> >>>> 'SGweightPerDir' not 'SGweightLocalStarting', and I'm just trying
> to figure
> >>>> out which parts translate from one to the other...
> >>>  The principle is the same.  Most settings in the DB (if you browse
> >>> through it) have a hostname component because they are per host
> settings,
> >>> not global.
> >> So I tried entering the settings but got the same result as before-
> remote
> >> storage with more free space is still ignored. Here's the entries I
> made in
> >> settings:
> > Try running the backend with extra verbosity turned on for VB_FILE
> and/or
> > VB_SCHEDULE and you should see a bunch of stuff printed out about the
> > weighting used.
>
> And note that you'll need to restart Myth (master backend, meaning all
> other stuff, too) when hand-editing the database.
>
> Still, though, you should fix the settings so it's one with NULL
> hostname.
>
> Mike

Based on Mike's advice, I reduced my three SQL entries to 1:

mysql> select * from settings where value = "SGweightLocalStarting";
+-----------------------+------+----------+
| value                 | data | hostname |
+-----------------------+------+----------+
| SGweightLocalStarting | 0    |          |
+-----------------------+------+----------+
1 row in set (0.00 sec)

I also turned on verbose logging for file and schedule events and found this:

2008-10-08 13:30:41.043 Scheduler: FillRecordingDir: Calculating initial FS Weights.
2008-10-08 13:30:41.044   AVPC1:/mnt/AVPC1-rec1/recordings is local (-19). initial dir weight = -19
2008-10-08 13:30:41.045   AVPC1:/mnt/AVPC1-rec2/recordings is local (-19). initial dir weight = -19
2008-10-08 13:30:41.047   AVPC1:/mnt/AVPC2-rec1/recordings is remote (+0). initial dir weight = 0
2008-10-08 13:30:41.048   AVPC1:/mnt/AVPC2-rec2/recordings is remote (+0). initial dir weight = 0
2008-10-08 13:30:41.050   AVPC1:/mnt/AVPC3-rec1/recordings is remote (+0). initial dir weight = 0
2008-10-08 13:30:41.051   AVPC1:/mnt/AVPC3-rec2/recordings is remote (+0). initial dir weight = 0

Notice that the local drives are still set at -19 even with the "SGweightLocalStarting" entry in place....

Any advice would be appreciated. I can include more of the log as an attachment if that would be useful.

Jon


More information about the mythtv-users mailing list