You are not logged in.

#1 2012-10-27 11:23:27

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,732
Website

NFS cannot find mount [SOLVED]

Can't seem to mount via NFS anymore.

% sudo mount -t nfs4 aa:/data /mnt/aa_data         
mount.nfs4: No such device

However the server is severing up the correct mounts per showmount:

% showmount -e aa
Export list for aa:
/srv/nfs4/backup 192.168.0.0/24
/srv/nfs4/data   192.168.0.0/24
/srv/nfs4        192.168.0.0/24

I do have both nfsd.service and rpc-idmapd.service running successfully on my client.  At a loss to explain the lack of functionality.

Last edited by graysky (2012-10-30 20:24:38)

Offline

#2 2012-10-30 12:54:41

axs
Member
Registered: 2009-01-23
Posts: 71
Website

Re: NFS cannot find mount [SOLVED]

Offline

#3 2012-10-30 14:51:10

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,542

Re: NFS cannot find mount [SOLVED]

I try to use IP addresses where available instead of hostnames. 
It also has to do with the fact that the entire share name has to be used in the mount command.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#4 2012-10-30 15:02:50

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: NFS cannot find mount [SOLVED]

This is nfsv4, nomorewindows, so that no longer applies.

graysky, can you post /etc/exports from the server?

Offline

#5 2012-10-30 20:10:47

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,732
Website

Re: NFS cannot find mount [SOLVED]

@axs - No, the module is loaded.

% lsmod | grep nfsd
nfsd                  242539  0 
auth_rpcgss            32222  1 nfsd
nfs_acl                 2359  1 nfsd
lockd                  64840  2 nfs,nfsd
sunrpc                185867  5 nfs,nfsd,auth_rpcgss,lockd,nfs_acl

@tomk - Sure can:

% cat /etc/exports
/srv/nfs4					192.168.0.0/24(ro,fsid=0,no_subtree_check,async,insecure)
/srv/nfs4/data		192.168.0.0/24(rw,no_subtree_check,async,nohide,insecure,no_root_squash)
/srv/nfs4/backup	192.168.0.0/24(rw,no_subtree_check,async,nohide,insecure,no_root_squash)

Offline

#6 2012-10-30 20:25:59

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,732
Website

Re: NFS cannot find mount [SOLVED]

For some reason the nfsv4 module was not loaded.  Added it to my /etc/modules-load.d/load_these.conf and everything is fine... shouldn't the nfsd.service load these for me?

Last edited by graysky (2012-10-30 20:26:26)

Offline

#7 2012-10-30 21:45:13

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: NFS cannot find mount [SOLVED]

I have nfsv4 loaded on the client only, everything works as expected. nfsd.service runs on the server.

Offline

#8 2012-10-30 21:48:25

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,732
Website

Re: NFS cannot find mount [SOLVED]

Really?  No rpc-idmapd.service on the client either?

Offline

#9 2012-10-31 00:34:01

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: NFS cannot find mount [SOLVED]

Not here, no.

Offline

Board footer

Powered by FluxBB