XBMC Community Forum
2 XBMC PCs and 1 Database on the shared NAS - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Windows support (/forumdisplay.php?fid=59)
+---- Thread: 2 XBMC PCs and 1 Database on the shared NAS (/showthread.php?tid=70603)



- bradvido88 - 2010-03-26 03:23

charrua Wrote:Here's the results I got:
-Central Network Shared Cache: It does work, but in my trial it takes thrice the time of XBMC using a local cache to load the movie list screen. So (as expected) it works but it's noticeable slower, at least in my case.
?
How did you set up the folder redirection for the central shared cache?


- charrua - 2010-03-26 03:42

bradvido88 Wrote:How did you set up the folder redirection for the central shared cache?
First I copied the thumbnails folder inside userdata to the server, then I shared that path from the server, renamed the thumbnails folder inside userdata folder in the client machine to thumbnails.old (to avoid its deletion) and finally made a NTFS directory symbolic link pointing to the shared folder in my server with the command:
Code:
[b]mklink /D[/b] thumbnails [i]//SERVER_ADDRESS/shared_thumbnails_folder[/i]
If you try it, please let me know if in your case it is also noticeable slower than the local cache. Anyway is not a bad option until the new cache system is in place.


- MrDVD - 2010-03-26 08:42

charrua Wrote:Thanks for your reply
I understood that you were running XBMC from the server as RenZ0R suggested...
No, each client have his own xbmc install.


- rtrimarchi - 2010-03-26 12:56

MrDVD,

when you said:
Quote:The image cache, mysql and all media are on the server.
Each clients run there own xbmc but the Thumbnails folder is on the server and only linked to the default folder on the clients.
you were referring to a LINUX environment.

In a WINDOWS environment, Where in XBMC do you create this LINK to the server thumbnails folder ON the SERVER Confused

So far, as charrua said at the beginning, in XBMC you have ONLY to modify the ADVANCEDSETTINGS.XML like this:
Code:
<videodatabase>
  <type>mysql</type>
  <host>localhost</host>
  <port>3306</port>
  <user>xbmc</user>
  <pass>xbmc</pass>
  <name>xbmc_video</name>
</videodatabase>

Confused Confused Confused


- charrua - 2010-03-26 13:27

rtrimarchi Wrote:MrDVD,
when you said:
you were referring to a LINUX environment.
In a WINDOWS environment, Where in XBMC do you create this LINK to the server thumbnails folder ON the SERVER
So far, as charrua said at the beginning, in XBMC you have ONLY to modify the ADVANCEDSETTINGS.XML like this:
Code:
<videodatabase>
  <type>mysql</type>
  <host>localhost</host>
  <port>3306</port>
  <user>xbmc</user>
  <pass>xbmc</pass>
  <name>xbmc_video</name>
</videodatabase>
rtrimarchi, that is correct for the library database connection (also valid for linux environments), but MrDVD is trying to solve the thumbnail cache problem: XBMC clients connecting to a central MySQL database don't regenerate thumbnails for new media scraped by other XBMC clients storing info in the same database.
He is using a folder on his server to store the thumbnail cache, and then he shared it on his network and mapped the local thumbnail cache folder on each machine running XBMC to the one shared from his server. And IMHO is a fine temporary solution until a new and improved image cache system is in place, the biggest problem with his solution is that (at least in my case) performance of the XBMC GUI slows down noticeable when using the networked cache vs. the local one. If you want you can try it and see if it works for you and it's fast enough for what you need.


- rtrimarchi - 2010-03-26 13:50

Charrua,

since I wanna give it a try .......

where in XBMC should I change the path from local "thumbnail" folder to the remote "thumbnail folder" Confused

I mean which configuration file tells XBMC the location where to store the thumbnails Confused

Of course I should replace it with the remote path \\server address\shared name ..... right Confused

Also.... if I understand correctly......the two solution (mysql + remote thumbnails) can be BOTH done simultaneously ... right Confused


- MrDVD - 2010-03-26 14:16

I cant say it for windows but i think it works like charrua posted it here, just copy the tumbnail folder from on of your clients to an server and link the folder from your server back to the client.

If you dont like the remote rsync folder try something like this rsync im sure there is also something like this for windows.


- bradvido88 - 2010-03-26 14:17

charrua Wrote:First I copied the thumbnails folder inside userdata to the server, then I shared that path from the server, renamed the thumbnails folder inside userdata folder in the client machine to thumbnails.old (to avoid its deletion) and finally made a NTFS directory symbolic link pointing to the shared folder in my server with the command:
Code:
[b]mklink /D[/b] thumbnails [i]//SERVER_ADDRESS/shared_thumbnails_folder[/i]
If you try it, please let me know if in your case it is also noticeable slower than the local cache. Anyway is not a bad option until the new cache system is in place.

Perfect! I'll try that and report back about speed.


- rtrimarchi - 2010-03-26 14:51

But instead of creating a symbolic link with mklink, isn't there an .xml file in XBMC where we can modify this local path with the remote one Confused


- charrua - 2010-03-26 14:56

rtrimarchi Wrote:Also.... if I understand correctly......the two solution (mysql + remote thumbnails) can be BOTH done simultaneously ... right
Yes, you're right.

rtrimarchi Wrote:But instead of creating a symbolic link with mklink, isn't there an .xml file in XBMC where we can modify this local path with the remote one
Not that I know of...