Jump to content

[SOLVED] Spinup affecting Kodi with NFS


squarefrog

Recommended Posts

I realise this is more a Kodi question than unRAID, but I wonder if anyone else has experienced this.

 

I have a couple of shares mounted in Kodi using NFS (using a mariadb docker to share the database). Generally this works great - fast, responsive, no dropouts. However, when I first switch on my Kodi box (Raspberry Pi 2), it boots so quick that the drives haven't spun up, so my library appears empty.

 

I don't suppose anyone knows of an equivalent to the samba client timeout option?

 

<samba>
  <clienttimeout>10</clienttimeout>  <!-- timeout (in seconds) -->
</samba>

 

Or is there anything else I can look at other than leave my drives running 24/7?

Link to comment

Seems to me that its not a drive spin up issue, since you're using mariadb to share the database.

 

Do you have on boot up for it to wait until the network is available (can't remember the entry).  Without it, Kodi can boot up, see that mariadb is not available and then show you a blank database

 

Link to comment

Seems to me that its not a drive spin up issue, since you're using mariadb to share the database.

 

Do you have on boot up for it to wait until the network is available (can't remember the entry).  Without it, Kodi can boot up, see that mariadb is not available and then show you a blank database

 

You know, that actually makes much more sense. A quick googling after and I found this:

 

OpenELEC addon -> wait for network

 

Looks like that will do the trick nicely!

Link to comment
  • 7 months later...

In case any future people are having a similar problem, I addressed the issue by having Kodi spin up all the drives when it exits the screensaver. This is accomplished by requesting an URL on the unRAID server which spins up the disks.

[*]Install the plugin Kodi Callbacks . This will allow you to nominate a specific action when the screensaver exits.

[*]Configure the plugin to spin up the drive via an http request to unRAID:

  • http://tower/update.htm?cmdSpinup=diskX  <--Ensure to replace 'X' with the disk you want to spin up and 'tower' with you unRAID URL.
  • OR you can even call a script such as the below for multiple disks

When configured properly, Kodi (via the plugin) will call the URL (or script) whenever you exit the screensaver. This will spin up the disks so your media is available for playback.This is working on unRAID 6.19 / Kodi Jarvis

#!/bin/sh
# This will spin up disks 1-6
DISK=1
        until [  $DISK -eq 6  ]; do
        curl --progress-bar http://192.168.1.90/update.htm?cmdSpinup=disk$DISK  > /dev/null
        let DISK+=1
        done

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...