Page 1 of 1
DNS-323 & Multiple Volumes
Posted: Tue Apr 12, 2011 5:56 am
by cvanoosbree
Hi All,
About to procure 2x 2tb HD's for the NAS due to the neccessity of capacity. Question is, can Twonky catalogue 2 volumes as I am planning to spread media accross the 2 volumes rather than a single volume. I will not be doing JBOD / RAID. As they are music / vid's etc so they can be replaced if HD fails in the future
Can someone advise about the multi volume thing?
Re: DNS-323 & Multiple Volumes
Posted: Wed Apr 13, 2011 3:27 pm
by PeeBee
On the sharing config page you can set multiple folders for Twonky to look in for media files but they have to be under the same base directory.
I have a single disk Linkstation Pro and it is set to use /mnt/Disk1 as the content base, but if I had 2 drives I could set the content base to /mnt so it could then see /mnt/Disk1 and /mnt/Disk2.
Contentbase is the entry to set for this in the ini file, and then you set your shares up on the Sharing page.
Regards
PB
Re: DNS-323 & Multiple Volumes
Posted: Thu Apr 14, 2011 1:26 am
by cvanoosbree
oooh, cheers for that. Seems I will have to modify that .ini file (assuming I still can even after twonky has been installed) then reboot or twonky restart of services for it to kick in. I will give that a shot tonight and report back if it worked or not
Cheers again
Re: DNS-323 & Multiple Volumes
Posted: Fri Apr 15, 2011 3:50 pm
by cvanoosbree
Hi Again,
I did try changing the ini file and it seems that it didnt work (below is what i modified it to be)
---
contentbase=/mnt
contentdir=+M|temp
---
I think contentdir needs changing but I have no clue as to what to change it to. Any recommendations?
Re: DNS-323 & Multiple Volumes
Posted: Fri Apr 15, 2011 4:41 pm
by PeeBee
In contentdir you put the folder path below the contentbase.
So if I had contentbase of /mnt/Disk1 and contentdir of Music and wanted to change the contentbase to /mnt then I would change the contentdir to Disk1/Music.
Change contentbase in the ini file then browse to the correct folder(s) from the Sharing page of the config web page. That will set up the contentdir parameters correctly.
PB
Re: DNS-323 & Multiple Volumes
Posted: Sat Apr 16, 2011 8:47 am
by cvanoosbree
Hi PB,
well, as I have two volumes
HD_a2
HD_b2
both volumes have a folder from /CONTENT/ or as below
/mnt/HD_a2/CONTENT1/
/mnt/HD_b2/CONTENT2/
so i modified the .ini file to the below
contentbase=/mnt
contentdir=/
but it seems that too does not work. any other ideas?
Re: DNS-323 & Multiple Volumes
Posted: Sat Apr 16, 2011 11:58 am
by cvanoosbree
in fact, it doing the above killed my nas. now its back to
contentbase=/mnt
contentdir=+M|temp
unsure where to go from here
Re: DNS-323 & Multiple Volumes
Posted: Sat Apr 16, 2011 5:50 pm
by parnott
cvanoosbree wrote:in fact, it doing the above killed my nas. now its back to
contentbase=/mnt
contentdir=+M|temp
unsure where to go from here
I think your problem is the contentdir setting. This has to contain a directory path from the contentbase parameter.
Looking at my settings (not a DNS-323 but another Linux based NAS) I believe your settings should be defined something like-
contentbase=/mnt
contentdir=+M|/HD_a2/Music/,+M|/HD_b2/Music/
However, if you get the contentbase correct then my experience has been that you can use the Web UI to configure the contentdir settings.
Re: DNS-323 & Multiple Volumes
Posted: Sun Apr 17, 2011 2:13 pm
by cvanoosbree
I am now trying the contentdir you had mentioned. Hopefully that helps.
I do understand what you are talking about in respect to contentbase and yours matches mine. I have always tried messing with the contentbase so the UI can see both volumes but for some reason it just will not.
I hope the recommendation of your config will help
contentbase=/mnt
contentdir=+M|/HD_a2/CONTENT/,+M|/HD_b2/CONTENT-b2/
Re: DNS-323 & Multiple Volumes
Posted: Sun Apr 17, 2011 2:54 pm
by cvanoosbree
Okay, I have rebooted the NAS and according to the STATUS page of twonky, it is still is only scanning the first HD_a2 volume (cataloging I think). And still, when you click on the SHARING link and try to put in correct folder paths for specific content type, only the first volume is showing up and I cannot choose / see the 2nd volume

