FAQ  •  Register  •  Login

Moving database onto another drive

<<

BKKK

Serviio newbie

Posts: 3

Joined: Sat Jun 09, 2018 11:28 pm

Post Sat Jun 09, 2018 11:43 pm

Moving database onto another drive

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 :(
<<

bolzass

Serviio lover

Posts: 55

Joined: Thu Jan 02, 2014 6:32 pm

Post Sun Jun 10, 2018 9:46 am

Re: Moving database onto another drive

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.
<<

atc98092

User avatar

DLNA master

Posts: 2904

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Sun Jun 10, 2018 3:47 pm

Re: Moving database onto another drive

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?
Dan

Panasonic ST30 Plasma, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku 4, Ultra and Stick, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 18 TB hard drive space | Test server Windows 7 Home Premium, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

BKKK

Serviio newbie

Posts: 3

Joined: Sat Jun 09, 2018 11:28 pm

Post Mon Jun 11, 2018 2:01 pm

Re: Moving database onto another drive

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?
<<

atc98092

User avatar

DLNA master

Posts: 2904

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Mon Jun 11, 2018 4:55 pm

Re: Moving database onto another drive

Please upload your Serviio log here. It should have the error information.
Dan

Panasonic ST30 Plasma, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku 4, Ultra and Stick, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 18 TB hard drive space | Test server Windows 7 Home Premium, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

BKKK

Serviio newbie

Posts: 3

Joined: Sat Jun 09, 2018 11:28 pm

Post Tue Jun 12, 2018 11:07 am

Re: Moving database onto another drive

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?
<<

atc98092

User avatar

DLNA master

Posts: 2904

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Tue Jun 12, 2018 1:51 pm

Re: Moving database onto another drive

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.
Dan

Panasonic ST30 Plasma, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku 4, Ultra and Stick, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 18 TB hard drive space | Test server Windows 7 Home Premium, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

freaknik

User avatar

DLNA master

Posts: 216

Joined: Thu Mar 27, 2014 2:05 pm

Post Thu Jun 14, 2018 7:38 pm

Re: Moving database onto another drive

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.
<<

mjb

User avatar

Streaming enthusiast

Posts: 45

Joined: Fri Jan 06, 2012 10:42 pm

Post Fri Jun 15, 2018 1:42 am

Re: Moving database onto another drive

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.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 4 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.