NFS version 2 will not mount with Centos 7

Issues related to applications and software problems
Post Reply
HPtarget
Posts: 2
Joined: 2017/04/19 18:25:04

NFS version 2 will not mount with Centos 7

Post by HPtarget » 2017/04/21 17:26:40

I am trying to mount a NFS with Centos 7 and the location of the files is on a HPunix 10.2.

$ rpcinfo -p owl|grep nfs
100003 2 udp 2049 nfs
150001 1 udp 754 pcnfsd
150001 2 udp 754 pcnfsd
150001 1 tcp 757 pcnfsd
150001 2 tcp 757 pcnfsd

This was the HPUNIX nfs information, and the Centos 7 is the following:

$ rpcinfo -p |grep nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 3 tcp 2049 nfs_acl
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 3 udp 2049 nfs_acl

$ sudo mount -t nfs -v -osoft,rw,vers=2 hpunixl:/var/serverdir mydir/
mount.nfs: timeout set for Fri Apr 21 10:26:32 2017
mount.nfs: trying text-based options 'soft,vers=2,addr=10.1.40.21'
mount.nfs: prog 100003, trying vers=2, prot=6
mount.nfs: portmap query retrying: RPC: Program not registered
mount.nfs: prog 100003, trying vers=2, prot=17
mount.nfs: trying 10.1.40.21 prog 100003 vers 2 prot UDP port 2049
mount.nfs: prog 100005, trying vers=1, prot=17
mount.nfs: trying 10.1.40.21 prog 100005 vers 1 prot UDP port 728
mount.nfs: mount(2): Protocol not supported
mount.nfs: Protocol not supported

It seems almost like Centos 7 does not support NFS version 2 but the man pages implies is does. I am lost on this I have tried going on line and checking but it seems Centos 6 works but 7 does not.

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: NFS version 2 will not mount with Centos 7

Post by hunter86_bg » 2017/04/22 11:25:10

Red Hat Enterprise Linux 7 supports NFSv3, NFSv4.0, and NVSv4.1 clients. NFS clients
attempt to mount using NFSv4.0 by default, and fall back to NFSv3 if the mount
operation is not successful. NOTE NFS version 2 (NFSv2) is no longer supported by Red Hat
Source :Storage Guide

HPtarget
Posts: 2
Joined: 2017/04/19 18:25:04

Re: NFS version 2 will not mount with Centos 7

Post by HPtarget » 2017/04/24 16:56:16

Thank you,

Is there an recommended Centos version I can down load to get support for NFS version 2?

Or is there something similar I can use as in some type of permanent ftp mount?

Regards,

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: NFS version 2 will not mount with Centos 7

Post by TrevorH » 2017/04/24 17:17:44

The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply