FAQ  •  Register  •  Login

Size of library folder

<<

ronnyvedal

Streaming enthusiast

Posts: 28

Joined: Fri Dec 20, 2013 4:06 pm

Post Wed Jan 01, 2014 10:16 am

Size of library folder

Hello

A while ago i added a pictures-folder to my library. The folder had extremely lot of pictures and when it was done indexing the library folder was like 7 gigs.
This is a while ago and i removed this folder from the library a few days after i added it. I now notice that the library folder is still the same size.
Is this normal?

I also tested once, checking size of the library dir before and after renaming a bunch of files (1000+ files) in one of the shared folders. Everything looked OK on the clients with the new file-names but the libraryfolder just got even bigger.

I thought serviio automatically refreshed/reindexed the database to avoid using unnessecary diskspace for libraryfiles?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Jan 01, 2014 11:37 am

Re: Size of library folder

Serviio will remove the items from the database, but it's possible the D engine does not do any further optimization (unless somehow forced?). Easiest might be to reinstall.
<<

ronnyvedal

Streaming enthusiast

Posts: 28

Joined: Fri Dec 20, 2013 4:06 pm

Post Wed Jan 01, 2014 4:47 pm

Re: Size of library folder

Yea it removes it from the database, but the library-directory remains very huge.
Just thought i'd mention this, in case you didnt know it. If its possible to solve this without a reinstall it would be great.
Since it takes a long time to add everything again, i really dont want to reinstall unless its needed.
<<

ronnyvedal

Streaming enthusiast

Posts: 28

Joined: Fri Dec 20, 2013 4:06 pm

Post Wed Jan 01, 2014 6:48 pm

Re: Size of library folder

Is there a way to "save" settings like presentation-settings so i can just load it again after a reinstall? I have this very customized and its a pain in the ass to reconfigure everything.
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Wed Jan 01, 2014 7:30 pm

Re: Size of library folder

Does Derby not have a vacuum procedure that you can call?
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

bolzass

Serviio lover

Posts: 67

Joined: Thu Jan 02, 2014 6:32 pm

Post Thu Jan 02, 2014 6:58 pm

Re: Size of library folder

will wrote:Does Derby not have a vacuum procedure that you can call?


I had the same problem and made that for me (linux):
Reading the apache derby doc, I found the SYSCS_UTIL.SYSCS_COMPRESS_TABLE call, so I made the "vacuum" script (I'm not a DBA :? .

If you want to use that;
- Stop serviio (needed to run it & safe backup)
- first make a BACKUP
- extract files and edit vacuum to adapt "SERVIIO_HOME, SERVIIO_LIBRARY and SERVIIO_LIB" vars (first lines)
- and the run vacuum as your serviio user (not root) because it will create new files!.
- Wait for a while! (7 gigs will take some minutes / quarter....)

Hope this help.

Note: Because of file size limits, I emptied "derby.jar" at lib sub-directory. Copy it from your serviio installation or set SERVIIO_LIB accordingly.

PS: Also interested on saving preferences!;)
Attachments
serviiodb.clean.tar.gz
(193.07 KiB) Downloaded 351 times

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 82 guests

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