ReadyDLNA OS Partition Usage

(Replaces the existing UPnP-AV server support) Enables playback of videos, music and pictures from DLNA/UPnP AV network media players. Also adds TiVo HMO support.

ReadyDLNA OS Partition Usage

Postby StephenB » Sat Jul 07, 2012 4:52 am

I just noticed that ReadyDLNA's database and artwork cache are stored on the OS partition (/var/cache/minidlna). On my system that is about 600 MB of the limited OS partition space :shock:

Is there any way to shift that stuff to the C Volume???
User avatar
StephenB
Incurable ReadyNAS Junkie
 
Posts: 5325
Joined: Mon Oct 05, 2009 5:08 pm
ReadyNAS: Pro

Re: ReadyDLNA OS Partition Usage

Postby mdgm » Fri Jul 13, 2012 5:41 pm

+1. I like this feature request. There is an option that can be added to /etc/minidlna.conf for this. They could use /c/.minidlna or something like that instead of /var/cache/minidlna

Looking around the web there does appear to be a db_dir option that could be tried.

From the minidlna 1.0.25 source there is this default /etc/minidlna.conf file:
Code: Select all
# port for HTTP (descriptions, SOAP, media transfer) traffic
port=8200

# network interfaces to serve, comma delimited
#network_interface=eth0

# set this to the directory you want scanned.
# * if have multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to a specific content type, you
#   can prepend the type, followed by a comma, to the directory:
#   + "A" for audio  (eg. media_dir=A,/home/jmaggard/Music)
#   + "V" for video  (eg. media_dir=V,/home/jmaggard/Videos)
#   + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
media_dir=/opt

# set this if you want to customize the name that shows up on your clients
#friendly_name=My DLNA Server

# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
#db_dir=/var/cache/minidlna

# set this if you would like to specify the directory where you want MiniDLNA to store its log file
#log_dir=/var/log

# set this to change the verbosity of the information that is logged
# each section can use a different level: off, fatal, error, warn, info, or debug
#log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn

# this should be a list of file names to check for when searching for album art
# note: names should be delimited with a forward slash ("/")
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

# set this to no to disable inotify monitoring to automatically discover new files
# note: the default is yes
inotify=yes

# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
enable_tivo=no

# set this to strictly adhere to DLNA standards.
# * This will allow server-side downscaling of very large JPEG images,
#   which may hurt JPEG serving performance on (at least) Sony DLNA products.
strict_dlna=no

# default presentation url is http address on port 80
#presentation_url=http://www.mylan/index.php

# notify interval in seconds. default is 895 seconds.
notify_interval=900

# serial and model number the daemon will report to clients
# in its XML description
serial=12345678
model_number=1

# specify the path to the MiniSSDPd socket
#minissdpdsocket=/var/run/minissdpd.sock

# use different container as root of the tree
# possible values:
#   + "." - use standard container (this is the default)
#   + "B" - "Browse Directory"
#   + "M" - "Music"
#   + "V" - "Video"
#   + "P" - "Pictures"
# if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
#root_container=.
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28908
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN516

Re: ReadyDLNA OS Partition Usage

Postby TeknoJnky » Fri Jul 13, 2012 5:53 pm

it should be a simple matter to symlink /var/cache/minidlna to /c/.minidlna
nv+ ~ 1gb ram ~ 4x WDC WD20EARS-00S8B1 ~ 5555 GB
ultra4 ~ 4 gb ram ~ 2x ST31500341AS ~ 2x ST4000DX000-1C5160 ~ 6471 GB
pro business ~ 4gb ram ~ dual redundancy ~ 4x Hitachi HDS724040ALE640 ~ 2x SAMSUNG HD204UI ~ 9130 GB
A/V streaming ---> Subsonic ---> EVO 3D
User avatar
TeknoJnky
ReadyNAS Addict
 
Posts: 2915
Joined: Mon Oct 13, 2008 1:34 pm
Location: MO
ReadyNAS: Pro

Re: ReadyDLNA OS Partition Usage

Postby Skywalker » Fri Jul 13, 2012 6:14 pm

Yes, just changing the db_dir setting in the config file will do the trick, and won't get overwritten by firmware updates. We could probably do an addon for this without too much trouble.
User avatar
Skywalker
Jedi Council
 
Posts: 2951
Joined: Fri Nov 19, 2004 10:47 am
Location: Fremont, CA
ReadyNAS: NV

Re: ReadyDLNA OS Partition Usage

Postby Etz » Tue Jul 17, 2012 1:13 am

Skywalker wrote:Yes, just changing the db_dir setting in the config file will do the trick, and won't get overwritten by firmware updates. We could probably do an addon for this without too much trouble.


