Page 1 of 1

NFS Mounting

Posted: Sun Aug 23, 2009 5:44 am
by SirElmo
I am trying to mount several NFS shares and I am having problems finding the correct way of doing this. I was able to successfully connect one share using the MM_MEDIA_GENERIC_LIST, but was unable to add the additional shares using this format. So I tried using the mount_url function in the minimyth.pm file, but I keep getting an undefined subroutine error with that one. I have search the documents and these forums and haven't been able to find anything about using them. Can anyone help me figure out the problem here?

Re: NFS Mounting

Posted: Sun Aug 23, 2009 10:43 pm
by SirElmo
I was able to get this working by searching some of the source code. Turns out the documentation needs to be updated. Minimyth Documentation states:
Second, there is a MiniMyth.pm function called 'Minimyth::mount_url' that you might find useful.
This does not seem correct. The correct function name is

Code: Select all

$minimyth->url_mount(url,Mount point)
Using the correct function resolved the issue.

But instead of having to create this .pm file, I would still like to see the correct formatting of multiple mount points for the MM_MEDIA_GENERIC_LIST value. This way I can keep all configurations in one file.

Re: NFS Mounting

Posted: Thu Aug 27, 2009 11:02 pm
by Pablo
The documentation has been fixed.

What problem are you encountering using MM_MEDIA_GENERIC_LIST?

Re: NFS Mounting

Posted: Fri Aug 28, 2009 12:10 am
by SirElmo
Pablo wrote:What problem are you encountering using MM_MEDIA_GENERIC_LIST?
When I try putting multiple space separated shares on the line, as indicated in the documentation, only the first one is mounted.

Re: NFS Mounting

Posted: Fri Aug 28, 2009 3:01 am
by Pablo
I am not having this problem. Could you post your variable?

Re: NFS Mounting

Posted: Fri Aug 28, 2009 3:39 am
by SirElmo
Pablo wrote:I am not having this problem. Could you post your variable?
This is the one that worked:

Code: Select all

MM_MEDIA_GENERIC_LIST=/MythMedia2=nfs://192.168.0.150/MythMedia2
I tried the following:

Code: Select all

MM_MEDIA_GENERIC_LIST=/MythMedia2=nfs://192.168.0.150/MythMedia2 /MythMedia3=nfs://192.168.0.150/MythMedia3
MM_MEDIA_GENERIC_LIST="/MythMedia2=nfs://192.168.0.150/MythMedia2" "/MythMedia3=nfs://192.168.0.150/MythMedia3"
What just came to mind when you asked and that I didn't try was:

Code: Select all

MM_MEDIA_GENERIC_LIST="/MythMedia2=nfs://192.168.0.150/MythMedia2 /MythMedia3=nfs://192.168.0.150/MythMedia3"
That seemed to have done the trick. An example for this one would have been helpful.

Thanks.

Re: NFS Mounting

Posted: Fri Aug 28, 2009 4:26 am
by Pablo
I am glad you got it working. As you discovered, you should be enclosing variable values in quotes (because they are shell variables). I believe this is covered in the general section of the minimyth.conf documentation.

Re: NFS Mounting

Posted: Fri Aug 28, 2009 4:45 am
by SirElmo
Pablo wrote:I am glad you got it working. As you discovered, you should be enclosing variable values in quotes (because they are shell variables). I believe this is covered in the general section of the minimyth.conf documentation.
Yes it does. It states:

Code: Select all

{variable-name}='{variable-value}' 
But it doesn't describe how you should put two of them on one line.

Re: NFS Mounting

Posted: Fri Aug 28, 2009 4:17 pm
by Pablo
SirElmo wrote:
Pablo wrote:I am glad you got it working. As you discovered, you should be enclosing variable values in quotes (because they are shell variables). I believe this is covered in the general section of the minimyth.conf documentation.
Yes it does. It states:

Code: Select all

{variable-name}='{variable-value}' 
But it doesn't describe how you should put two of them on one line.
There is only one variable-name and one variable-value. The fact that the variable-value is a list does not change that.

Re: NFS Mounting

Posted: Sat Aug 29, 2009 12:36 am
by SirElmo
Pablo wrote:There is only one variable-name and one variable-value. The fact that the variable-value is a list does not change that.
Yes. But a simple example would be very helpful in preventing this type of misunderstanding, especially since the variable-value contains and equal sign and I confused the variable-name part to be the NFS mount point.

Re: NFS Mounting

Posted: Sat Aug 29, 2009 2:46 pm
by Pablo
Done.

Re: NFS Mounting

Posted: Sat Aug 29, 2009 3:36 pm
by SirElmo
Thanks. And thanks for all the hard work you have done with this project. I know putting up with jerks like me isn't easy. :)

Re: NFS Mounting

Posted: Sat Aug 29, 2009 4:47 pm
by Pablo
SirElmo wrote:Thanks. And thanks for all the hard work you have done with this project. I know putting up with jerks like me isn't easy. :)
Actually, thank you.

I appreciate people that identify and spend the time to help troubleshoot problems. Whether the issue is with MiniMyth's binaries, source or documentation, having the help of others with different frontend hardware, usage models, build hosts and points of view makes MiniMyth better for everyone.