• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 885
  • Last Modified:

RHEL 6.5 Workstation, NFS Server Setup, Cannot mount drive from another workstaiton.

Here is the scenario. I have two RHEL 6.5 Workstations. Workstation1 has a partition that needs to be mounted on Workstation2.

The following is what I did to configure Workstation1 to be able to export the /share partion.
1. I set up the /etc/export file on Workstation1 to read
/share IPWorkstation2(rw)
2. ran exportfs -ra to make the changes in th export file take place
3. Made sure that NFS Service was running and retarted the service and the machine and checked it again.
4. No entries were made to the host.allow or deny files so NFS should let Worstation2 through.
5. On Workstation2 I created the /share mount point.
6. From Workstation2 I ran mount IPWorkstation1:/share /share

NFS times out like it cannot reach Workstation1. Workstation1 can be pinged by name or IP. I can ssh into Workstation1 from Worstation2, so connectivity does not seem to be the issue.

I have looked at the file /proc/fs/nfs/exports and there is no info in that file. This may be the problem, but this file is supposed to populate automatically when I run exportfs -ra and/or a reboot happens and Linux sees a change to the /etc/exports file.

Anyway I have exhausted all Google searches and spent too much time, so reaching out for some ideas. I must be missing something very simple...
1 Solution
Seth SimmonsSr. Systems AdministratorCommented:
if you do exportfs -av does it say it is exporting /share ?
if you do netstat -at | grep nfs does it show nfs as listening?
Have you ever try to open the filter to * to begin with? What errors are you getting?

/share *(rw)

Open in new window

#service rpcbind restart
#service nfs restart

#service iptables status

#showmount -e localhost

#netstat -alnp | grep 111
#netstat -alnp | grep 2049

Please paste output of these commands.

Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

capperdog13Author Commented:
if you do exportfs -av does it say it is exporting /share ?
if you do netstat -at | grep nfs does it show nfs as listening?

Yes - Says it is exporting IPWorkstaion2:/share
Yes - tcp 0 0 *.nfs *:* LISTEN
capperdog13Author Commented:
Have you ever try to open the filter to * to begin with? What errors are you getting?

/share *(rw)

Are you talking about editing the /etc/exports with this?
capperdog13Author Commented:
# service rpcbind restart
Stopping rpcbind:                                          [  OK  ]
Starting rpcbind:                                          [  OK  ]

# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination        
1    ACCEPT     all  --             state RELATED,ESTABLISHED
2    ACCEPT     icmp --            
3    ACCEPT     all  --            
4    ACCEPT     tcp  --             state NEW tcp dpt:22
5    REJECT     all  --             reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination        
1    REJECT     all  --             reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination        

# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted

# showmount -e localhost
clnt_create: RPC: Program not registered

# netstat -alnp | grep 111
tcp        0      0       *                   LISTEN      6586/rpcbind        
tcp        0      0 :::111                      :::*                        LISTEN      6586/rpcbind        
udp        0      0       *                               6586/rpcbind        
udp        0      0 :::111                      :::*                                    6586/rpcbind        

# netstat -alnp | grep 2049
tcp        0      0      *                   LISTEN      -                  
tcp        0      0 :::2049                     :::*                        LISTEN      -                  
udp        0      0      *                               -                  
udp        0      0 :::2049                     :::*                                    -                  
unix  2      [ ACC ]     STREAM     LISTENING     20492  2943/seahorse-daemo /tmp/orbit-root/linc-b7f-0-4eecf742e9cbd
unix  2      [ ACC ]     STREAM     LISTENING     22049  2972/nautilus       /tmp/orbit-root/linc-b9c-0-2214c727672b7
unix  3      [ ]         STREAM     CONNECTED     20495  2943/seahorse-daemo /tmp/orbit-root/linc-b7f-0-4eecf742e9cbd
unix  3      [ ]         STREAM     CONNECTED     20494  2933/gconfd-2      
unix  3      [ ]         STREAM     CONNECTED     20491  2933/gconfd-2       /tmp/orbit-root/linc-b75-0-582a8fe4f2252
unix  3      [ ]         STREAM     CONNECTED     20490  2943/seahorse-daemo
Just for testing if you can ignore security for some time use below

#service iptables stop
#setenfore 0

Then try to mount it on another node.

capperdog13Author Commented:

Mounted immediately. Can you give brief description of what we just did and how to edit the IPTables to allow the mounting?
You need to add a rule to allow 2049 and 111 port connections in your firewall..

capperdog13Author Commented:
TY SA! Will have a few happy campers today.
capperdog13Author Commented:
Would be nice to have an admin of this calibre to work with. I spent 13 years in Windows and was made a Linux/Unix admin out of necessity. At times just Google and EE at the helm here. Can be very overwhelming at times. Thanks SA!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now