Kodi Community Forum
v18 Kodi $HOME/.kodi on an nfs share - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: v18 Kodi $HOME/.kodi on an nfs share (/showthread.php?tid=351686)



Kodi $HOME/.kodi on an nfs share - trumee - 2020-02-13

Hello,

I want to setup a kodi in a readonly file system on a NUC. The NUC sees a lot of power outages and is a reason i use a readonly file system. The NUC has been happily running MythTV for a few years with this setup.

I have a NAS which has UPS backup and i have setup an NFS share on it and mount on the NUC. The $HOME/.kodi files are mounted on this NFS share. Unfortunately, with this setup Kodi is not coming up correctly. Is NFS mounting of kodi config file not supported?

Thanks


RE: Kodi $HOME/.kodi on an nfs share - Klojum - 2020-02-13

You cannot simply 'relocate' Kodi's entire system profile folder. That is not supported.
You can use path substitution with certain special folders (see our Wiki), but also not all add-ons have support for it.

Using a MySQL database will avoid a lot of problems that could happen on a powerless NUC with only local database files. The video database is regularly written to, so that is the biggest problem area when a power outage happens. Writing to config or xml files files usually happens less often.


RE: Kodi $HOME/.kodi on an nfs share - trumee - 2020-02-13

(2020-02-13, 09:56)Klojum Wrote: You cannot simply 'relocate' Kodi's entire system profile folder. That is not supported.
You can use path substitution with certain special folders (see our Wiki), but also not all add-ons have support for it.

Using a MySQL database will avoid a lot of problems that could happen on a powerless NUC with only local database files. The video database is regularly written to, so that is the biggest problem area when a power outage happens. Writing to config or xml files files usually happens less often.

I am using the mysql database. Unfortunately, the database doesn't work for Addons. The only Addons i am interested is Mythtv and plex.
Can i symlink the userdata and temp to a read-write NFS file system, and leave everything else on a readonly file system?


RE: Kodi $HOME/.kodi on an nfs share - Klojum - 2020-02-13

(2020-02-13, 11:39)trumee Wrote: Can i symlink the userdata and temp to a read-write NFS file system, and leave everything else on a readonly file system?

I have never used MythTV or Plex. or used symlinks for Kodi, so the simple answer would be: "There is only one way to find that out". :-)


RE: Kodi $HOME/.kodi on an nfs share - graysky - 2020-02-13

...mythtv uses mysqld on its own.


RE: Kodi $HOME/.kodi on an nfs share - trumee - 2020-02-15

I was successfully able to symlink .kodi to a NFS folder. I first created a tmpfs folder and then mounted the nfs server.
Code:

mount -t tmpfs tmpfs /tmp1
mkdir /tmp1/nuckodihome
chown me:users /tmp1/nuckodihome
mount.nfs myip:/mnt/nuckodihome /tmp1/nuckodihome
ln -s /tmp1/nuckodihome /home/me/.kodi