Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-24-2017, 03:40 PM
|
#1
|
LQ Newbie
Registered: Jun 2005
Distribution: FE4
Posts: 12
Rep:
|
NFS Issue - Two almost identical fstab lines, one works the other does not
Hi. Long time lurker here. I know enough about Linux to use it for what I need in general, though now with a bit more money to experiment, I have been getting back into it (I am professional systems analyst who deals with windows applications and VMware virtualization.
So I set up a home Xpenology server.
Set up a Plex server in an Ubuntu Server VM.
Successfully mapped the main media share to the Plex vm, no problems, works beautifully.
So I got to add a drive into the Xpenology server to share around my home network as a junk/storage/scratch drive. Nice use for an old 1TB WD blue drive that is still trucking along...
And I get flummoxed. I can access it from windows in seconds.
I can browse to it through both the Ubuntu network browser and the Linux mint network browser (I am most comforable in mint, it reminds of me of OS/2 UI which I loved, but Plex gives explicit instructions for Ubuntu).
In both Ubuntu (16.04) I have the following 2 lines in fstab. The first one works to mount the Xpenology media share. The second returns
mount.nfs an incorrect mount option was specified
10.0.0.9:/volume1/Media /mnt/nfs/xpenology nfs username=myusername,password=mypassword,gid=1000,uid=1000,iocharset=utf8,sec=ntlm 0 0
10.0.0.6:/volume1/Junk_Drive /mnt/nfs/Junk nfs username=myusername,password=mypassword,gid=1000,uid=1000,iocharset=utf8,sec=ntlm 0 0
My Xpenology server has 4 network cards. I dedicated x.x.x.9 to the plex media share
10.0.0.6 is for the Junk share.
NFS is set up correctly in Xpenology. With a rule for the client based on IP. Both shares are set up identically in terms of permissions.
I have no idea why I am getting that message for only the second drive
Any help is appreciated. I have been goggling for 2 days on. I am trying to avoid just doing it the lazy way through samba/cifs which I know works.
|
|
|
09-24-2017, 04:23 PM
|
#2
|
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
|
I have never used NFS over 2 interfaces on one server, so this is a long shot.
Since the connection to 10.0.0.9 succeeds, what happens if you change the second (junk_Drive) to 10.0.0.9 as well. Since this is the same subnet it should work right away. The only difference being using the same NIC for Media and for Junk_Drive.
If this fails as well, think about permissions on you shared drive, export options...
If it is successful it tells you there is something with the IP. I am not sure one NFS server can serve over 2 NICs.
jlinkels
|
|
|
09-24-2017, 04:37 PM
|
#3
|
LQ Newbie
Registered: Jun 2005
Distribution: FE4
Posts: 12
Original Poster
Rep:
|
I just tried that again, it was one of the first things that I experimented with.
No go.
|
|
|
09-24-2017, 04:46 PM
|
#4
|
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
|
OK. Did you try to mount Junk_Drive from the command line? Without any options. Stupid question, but does /mnt/nfs/Junk actually exist. No stupid mistake like naming it differently. Did you try to mount Junk_Drive to another mount point?
The error message "wrong option" is not always correct. (Or we humans think it is not an option. Don't stick too much to the option thing)
You have checked /var/log/messages and /var/log/syslog on the nfs server?
jlinkels
|
|
|
09-24-2017, 05:00 PM
|
#5
|
LQ Newbie
Registered: Jun 2005
Distribution: FE4
Posts: 12
Original Poster
Rep:
|
yes the mounting location exists.
yeah, mounting it manually with
mount -t nfs 10.0.0.6:/volume2/Junk_drive /mnt/nfs/Junk -o async
mounts it
|
|
|
09-24-2017, 06:33 PM
|
#6
|
LQ Newbie
Registered: Jun 2005
Distribution: FE4
Posts: 12
Original Poster
Rep:
|
Hilariously, once I executed the command line mount on a LM vm, which mounted it, and then immediately did the sudo mount -a
it executed without error.
It did not stick on reboot however.
|
|
|
09-25-2017, 02:21 AM
|
#7
|
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
|
That is a large step forward. It looks like a timing problem. Not in measurement of time, but in measurement of other processes which must be running before nfs client can mount.
This is in contradiction with the mounting of 10.0.0.9 which is successful and to the same server. Which is strange.
You can try to postpone the nfs mounting until the last process has started during boot. If you do that, you have to find out the last process which is starting, and make nfs mounting dependent on that.
No idea if that is useful, because it is mighty strange that 10.0.0.9 does mount.
Anyway, see this to see what I mean: https://www.linuxquestions.org/quest...2/#post5757529
jlinkels
|
|
|
09-25-2017, 02:45 AM
|
#8
|
LQ Newbie
Registered: Jun 2005
Distribution: FE4
Posts: 12
Original Poster
Rep:
|
Thanks so far.
I am not touching the line that mounts my media drive in the plex server until I know more about this.
I have been trying to get it to mount by itself on the Linux mint vm as a I said.
As a work around until I can get a solution, I have mounted it via cifs
I need to continue this shift of all online storage to my storage server. Its funny, I can access and even mount the drive, every which way but the idea one for it. And the one that would be most convenient for what I am doing on some of the vms.
|
|
|
09-25-2017, 12:18 PM
|
#9
|
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
|
It is weird. On my main computer I see this as well sometimes after a reboot. But since I reboot less than once every three months I don't see it very often. After the desktop is active I can do mount -a and then everything is mounted.
Even stranger, to other desktop computers (running Mint and Debian) never fail to mount. Fstab is identical. Server is identical.
The computer running Mint has identical hardware as mine. The Debian machine has different hardware but the same Debian as mine.
Summarizing, I don't see any correlation. Anywhere.
jlinkels
|
|
|
All times are GMT -5. The time now is 03:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|