Would be really helpful, as db_dir grows expodentially, if you have lots of media files and most users wouldnt feel themselves very comfortable to edit config files by hand.
...life is random, so am I...
So, there is a fan. Time to grab your sh*t, gentlemen!
User avatar
Etz
Advanced ReadyNAS User
 
Posts: 178
Joined: Wed Dec 22, 2010 9:48 am
Location: Estonia
ReadyNAS: Ultra

Re: ReadyDLNA OS Partition Usage

Postby de niro » Tue Jul 17, 2012 1:52 am

This would be great idea for most DLNA users to keep DLNA component running normally on Readynas,I have seen many Readynas boxes filled up DLNA cache DB files in /var/cache/minidlna which size risen up to 1.8GB or 3.5GB(Sparc and X86 based NAS),I hope there is an addon to allow users modify current setting without SSH access.
User avatar
de niro
ReadyNAS Padawan
 
Posts: 307
Joined: Thu Sep 24, 2009 6:46 pm
Location: China
ReadyNAS: NVX

Re: ReadyDLNA OS Partition Usage

Postby jhobson » Tue Jul 24, 2012 4:28 am

+1 URGENT vote for this to be provided as an addon.

I have tried also manually editing the /etc/minidlna.conf file and adding db_dir=/c/.minidlna
However finding that this file keeps on getting rewritten and that db_dir is wiped out, with the box then defaulting to using LOTS of space in /var/cache.
jhobson
ReadyNAS Newbie
 
Posts: 12
Joined: Tue Jul 17, 2007 4:57 am
Location: NSW, Australia
ReadyNAS: NV+ v2

Re: ReadyDLNA OS Partition Usage

Postby mdgm » Tue Jul 24, 2012 5:44 am

What model ReadyNAS was this on and what version of RAIDiator? What version of ReadyDLNA is installed on your NAS?

How did you manually edit the conf file, via SSH using vi or some other method?

When does the file get rewritten losing the changes? When you restart ReadyDLNA? When you reboot the NAS? When you make configuration changes to ReadyDLNA via the web-admin interface of the ReadyNAS?
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28908
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN516

Re: ReadyDLNA OS Partition Usage

Postby jhobson » Tue Jul 24, 2012 10:35 pm

Hi,

ReadyNAS NV+ v2 (ARM).
RAIDiator - 5.3.5
DLNA - 1.0.25

I believe that it's getting overwritten when restarting/rebooting or when making a config change via the WebGUI.
Also note that the scanning of the folders for new files to publish via DLNA is either stopping or taking an extremely long time between scans (i.e. many hours / 1-2 times a day at best)
jhobson
ReadyNAS Newbie
 
Posts: 12
Joined: Tue Jul 17, 2007 4:57 am
Location: NSW, Australia
ReadyNAS: NV+ v2

Re: ReadyDLNA OS Partition Usage

Postby mdgm » Tue Jul 24, 2012 10:50 pm

You didn't answer all my questions. How did you edit the minidlna.conf file?
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28908
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN516

Re: ReadyDLNA OS Partition Usage

Postby jhobson » Wed Jul 25, 2012 3:49 am

Hi sorry missed that question. I use Winscp, ssh'ing into the box to edit.
jhobson
ReadyNAS Newbie
 
Posts: 12
Joined: Tue Jul 17, 2007 4:57 am
Location: NSW, Australia
ReadyNAS: NV+ v2

Re: ReadyDLNA OS Partition Usage

Postby mdgm » Wed Jul 25, 2012 4:03 am

I can confirm I get this issue in 5.3.5 when I change the settings for ReadyDLNA on a share, either enabling/disabling ReadyLNA on the share or changing the media type for the share. I'm just trying a reboot now.
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28908
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN516

Re: ReadyDLNA OS Partition Usage

Postby Skywalker » Fri Aug 24, 2012 4:26 pm

FYI, the db_dir setting should stick for you once 5.3.6 is released.
User avatar
Skywalker
Jedi Council
 
Posts: 2951
Joined: Fri Nov 19, 2004 10:47 am
Location: Fremont, CA
ReadyNAS: NV

Re: ReadyDLNA OS Partition Usage

Postby jhobson » Fri Aug 24, 2012 6:01 pm

Era on 5.3.6 though ?
jhobson
ReadyNAS Newbie
 
Posts: 12
Joined: Tue Jul 17, 2007 4:57 am
Location: NSW, Australia
ReadyNAS: NV+ v2

Re: ReadyDLNA OS Partition Usage

Postby Skywalker » Fri Aug 24, 2012 6:15 pm

From what I understand, it should be available within the next few weeks.
User avatar
Skywalker
Jedi Council
 
Posts: 2951
Joined: Fri Nov 19, 2004 10:47 am
Location: Fremont, CA
ReadyNAS: NV

Next

Return to ReadyDLNA



Who is online

Users browsing this forum: No registered users and 2 guests