NFS Issue - Two almost identical fstab lines, one works the other does not
Linux - NewbieThis 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.
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.
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
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
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.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
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?
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
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.
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.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.