Page 1 of 1

Change location of the database?

PostPosted: Thu Oct 10, 2013 3:26 pm
by foobsz
Hi,

I tried changing the location to the database by modifying the following file
ServiioService.exe.VMOPTIONS and adding the line
-Dderby.system.home=F:\Data\serviio\database
I also tried
-Dderby.system.home="F:\Data\serviio\database"

Serviio 1.3.1 on Windows 7 x64.
Unfortunately when I restarted the Serviio service in services.msc the service was still using the default location.
I would like to move the serviio database location to a different disk/drive.

I could make a hard link, but prefer to edit and have a working configuration. Anyone successfull in changing the database location?

I followed the instructions listed on http://www.serviio.org/index.php?option ... icle&id=43

Re: Change location of the database?

PostPosted: Thu Oct 10, 2013 4:27 pm
by zip
it must be in the service vmoptions file, not the console one

Re: Change location of the database?

PostPosted: Thu Oct 10, 2013 5:14 pm
by foobsz
My bad indeed, sorry did a quick copy and paste when posting the message.... but I did change the ServiioService.exe.VMOPTIONS file.
I edited my original post to reflect that.

ServiioConsole.exe.VMOPTIONS file is empty (no lines)

Re: Change location of the database?

PostPosted: Fri Oct 11, 2013 11:42 am
by zip
so how does the vmoptions file look like now?

Re: Change location of the database?

PostPosted: Fri Oct 11, 2013 11:51 am
by foobsz
just one entry

-Xmx512m

Re: Change location of the database?

PostPosted: Fri Oct 11, 2013 3:37 pm
by zip
and you add your on a new line, right?

Re: Change location of the database?

PostPosted: Fri Oct 11, 2013 4:01 pm
by foobsz
yes

so the modified VMOPTIONS file would have
-Xmx512m
-Dderby.system.home=F:\Data\serviio\database

are you able to reproduce?

Re: Change location of the database?

PostPosted: Sun Oct 13, 2013 12:38 am
by zip
looking at the code, this property might not be used. try with the below

  Code:
-DdbURL=jdbc:derby:F:/Data/serviio/database

Re: Change location of the database?

PostPosted: Fri Oct 18, 2013 2:52 pm
by foobsz
Yes, that works! This should go in the FAQ :-)

Cache and tumbnails are still in %PROGRAMFILES%\Serviio\library\cache and %PROGRAMFILES%\Serviio\library\search
I suppose this will have to do...

I prefer all my programs and data on separate disks.