Page 1 of 1

Moving database onto another drive

PostPosted: Sat Jun 09, 2018 11:43 pm
by BKKK
I am trying to use Serviio on a WHS V1 server which has only has a 20GB C drive partition. As I have about 2TB spare on my D drive I would like to move the database onto that.
I have found an old post about editing the services VMOPTIONS file and I was wondering if that is still current?
I would assume that I would need to stop serviio, move the database folder, edit the above file and than restart Serviio.
Note the database is already up to 6GB and hasn't finished indexing yet :(

Re: Moving database onto another drive

PostPosted: Sun Jun 10, 2018 9:46 am
by bolzass
Sure!. It will work (-Dderby.system.home=/extdrive/serviio/library).
6GB for 2TB seems too much (unless all media are music files). I suggest finish migrating and then clean and compress database (there are some posts about that).

L.

Re: Moving database onto another drive

PostPosted: Sun Jun 10, 2018 3:47 pm
by atc98092
I just checked the size of my Library folder (which contains the DB). It is at 209 MB, and this is for 3609 videos and 336 music files, spread across 16 TB of drive space. How many files do you have?

Re: Moving database onto another drive

PostPosted: Mon Jun 11, 2018 2:01 pm
by BKKK
I am trying to add my music collection of about 150,000 tracks

OK I moved the database and added the following to my vmoptions file

  Code:
-DdbURL=jdbc:derby:D:/shares/Serviio


Serviio service starts runs for a few seconds then shuts down - no errors shown.
Anyone know what I am doing wrong?

Re: Moving database onto another drive

PostPosted: Mon Jun 11, 2018 4:55 pm
by atc98092
Please upload your Serviio log here. It should have the error information.

Re: Moving database onto another drive

PostPosted: Tue Jun 12, 2018 11:07 am
by BKKK
OK I took the easy way out, I just reinstalled Serviio into my shared folder and it appears to be working fine.
Yes I will have to rescan all my folders but what the heck.

ps I did check the log and it would appear that it couldn't find the database?

Re: Moving database onto another drive

PostPosted: Tue Jun 12, 2018 1:51 pm
by atc98092
BKKK wrote:OK I took the easy way out, I just reinstalled Serviio into my shared folder and it appears to be working fine.
Yes I will have to rescan all my folders but what the heck.

ps I did check the log and it would appear that it couldn't find the database?


Well, that explains why the Serviio service was stopping. Doesn't explain why it couldn't find the DB though. Anyway, glad you have it running again.

Re: Moving database onto another drive

PostPosted: Thu Jun 14, 2018 7:38 pm
by freaknik
BKKK wrote:Note the database is already up to 6GB and hasn't finished indexing yet :(


Bro mine is 750mb database for 2tb drive.

6gb seems way overkill, I bet there was some overlap or redundancy.

Re: Moving database onto another drive

PostPosted: Fri Jun 15, 2018 1:42 am
by mjb
On my Win7 box, I stopped the Serviio service, moved my library and log folders to another drive, and replaced them with symlinks:

  Code:
c:
mkdir "F:\Serviio library & log"
cd "\Program Files\Serviio"
mv library "F:\Serviio library & log"
mv log "F:\Serviio library & log"
mklink /d library "F:\Serviio library & log\library"
mklink /d log "F:\Serviio library & log\log"


As far as Serviio knows, the folders are still in their original locations.