2

I am trying to mount a share located on Server1 using NFSv4, instead of NFSv3. The host server is running RHEL 5.1 (don't ask), and the client is running RHEL 7.3. I am able to mount it using NFSv3 without problems, but I am doing a ton of file moving daily with small files, and I think performance would improve significantly if I used NFSv4.

I am running the following command:

mount -v -type nfs4 server1:/export/foo /nfsmnt/foo

And I get:

mount(2): Input/output error
mount system call failed

If I do

mount -v -type nfs -o nfsvers=3 server1:/export/foo /nfsmnt/foo

It works just fine.

I have confirmed that NFSv4 is supported on both client and server, using rpcinfo -p. The firewall is currently turned off on both.

Cliff
  • 171
  • 1
  • 7

2 Answers2

2

When you have an older NFS server, it sometimes helps to use nolock on a mount:

mount -v -type nfs4 -o nolock server1:/export/foo /nfsmnt/foo
devopsfun
  • 123
  • 5
  • I tried this by itself, and also in conjunction with @Godvil's comment. Neither method worked. – Cliff Sep 22 '17 at 14:23
2

Try using mount like this for more compability:

mount -v -type nfs -o vers=4,proto=tcp server1:/export/foo /nfsmnt/foo
Godvil
  • 21
  • 1
  • I tried this by itself, and also in conjunction with @kristtian's comment. Neither method worked. – Cliff Sep 22 '17 at 14:23
  • Please try `mount` with `-vvv` argument for full verbosity and post the output here. You could also check your `/var/log/messages` log for more infos! – Godvil Sep 25 '17 at 13:09