LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-03-2009, 04:49 AM   #1
ramesh14
Member
 
Registered: Apr 2008
Location: Hyderabad
Distribution: RHEL5,Fedora 8/9
Posts: 119
Blog Entries: 1

Rep: Reputation: 15
NFS mount problem


Hi all,

In my office i've installed fedora 12, when ever i was trying to access NFS share in LAN environment i was getting these errors.

$sudo mount x.x.x.x:/misc/export /misc/local , after executing this command i was getting these errors.

/usr/sbin/start-statd: line 8: /sbin/rpc.statd: Permission denied
/usr/sbin/start-statd: line 8: /sbin/rpc.statd: Success
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified

could any one please give me suggessions how to access NFS share.

Thanks alot.
 
Old 12-03-2009, 06:25 AM   #2
donanap
Member
 
Registered: Sep 2008
Location: Perth, Australia
Distribution: RedHat, Solaris
Posts: 38

Rep: Reputation: 15
Post rpcinfo

Hi Ramesh,

Please run this command and post your results:

Code:
rpcinfo -p
You should see an output like this:

Quote:
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 749 rquotad
100011 2 udp 749 rquotad
100005 1 udp 759 mountd
100005 1 tcp 761 mountd
100005 2 udp 764 mountd
100005 2 tcp 766 mountd
100005 3 udp 769 mountd
100005 3 tcp 771 mountd
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
300019 1 tcp 830 amd
300019 1 udp 831 amd
100024 1 udp 944 status
100024 1 tcp 946 status
100021 1 udp 1042 nlockmgr
100021 3 udp 1042 nlockmgr
100021 4 udp 1042 nlockmgr
100021 1 tcp 1629 nlockmgr
100021 3 tcp 1629 nlockmgr
100021 4 tcp 1629 nlockmgr
If you are missing some of the listed items it means the daemons arent running/configued.
Good Luck.
 
Old 12-03-2009, 06:31 AM   #3
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Whats your , entry in /etc/exports of nfs server ?

Thanks
 
Old 12-03-2009, 10:35 PM   #4
ramesh14
Member
 
Registered: Apr 2008
Location: Hyderabad
Distribution: RHEL5,Fedora 8/9
Posts: 119

Original Poster
Blog Entries: 1

Rep: Reputation: 15
hi Donanap

i run the command rpcinfo -p
i was getting this out put
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 57922 status
100024 1 tcp 42874 status
100021 1 udp 43382 nlockmgr
100021 3 udp 43382 nlockmgr
100021 4 udp 43382 nlockmgr
100021 1 tcp 42703 nlockmgr
100021 3 tcp 42703 nlockmgr
100021 4 tcp 42703 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100005 1 udp 41670 mountd
100005 1 tcp 38684 mountd
100005 2 udp 41670 mountd
100005 2 tcp 38684 mountd
100005 3 udp 41670 mountd
100005 3 tcp 38684 mountd
but i was unable to mount local nfs share plese guide me.....
 
Old 12-03-2009, 10:38 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
As per your 1st post
Quote:
mount.nfs: rpc.statd is not running but is required for remote locking.
rpc.statd is not up....
See chap 18 http://www.linuxtopia.org/online_boo...ion/index.html
 
Old 12-03-2009, 10:58 PM   #6
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 79
also you can add the -o nolock option to your mount command

mount x.x.x.x:/share /mount_point nfs -o nolock
 
Old 12-04-2009, 01:13 AM   #7
donanap
Member
 
Registered: Sep 2008
Location: Perth, Australia
Distribution: RedHat, Solaris
Posts: 38

Rep: Reputation: 15
Post NFS Lock & rpc.statd

Hi Ramesh,

No one has told you how to start this rpc.statd daemon, so here a quick guide.

Firstly, in order for nfs to be working correctly make sure the portmapper is running:

Code:
/sbin/service portmap status
If it is running you your nfs service should work fine. If it is not running just run the following command to start portmapper:

Code:
/sbin/service portmap start

ensure to restart the nfs service after you have started the portmapper.

Code:
/sbin/service nfs restart
Now you must also start the nfslock module. nfslock service controls the rpc.statd daemon run the following command to start it.

Code:
/sbin/service nfslock start
run this command to see if nfslock is turned on automatically to start at boot up.

Code:
chkconfig --list nfslock
To set nfslock to automatically start on boot, type the following command. ( Read the man pages for chkconfig, you can also specifyb which run levels to automatically start a service on)

Code:
chkconfig nfslock on
Good Luck, hope this fixes your problem.
Donanap.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
[SOLVED] mount.nfs: mount to NFS server 'rpcbind' failed w1k0 Slackware 4 03-30-2010 03:45 PM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
mount.nfs: mount to NFS server 'jesse' failed: timed out, retrying keupie Linux - Networking 3 06-05-2009 07:03 PM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration