2009-12-03, 18:32
Hello,
I know this has been brought up a number of times, but I would like to share my progress on getting XBMC to use a Library as well as the Thumbnails stored on a NFS Server (Windows Home Server in my Case).
First I installed NFS as per this guide http://www.networkedmediatank.com/showth...p?tid=1434
With the passwd and group files I also entered in the xbmc user (UID/GID 1000) and created xbmc (user) and xbmcgroup (group) on my home server and mapped those to the respected user/group in the files.
I already had a backup of my DB/thumbs, which I moved over, either you can mount the share (as described below) and copy them, or copy them using WinSCP/another process.
On the XBMC machine:
Create a mount point:
Then you can do:
Copy your files to that share if they aren't already.
Rename your DB/Thumbs folders in /home/xbmc/.xbmc/userdata (just in case).
Now its time to Symlink the DB/Thumbs folders:
Now you should have everything working, but you want the share to mount on boot, so edit fstab:
Add this to the bottom (no not remove anything else or you will have a hell of a time getting back in)...
Exit and Save changes.
Reboot and everything should be working (if you're using a slow flash drive DB changes should be much faster).
If currently using this setup on two different machines to share the watch status between machines, one is set to update the library on Start-Up, while the other is not (just in-case they both start at the same time and cause Mayhem). So far so good, no issues with corruption, but I do recommend backing up the Database in-case something goes wrong.
I know this isn't supported functionality, by the XBMC team or even with a sqlite DB, but it is working well for me, YMMV.
FYI, this can also be done with a SAMBA share, but (a big but), I was unable to get it working properly on a Windows SAMBA share (even after disabling Oplocks as was suggested by Googling), I could read the DB fine, but when I went to update the DB it would hang and I would get a MyVideos34.journal file and XBMC would hang. I did get it working on a share from a FreeNAS VM I was running, but it was more overhead.
For SMB you need to install the following:
And to mount the share at Start-up add this to fstab:
(I'm using a Blank Username/Password) and my xbmc user has a uid/gid of 1000, which must be set so XBMC can Write to the DB.
That should cover it, good luck and make a backup, no one is responsible for your data...except you!
-Markus
I know this has been brought up a number of times, but I would like to share my progress on getting XBMC to use a Library as well as the Thumbnails stored on a NFS Server (Windows Home Server in my Case).
First I installed NFS as per this guide http://www.networkedmediatank.com/showth...p?tid=1434
With the passwd and group files I also entered in the xbmc user (UID/GID 1000) and created xbmc (user) and xbmcgroup (group) on my home server and mapped those to the respected user/group in the files.
I already had a backup of my DB/thumbs, which I moved over, either you can mount the share (as described below) and copy them, or copy them using WinSCP/another process.
On the XBMC machine:
Code:
sudo apt-get install portmap nfs-common
Create a mount point:
Code:
sudo mkdir /mnt/xbmcshare
Then you can do:
Code:
sudo mount IPADDRESS:/sharename /mnt/xbmcshare
Copy your files to that share if they aren't already.
Rename your DB/Thumbs folders in /home/xbmc/.xbmc/userdata (just in case).
Now its time to Symlink the DB/Thumbs folders:
Code:
ln -s /mnt/xbmcshare/userdata/Database /home/xbmc/.xbmc/userdata/Database
ln -s /mnt/xbmcshare/userdata/Thumbnails /home/xbmc/.xbmc/userdata/Thumbnails
Now you should have everything working, but you want the share to mount on boot, so edit fstab:
Code:
sudo nano /etc/fstab
Code:
IPADDRESS:/sharename /mnt/xbmcshare nfs rw,hard,intr 0 0
Exit and Save changes.
Reboot and everything should be working (if you're using a slow flash drive DB changes should be much faster).
If currently using this setup on two different machines to share the watch status between machines, one is set to update the library on Start-Up, while the other is not (just in-case they both start at the same time and cause Mayhem). So far so good, no issues with corruption, but I do recommend backing up the Database in-case something goes wrong.
I know this isn't supported functionality, by the XBMC team or even with a sqlite DB, but it is working well for me, YMMV.
FYI, this can also be done with a SAMBA share, but (a big but), I was unable to get it working properly on a Windows SAMBA share (even after disabling Oplocks as was suggested by Googling), I could read the DB fine, but when I went to update the DB it would hang and I would get a MyVideos34.journal file and XBMC would hang. I did get it working on a share from a FreeNAS VM I was running, but it was more overhead.
For SMB you need to install the following:
Code:
sudo apt-get install smbfs smbclient
And to mount the share at Start-up add this to fstab:
Code:
//homeserver/xbmc /mnt/xbmcshare smbfs uid=1000,gid=1000,sync,username="",password="" 0 0
That should cover it, good luck and make a backup, no one is responsible for your data...except you!
-Markus