Fedora Linux Support Community & Resources Center
  #1  
Old 4th January 2012, 10:00 PM
geoffleach Offline
Registered User
 
Join Date: Feb 2004
Location: Mountain Ranch, CA, USA
Posts: 13
linuxfirefox
Question Fedora 16 unable to mount NFS from client

The problem is that I'm unable to mount an NFS4-exported filesystem on
the client. Initially, the server rejected the NFS request. Now, RPC
is rejecting the connection.

Two X86 32-bit PCs, connected via wireless wlan0. Kernel on both systems
is 3.1.6-1.fc16.i686.PAE Connection is managed by NetworkManager.

Both systems are running an up-to-date Fedora 16. Rebooting does not
change the problem.

I would appreciate inshight as to what is happening.
As I'm reliably informed that a for all intents and purposes configuration
is working, I have to assume that it's something that I've done. But what?

===============

Detail.

First the setup.

Server:

% cat /etc/exports
/nfs4exports 192.168.0.0/24(ro,sync,insecure,root_squash,no_subtree_checck, fsid=0)
/nfs4exports/home 192.168.0.0/24(rw,nohide,sync,insecure,root_squash,no_subrree_ check)

% ls -ld /nfs4exports/ /nfs4exports/*
drwxrwxrwt 5 root root 4096 Dec 31 15:34 /nfs4exports//
drwxrwxrwt. 6 root root 4096 May 18 2011 /nfs4exports/home/

root@mtranch[148]->systemctl -a |grep nfs
nfs4exports-home.mount loaded active mounted /nfs4exports/home
proc-fs-nfsd.mount loaded active mounted RPC Pipe File System
nfs-idmap.service loaded active running NFSv4 ID-name mapping daemon
nfs-lock.service loaded active running NFS filelocking service.
nfs-server.service loaded active running NFS Server

Client:

geoff@pvr[1]->systemctl -a |grep nfs
nfs-idmap.service loaded active running NFSv4 ID-name mapping d
nfs-lock.service loaded active running NFS file locking servic

firewall is disabled on both systems.

Here's what happened first -- when the NFS connection was rejected

# mount -t nfs4 mtranch:/nfs4exports/home /mtranch-home
mount.nfs: access denied by server while mounting mtranch:/nfs4exports/home

Debug:

# sysctl -w sunrpc.nfs_debug=1023
# mount -t nfs4 mtranch:/home /mtranch-home
# dmesg ( Error 13 is: Permission denied )

[ 9772.530553] --> nfs4_create_server()
[ 9772.530567] --> nfs4_init_server()
[ 9772.530568] --> nfs4_set_client()
[ 9772.530570] --> nfs_get_client(mtranch,v4)
[ 9772.532498] NFS: Callback listener port = 54051 (af 2)
[ 9772.532509] NFS: Callback listener port = 34833 (af 10)
[ 9772.532549] --> nfs_get_client() = f2337a00 [new]
[ 9772.532551] <-- nfs4_set_client() = 0 [new f2337a00]
[ 9772.532561] <-- nfs4_init_server() = 0
[ 9772.532564] --> nfs4_get_rootfh()
[ 9772.532569] encode_compound: tag=
[ 9772.533339] encode_compound: tag=
[ 9772.533945] encode_compound: tag=
[ 9772.533966] encode_compound: tag=
[ 9772.534696] encode_compound: tag=
[ 9772.535725] encode_compound: tag=
[ 9772.536449] encode_compound: tag=
[ 9775.536039] encode_compound: tag=
[ 9775.537400] encode_compound: tag=
[ 9775.539288] nfs4_get_rootfh: getroot error = 13
[ 9775.539291] <-- nfs4_get_rootfh() = -13
[ 9775.539293] --> nfs_free_server()
[ 9775.539340] --> nfs_put_client({1})
[ 9775.539343] --> nfs_free_client(4)
[ 9775.539449] <-- nfs_free_client()
[ 9775.539457] <-- nfs_free_server()
[ 9775.539459] <-- nfs4_create_server() = error -13
[ 9775.539463] <-- nfs4_mount() = -13 [error]

Rejection from RPC

dmesg after mount; mount is looping
111 is (supprise!) Connection refused

[ 1498.776618] --> nfs4_create_server()
[ 1498.776631] --> nfs4_init_server()
[ 1498.776633] --> nfs4_set_client()
[ 1498.776634] --> nfs_get_client(mtranch,v4)
[ 1498.776738] nfs_create_rpc_client: cannot create RPC client. Error = -111
[ 1498.776740] <-- nfs4_init_client() = xerror -111
[ 1498.776742] --> nfs_put_client({1})
[ 1498.776743] --> nfs_free_client(4)
[ 1498.776745] <-- nfs_free_client()
[ 1498.776747] <-- nfs4_set_client() = xerror -111
[ 1498.776748] <-- nfs4_init_server() = -111
[ 1498.776749] --> nfs_free_server()
[ 1498.779070] <-- nfs_free_server()
[ 1498.779073] <-- nfs4_create_server() = error -111
[ 1498.779077] <-- nfs4_mount() = -111 [error]
[ 1499.779258] --> nfs4_create_server()
[ 1499.779277] --> nfs4_init_server()
[ 1499.779278] --> nfs4_set_client()
[ 1499.779280] --> nfs_get_client(mtranch,v4)
[ 1499.779363] nfs_create_rpc_client: cannot create RPC client. Error = -111
[ 1499.779365] <-- nfs4_init_client() = xerror -111
[ 1499.779367] --> nfs_put_client({1})
[ 1499.779368] --> nfs_free_client(4)
[ 1499.779370] <-- nfs_free_client()
[ 1499.779371] <-- nfs4_set_client() = xerror -111
[ 1499.779373] <-- nfs4_init_server() = -111
[ 1499.779374] --> nfs_free_server()
[ 1499.782044] <-- nfs_free_server()
[ 1499.782047] <-- nfs4_create_server() = error -111
[ 1499.782050] <-- nfs4_mount() = -111 [error]
Reply With Quote
  #2  
Old 5th January 2012, 09:43 PM
geoffleach Offline
Registered User
 
Join Date: Feb 2004
Location: Mountain Ranch, CA, USA
Posts: 13
linuxfirefox
Re: Fedora 16 unable to mount NFS from client

T3RM1NVT0R at www.linuxquestions.org suggested this change in /etc/
exports on mtranch (server).

/nfs4exports 192.168.0.0/24
(ro,sync,insecure,root_squash,no_subtree_check,fsi d=0)
/nfs4exports/home 192.168.0.0/24
(rw,nohide,sync,insecure,root_squash,no_subtree_ch eck)

to

/nfs4exports 192.168.10.0/24
(ro,sync,insecure,root_squash,no_subtree_check,fsi d=0)
/nfs4exports/home 192.168.10.0/24
(rw,nohide,sync,insecure,root_squash,no_subtree_ch eck)

Changing the third element of the IP address from '0' to '10' which is
how the IP address of mtranch is known to the rest of the world. The
change appears (fingers crossed) to have resolved the problem with
mounting.
Reply With Quote
  #3  
Old 29th February 2012, 04:13 PM
dragon1976 Offline
Registered User
 
Join Date: Jun 2011
Location: Denton,Tx
Age: 37
Posts: 12
linuxfirefox
Re: Fedora 16 unable to mount NFS from client

www.serverwold.com has been my sucess for nfs automount in Fedora 16.

ex:
server
systemctl start rpcbind.service
systemctl start nfs-server.service
systemctl start nfs-lock

client:
systemctl start rpcbind.service
systemctl start nfs-lock.service
systemctl start netfs.service


This worked for me nfs automounts........for wired & wireless.

The problem I am having is after updating on Fedora 16 after installation, is it now requires me to systemctl restart netfs.service everytime after rebooting
Reply With Quote
Reply

Tags
client, fedora, mount, nfs, nfs4, unable

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Created NFS server from Fedora 15 but unable to mount on client Kaya Saman Using Fedora 4 13th July 2011 01:24 PM
Unable to mount USB in Fedora 9 laces12 Hardware & Laptops 13 12th February 2009 04:56 PM
Unable to mount CDROM or USB from NX Client ms9580 Using Fedora 0 27th February 2008 02:07 PM
unable to install lotus notes client on fedora 8 somak Using Fedora 3 13th January 2008 09:14 AM
Unable to ping/reach the virtunal bridge from the virtual client in fedora mng5888 Servers & Networking 1 17th September 2007 11:40 PM


Current GMT-time: 14:35 (Saturday, 25-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Ciechanow Instagram Photos - Santa Lucia Instagram Photos - Tupancireta Travel Photos on Instagram