Re: DNS-323 & Multiple Volumes
Posted: Sun Apr 17, 2011 3:14 pm
by PeeBee
From a web page put in http:\\<<ip-of-your-nas:port>>\rpc\get_option?contentbase and check that it is using /mnt as the contentbase.
In fact, post the results of http:\\<<ip-of-your-nas:port>>\rpc\get_option?contentbase and http:\\<<ip-of-your-nas:port>>\rpc\get_option?contentdir.
PB
Re: DNS-323 & Multiple Volumes
Posted: Sun Apr 17, 2011 5:51 pm
by parnott
Also login to DNS-323 with telnet or putty and post the ouput from the command-
# ls -alF /mnt
Re: DNS-323 & Multiple Volumes
Posted: Mon Apr 18, 2011 4:29 am
by cvanoosbree
Hmm... I will gladly do this, after I get off of work.. STAY TUNED!
Re: DNS-323 & Multiple Volumes
Posted: Mon Apr 18, 2011 2:16 pm
by cvanoosbree
http://192.168.0.30:9000/rpc/get_option?contentbase
/mnt/HD_a2/
http://192.168.0.30:9000/rpc/get_option?contentdir
+V|/CONTENT/MEDIA,+A|/CONTENT-b2
/ # ls -alF /mnt
drwxr-xr-x 7 root root 1024 Apr 17 23:21 ./
drwxr-xr-x 18 root root 1024 Apr 18 23:24 ../
drwxrwxrwx 10 root root 4096 Apr 17 23:13 HD_a2/
drwxrwxrwx 4 root root 1024 Apr 12 23:26 HD_a4/
drwxrwxrwx 11 root root 4096 Apr 18 23:21 HD_b2/
drwxrwxrwx 3 root root 1024 Apr 13 10:06 HD_b4/
drwxr-xr-x 2 root root 1024 Feb 16 2007 web_page/
/ #
I hope any of the above helps (please let it help)
Cheers
Re: DNS-323 & Multiple Volumes
Posted: Mon Apr 18, 2011 4:57 pm
by parnott
cvanoosbree wrote:http://192.168.0.30:9000/rpc/get_option?contentbase
/mnt/HD_a2/
http://192.168.0.30:9000/rpc/get_option?contentdir
+V|/CONTENT/MEDIA,+A|/CONTENT-b2
/ # ls -alF /mnt
drwxr-xr-x 7 root root 1024 Apr 17 23:21 ./
drwxr-xr-x 18 root root 1024 Apr 18 23:24 ../
drwxrwxrwx 10 root root 4096 Apr 17 23:13 HD_a2/
drwxrwxrwx 4 root root 1024 Apr 12 23:26 HD_a4/
drwxrwxrwx 11 root root 4096 Apr 18 23:21 HD_b2/
drwxrwxrwx 3 root root 1024 Apr 13 10:06 HD_b4/
drwxr-xr-x 2 root root 1024 Feb 16 2007 web_page/
/ #
I hope any of the above helps (please let it help)
Cheers
Your contentbase and contentdir parameters are not correct for what you want to achieve. What they are telling twonky to do is scan the following directories-
/mnt/HD_a2/CONTENT/MEDIA (for videos)
/mnt/
HD_a2/CONTENT-b2 (for music)
To tell twonky to scan-
/mnt/HD_a2/CONTENT/MEDIA (for videos)
/mnt/
HD_b2/CONTENT-b2 (for music)
then the values need to be-
contentbase=/mnt
contentdir=+V|/HD_a2/CONTENT/MEDIA,+A|/HD_b2/CONTENT-b2
Make these changes in the ini file then reboot. Then go and double check that these changes have been preserved in the ini file.
If the contentbase has reverted to /mnt/HD_a2/ then this is a different problem common to many NAS boxes. It means the twonky ini file is not preserved across reboots. To resolve this problem read through this web page-
http://wiki.dns323.info/howto:twonkyupnpserver
It has a lot of information on how to properly configure twonky to run on the DNS-323. In particular it details how to make sure important twonky directories and files are preserved after a reboot.
Re: DNS-323 & Multiple Volumes
Posted: Tue Apr 19, 2011 12:21 am
by cvanoosbree
Howdy,
Made the changes
http://192.168.0.30:9000/rpc/get_option?contentdir
+V|/CONTENT/MEDIA,+A|/CONTENT-b2
http://192.168.0.30:9000/rpc/get_option?contentbase
/mnt/HD_a2/
/ # vi /mnt/HD_a2/twonky/twonkymedia-server.ini
contentbase=/mnt
contentdir=+V|/HD_a2/CONTENT/MEDIA,+A|/HD_b2/CONTENT-b2,+V/HD_b2/CONTENT-b2
I dont get it. As you can tell, the ini saves fine, however, the GUI shows otherwise
and yes, i did do the steps in the site you gave me prior to even installing the server (as it had pre-steps)
Re: DNS-323 & Multiple Volumes
Posted: Tue Apr 19, 2011 3:35 am
by cvanoosbree
Question, could I not have the following?
contentbase=/mnt/HD_a2,/mnt/HD_b2
Would that work? Or will it just kill the server?
Re: DNS-323 & Multiple Volumes
Posted: Tue Apr 19, 2011 4:44 pm
by parnott
cvanoosbree wrote:/ # vi /mnt/HD_a2/twonky/twonkymedia-server.ini
contentbase=/mnt
contentdir=+V|/HD_a2/CONTENT/MEDIA,+A|/HD_b2/CONTENT-b2,+V/HD_b2/CONTENT-b2
I dont get it. As you can tell, the ini saves fine, however, the GUI shows otherwise
and yes, i did do the steps in the site you gave me prior to even installing the server (as it had pre-steps)
Maybe you are changing the wrong ini file. The one that has to be changed will be in the appdata directory. If you followed the instructions from here
http://wiki.dns323.info/howto:twonkyupnpserver then it should be in-
/mnt/HD_a2/twonky/appdata
Did you reboot after making the ini changes? If the ini changes are no longer present after a reboot, then something in the startup script is overwriting the changes.
cvanoosbree wrote:Question, could I not have the following?
contentbase=/mnt/HD_a2,/mnt/HD_b2
Would that work? Or will it just kill the server?
No. There can only be one directory in contentbase.
Re: DNS-323 & Multiple Volumes
Posted: Wed Apr 20, 2011 2:34 am
by cvanoosbree
Hi Parnott,
Well, from my frustration last night I had uninstalled the server and then re-installed it. When twonky started backup, the settings had remained the same so I realized that not all files were removed on the uninstall. Figured what additional directories to delete and re-installed it again BUT this time, I played with the twonky-server-default.ini which from what I can tell, is used to create the actual twonky-server.ini file. I realized that the default file (and the one listed in the wiki) both had "contentbase=/mnt/HD_a2/". Changed it to only be /mnt/ and left contentdir to be "contentdir=+M|temp" then did the install. Somehow, that worked. Twonky is now operational, I can see both volumes within the GUI and it did its scanning on both volumes as well (then tested it when I woke up this morning).
I am a happy camper. I have a hunch you could be correct in respect to me modifying the wrong ini file, however, that was the only ini file I had ever modified. During the modifications and restarts, the GUI (DID change (
http://192.168.0.30:9000/rpc/get_option?contentbase
))) but the GUI stopped changing after so many modifications of that ini. It is possible (IMO) that once I put incorrect perams in that ini file, twonky stops looking and just used previous working version and then never looked at future modifications. Again, this is speculation, but would also sound theoretically correct based on the events
Again, thanks for all whom have assisted me in this endeavour and I hope my experience (if someone is trying to do the same) will find this useful
Cheers
Re: DNS-323 & Multiple Volumes
Posted: Wed Apr 20, 2011 3:47 am
by parnott
Glad it is now working for you.