[haiku] Re: NFS issue

  • From: Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
  • To: "haiku@xxxxxxxxxxxxx" <haiku@xxxxxxxxxxxxx>
  • Date: Fri, 18 Mar 2016 10:24:05 +1300

On 18 March 2016 at 04:52, Glenn Holmer <shadowm@xxxxxxxxxxxx> wrote:

On 02/02/2016 01:09 PM, François Revol wrote:
On 01/02/2016 15:23, Glenn Holmer wrote:
I have an interesting NFS issue: my main desktop machine normally runs
Fedora Linux, and I have a second test machine with Haiku installed (on
bare metal). Both of these machines have several operating systems on them.

If I try to mount an NFS export from Haiku on the test machine with the
main machine as the server, there's a long pause followed by "mount
failed (No route to host)". I can, however, ping greyhand from Haiku.
The command line is:

mount_nfs greyhand:/mnt/common gcommon 1002 10002

Now interestingly, if I reboot the main machine to Ubuntu Studio (which
is Debian-based), the NFS mount from Haiku works just fine. Also, with
the main machine running Fedora and the test machine running any of
several Linux flavors, the NFS mount works as well.

Anybody have any ideas why this particular combination (Fedora 23 as NFS
server and Haiku as NFS client) isn't working for me? The entry in the
exports file is the same for both Fedora and Ubuntu Studio:

/mnt/common 192.168.1.0/24(rw,sync,no_root_squash,no_subtree_check)

You will want to try using NFS4 instead, mount_nfs is only for the
antique NFS2 client.

You need to use mount -t nfs4 but I don't remember the exact syntax.

~> mount -t nfs4 greyhand:/mnt/common gcommon
mount: No such file or directory

~> mount greyhand:/mnt/common gcommon
mount: No such file or directory

~> man mount
No manual entry for mount

What does he mean by "No such file or directory"? ./gcommon (in current
directory, /boot/home) exists.

The nfs4 mount command uses quite an odd syntax :p You want something
along the lines of `mount -t nfs4 -p "server_address:path flags"
directory`

See 
https://www.haiku-os.org/blog/pawe%C5%82_dziepak/2013-03-15_nfsv4_client_finally_merged
for all the details.

Yes, I have to search for the syntax every single time I want to try
use NFS4, which is sadly still very buggy in my experience.

Other related posts: