LinHES Forums http://forums.linhes.org/ |
|
Storage groups / video location question http://forums.linhes.org/viewtopic.php?f=21&t=23775 |
Page 1 of 2 |
Author: | tophee [ Thu Jun 20, 2013 1:33 pm ] |
Post subject: | Storage groups / video location question |
The power of google seems to be failing me on this one, but I am trying to set up mythvideo to look at my nas for my movie collection. I don't seem to be able to work out the correct way of doing this. Any pointers? I am sure it is a case of just pointing myth at the nas address, or something, but as of yet I have to work out how to do this. Should I mount the nas location in a folder in myth/video? Some guidance would be great. Cheers in advance C |
Author: | RacerX [ Thu Jun 20, 2013 2:06 pm ] |
Post subject: | Re: Storage groups / video location question |
If you run myth-setup you will see storage groups. The default storage group is called "default". All you have to do it change the path for /myth/video. Obviously just make sure the drive is mounted. For example I changed it to the path because I have a small boot drive to /myth2/video Keep in mind that I would change the path of metadata, posters, screen shots, etc to be consistent. |
Author: | jams [ Thu Jun 20, 2013 10:07 pm ] |
Post subject: | Re: Storage groups / video location question |
Heres how I would do it. Access the fileshares service menu and enable central NFS server (This might be easier using the VNC version of the service menu). If you want remote frontends to also mount the NFS shares then check "All hosts use this share" Adjust nfs server and mount point as required (/data/storage/central_nfs is one of the mount points I use). When finished with this screen it will adjust fstab, create the mount dir and attempt to mount the nfs share. Next edit the storage dir list for Videos and add the new mountpoint of the videos. I would advise against mounting it under the current mythvideo dir because it can become confusing keeping it straight and also if the parent dir doesn't mount correctly then the NFS share may also not mount. Adding the new location for metadata is also a good idea but not required. |
Author: | tophee [ Fri Jun 21, 2013 8:26 am ] |
Post subject: | Re: Storage groups / video location question |
Hi Jams, That sounds like a good way to do it. My server is FreeNAS 8, and it has an NFS share set... I will have a go following your instructions. I will post back and let you know. Thanks. |
Author: | tophee [ Sat Jun 22, 2013 10:19 am ] |
Post subject: | Re: Storage groups / video location question |
Hi Jams, That worked awesomely. The only snag I ran into is not getting the path to the nfs right first time. But once I realised I'd typed that incorrectly it just worked. Thank you very much Chris |
Author: | tophee [ Sat Jun 22, 2013 2:37 pm ] |
Post subject: | Re: Storage groups / video location question |
Oh how irritating.... I got it to work, and instead of updating the metadata I accidentally pressed scan for changes rather than Retrieve all details. And I seem to have lost my videos again. I am guessing that I am no longer mounting the server directory. I've tried to recreate the share. I've turned everything off and it still wont come up. I will try again again tomorrow. Bah. If anyone has any suggestions on why this has lost its connection and is not remounting the volume, I'd like to know. Very irritating. |
Author: | jams [ Sat Jun 22, 2013 3:11 pm ] |
Post subject: | Re: Storage groups / video location question |
check that it's still in /etc/fstab, and try to mount the dir manually. If it doesn't mount using the mount command then figure that bit out. If it does mount using the mount commad, then check that the netfs service is in the boot list. It will be down as it only runs once, but it does need to be in the service list. |
Author: | RacerX [ Sat Jun 22, 2013 4:33 pm ] |
Post subject: | Re: Storage groups / video location question |
Also try Code: cat /etc/hosts/ make sure both both ip addresses are listed in the host file of each machine |
Author: | tophee [ Sun Jun 23, 2013 12:59 pm ] |
Post subject: | Re: Storage groups / video location question |
Hi, It is definitely in fstab. I don't seem to be able to mount the location. I bet a message saying connection refused, which is odd as I've set the freenas box to accept connections from my linhes box ip address of the linhes box is static. Manually trying to mount my the location of my movies I used the command: sudo mount -t nfs 192.168.0.2:/Video /data/storage/central_nfs I get back Code: mount.nfs: access denied by server while mounting 192.168.0.2:/Video Any ideas? Thanks |
Author: | RacerX [ Sun Jun 23, 2013 1:42 pm ] |
Post subject: | Re: Storage groups / video location question |
I think the problem is in the exports file on your Free Nas Server Add this in and restart /Video 192.168.0.2/24 (rw,sync,no_subtree_check) |
Author: | tophee [ Sun Jun 23, 2013 3:13 pm ] |
Post subject: | Re: Storage groups / video location question |
Hi RacerX, Where do I insert this? In my /etc/fstab or on the freenas box? thanks |
Author: | RacerX [ Sun Jun 23, 2013 3:41 pm ] |
Post subject: | Re: Storage groups / video location question |
Try this on the freenas box nano /etc/exports /Video 192.168.0.2/24 (rw,sync,no_subtree_check) |
Author: | tophee [ Mon Jun 24, 2013 3:22 pm ] |
Post subject: | Re: Storage groups / video location question |
Hi RacerX and Jams, I think the problem was something corrupted the nfs server on the freenas box. I couldn't mount anything via nfs. I ran an upgrade to the latest version of version 8 and I was able to mount the drive from the command line using this: mount 192.168.0.2:/mnt/Server/Video /data/storage/central_nfs Just need to check it is persistent and survives reboots. I'll check that shortly and post back. |
Author: | tophee [ Wed Jun 26, 2013 3:16 pm ] |
Post subject: | Re: Storage groups / video location question |
So I can now mount my videos files to my mythbox, but I have to do it manually. my /etc/fstab has this entry: Code: 192.168.0.2:/mnt/Server/Video /data/storage/central_nfs nfs hard,intr,actimeo=0 Any ideas? |
Author: | jams [ Wed Jun 26, 2013 3:20 pm ] |
Post subject: | Re: Storage groups / video location question |
what does "sv status netfs" return? |
Page 1 of 2 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |