LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-30-2013, 09:07 AM   #1
boby.kumar
Member
 
Registered: Mar 2013
Posts: 92

Rep: Reputation: Disabled
NFS not working in RHEL6.2


Hi,

NFS server is not working in client side and getting the following error while mounting the remote..

[root@localhost ~]# mount -t nfs 192.168.50.5:/home/samb/rncit /var/log/logs
mount: mount to NFS server '192.168.50.5' failed: RPC Error: Program not registered.

NFS Server details
[root@localhost ~]# uname -a
Linux localhost 2.6.32-220.el6.i686 #1 SMP Wed Nov 9 08:02:18 EST 2011 i686 i686 i386 GNU/Linux

[root@localhost ~]# cat /etc/exports
/home/ 192.168.50.0/24(rw,sync,no_root_squash)

[root@localhost ~]# rpcinfo -p
No remote programs registered
.

[root@localhost ~]# showmount -e
Export list for localhost:
/home 192.168.50.0/24

[root@localhost ~]# service nfs restart
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]

[root@localhost ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:sunrpc
ACCEPT udp -- anywhere anywhere state NEW udp dpt:sunrpc
ACCEPT tcp -- anywhere anywhere state NEW tcp dptftp
ACCEPT udp -- anywhere anywhere state NEW udp dptftp
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:892
ACCEPT udp -- anywhere anywhere state NEW udp dpt:892
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:nfs
ACCEPT udp -- anywhere anywhere state NEW udp dpt:nfs
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:32803
ACCEPT udp -- anywhere anywhere state NEW udp dpt:32803
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:filenet-rpc
ACCEPT udp -- anywhere anywhere state NEW udp dpt:filenet-rpc

[root@localhost ~]# /etc/init.d/rpcbind status
rpcbind (pid 6172) is running...

[root@localhost ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

[root@localhost ~]# /etc/init.d/iptables status
iptables: Firewall is not running.


all the services is running and restarted several times.

can any one explain what is wrong with this?

Thanks in Advance

Last edited by boby.kumar; 12-30-2013 at 09:09 AM.
 
Old 12-30-2013, 09:47 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,932

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
It appears that rpcbind is not running which starts as a separate service from nfs.
 
Old 12-30-2013, 10:02 AM   #3
boby.kumar
Member
 
Registered: Mar 2013
Posts: 92

Original Poster
Rep: Reputation: Disabled
Here it is

Quote:
[root@localhost ~]# /etc/init.d/rpcbind status
rpcbind (pid 6172) is running...
 
Old 12-30-2013, 10:13 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,602

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Make sure the firewall on the server knows to permit NFS and rpcbind.

You might also need to check the SELinux boolean flags to permit NFS exports (you can check with "getsebool -a | grep -i nfs", then select the ones you want/need.
 
Old 12-30-2013, 11:31 PM   #5
boby.kumar
Member
 
Registered: Mar 2013
Posts: 92

Original Poster
Rep: Reputation: Disabled
Here the output
[root@localhost ~]# getsebool -a | grep -i nfs
allow_ftpd_use_nfs --> off
allow_nfsd_anon_write --> off
cobbler_use_nfs --> off
git_system_use_nfs --> off
httpd_use_nfs --> off
nfs_export_all_ro --> on
nfs_export_all_rw --> on

qemu_use_nfs --> on
samba_share_nfs --> off
use_nfs_home_dirs --> on
virt_use_nfs --> off
xen_use_nfs --> off

It seems nothing is blocked. Is there another way to proceed for the same?
 
Old 01-01-2014, 02:06 AM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Looks at "iptables -L" and see if there's a firewall rule preventing NFS traffic.
 
Old 01-01-2014, 02:37 AM   #7
boby.kumar
Member
 
Registered: Mar 2013
Posts: 92

Original Poster
Rep: Reputation: Disabled
Finally I got the solution. it was missing with RPCBIND.

thanks for help.

"If you begin with the notion that something is impossible, then it obviously will be for you." - Unknown
 
Old 01-01-2014, 07:05 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,932

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Well done.

You can mark the thread as solved via the thread tools menu at the top of the thread.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
RHEL6.3 NFS running but rpc.svcgssd is stopped why? how solve? zhenqingzuo63164 Red Hat 8 01-13-2013 05:24 PM
kerberos telnet not working on rhel6 vishesh Linux - Server 2 01-13-2012 10:56 AM
Port forwarding is not working on RHEL6.1 dinesh.tripathi30 Red Hat 2 07-22-2011 11:48 AM
Has anyone succeded in getting Horde H4 working on RHEL6.1? mysteron Linux - Server 0 05-27-2011 09:21 AM
[SOLVED] accessing the nfs share from remote machine using nautilus in RHEL6 neonate Linux - Desktop 1 03-20-2011 09:21 PM


All times are GMT -5. The time now is 04:58 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration