You are not logged in.

#1 2015-07-24 01:07:05

twhayes
Member
Registered: 2007-10-09
Posts: 27

[SOLVED] Can't mount nfs share

I'm trying to mount an nfs share using this mount command and keep getting the following error:

sudo mount -v -t nfs4 wind_server:/srv/nfs4 /nfs/wind   

                         

mount.nfs4: timeout set for Thu Jul 23 21:00:46 2015
mount.nfs4: trying text-based options 'vers=4.2,addr=192.168.1.177,clientaddr=192.168.1.151'
mount.nfs4: mount(2): Protocol not supported
mount.nfs4: trying text-based options 'vers=4.1,addr=192.168.1.177,clientaddr=192.168.1.151'
mount.nfs4: mount(2): Protocol not supported
mount.nfs4: trying text-based options 'vers=4.0,addr=192.168.1.177,clientaddr=192.168.1.151'
mount.nfs4: mount(2): Protocol not supported
mount.nfs4: trying text-based options 'addr=192.168.1.177'
mount.nfs4: prog 100003, trying vers=3, prot=6
mount.nfs4: trying 192.168.1.177 prog 100003 vers 3 prot TCP port 2049
mount.nfs4: portmap query retrying: RPC: Program/version mismatch
mount.nfs4: prog 100003, trying vers=3, prot=17
mount.nfs4: trying 192.168.1.177 prog 100003 vers 3 prot UDP port 2049
mount.nfs4: portmap query failed: RPC: Program/version mismatch
mount.nfs4: Protocol not supported 

Output of showmount -e for the server is:

showmount -e wind_server 

Export list for wind_server:

/srv/nfs4/mnt/Cavalry/Backup 192.168.1.0/24
/srv/nfs4/mnt                192.168.1.0/24
/srv/nfs4/home               192.168.1.0/24
/srv/nfs4                    192.168.1.0/24 

Would appreciate any thoughts on what I'm doing wrong or how to troubleshoot.

Last edited by twhayes (2015-08-08 10:10:56)

Offline

#2 2015-08-04 14:06:37

Painless
Member
Registered: 2006-02-06
Posts: 233

Re: [SOLVED] Can't mount nfs share

Hi,

Please show the output (on your NFS server) of the following command:

rpcinfo | egrep "service|nfs"

Offline

#3 2015-08-04 18:29:11

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] Can't mount nfs share

With NFS4 you probably need to work off the export root:

$ showmount -e 199.200.1.110
/srv/nfs4/pub 199.200.1.0/24
/srv/nfs4/bin 199.200.1.0/24
/srv/nfs4     199.200.1.0/24
$ sudo mount -vt nfs4 199.200.1.110:bin /mnt/test
mount.nfs4: timeout set for Tue Aug  4 14:26:18 2015
mount.nfs4: trying text-based options 'vers=4.2,addr=199.200.1.110,clientaddr=199.200.1.140'
$ ls /mnt/test
<stuff in the bin export>

Edit: Also, how have you been around since '07 but not use code tags!?! yikes

Last edited by alphaniner (2015-08-04 19:17:05)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#4 2015-08-06 09:07:55

twhayes
Member
Registered: 2007-10-09
Posts: 27

Re: [SOLVED] Can't mount nfs share

Painless wrote:

Hi,

Please show the output (on your NFS server) of the following command:

rpcinfo | egrep "service|nfs"

Results from server:

rpcinfo | egrep "service|nfs"                                                                                       
   program version netid     address                service    owner
    100003    3    tcp       0.0.0.0.8.1            nfs        superuser
    100003    4    tcp       0.0.0.0.8.1            nfs        superuser
    100227    3    tcp       0.0.0.0.8.1            nfs_acl    superuser
    100003    3    udp       0.0.0.0.8.1            nfs        superuser
    100003    4    udp       0.0.0.0.8.1            nfs        superuser
    100227    3    udp       0.0.0.0.8.1            nfs_acl    superuser
    100003    3    tcp6      ::.8.1                 nfs        superuser
    100003    4    tcp6      ::.8.1                 nfs        superuser
    100227    3    tcp6      ::.8.1                 nfs_acl    superuser
    100003    3    udp6      ::.8.1                 nfs        superuser
    100003    4    udp6      ::.8.1                 nfs        superuser

Offline

#5 2015-08-07 21:17:58

Painless
Member
Registered: 2006-02-06
Posts: 233

Re: [SOLVED] Can't mount nfs share

If you're trying to mount the root NFS dir, try:

sudo mount -v -t nfs4 wind_server:/ /nfs/wind

Offline

#6 2015-08-08 10:06:29

twhayes
Member
Registered: 2007-10-09
Posts: 27

Re: [SOLVED] Can't mount nfs share

That statement

 sudo mount -vt nfs4 wind_server:/ /nfs/wind 

works!

The problem was how I defined the nfs root. In previous attempts to mount, I was using

 sudo mount -vt nfs4 wind_server:/srv/nfs4/ /nfs/wind 

based on the showmount results, but that was clearly wrong.

Will mark this one solved. Thanks, Painless and alphaniner.

Offline

Board footer

Powered by FluxBB