LinuxQuestions.org
Review your favorite Linux distribution.
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 03-12-2012, 04:32 AM   #1
Vi_rod
Member
 
Registered: Dec 2011
Posts: 42

Rep: Reputation: Disabled
Mount NFS not working


Hi,
I am trying to mount a directory from one server (XX.2.6) to another (XX.2.100)
1. Installed NFSD
2. Changed /etc/exports file - added : /opt/data/ 192.168.2.6/24(rw)
3. Added - ALL : 192.168.2.6/24 in hosts.allow
4. Executed exportfs -ra
5. Executed the mount command as - mount 192.168.2.6:/opt/data/ /opt/data/

It gives me the following error -
mount: 192.168.2.6:/opt/data/ failed, reason given by server: Permission denied

when I check the /var/log/messages file I get the following error -

Mar 12 14:35:03 192.168.2.100 automount[2065]: create_udp_client:98: hostname lookup failed: Operation not permitted
Mar 12 14:35:03 192.168.2.100 automount[2065]: create_tcp_client:328: hostname lookup failed: Operation not permitted
Mar 12 14:35:03 192.168.2.100 automount[2065]: lookup_mount: exports lookup failed for sf
Mar 12 14:35:03 192.168.2.100 automount[2065]: update_negative_cache: key "sf" not found in map.

Kindly help, cant figure out what is exactly wrong!? Am i missing something?
 
Old 03-12-2012, 08:54 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,357

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Those first 2 msgs look like DNS issues.
Check the firewalls on both systems, also hosts.allow on server for DNS (bind) requests.
Also, if you're not using NFSv4, you'll need rpc and other services running
See Chap 18 http://www.linuxtopia.org/online_boo...ion/index.html

Last edited by chrism01; 03-12-2012 at 08:58 PM.
 
Old 03-12-2012, 09:08 PM   #3
akcgi
LQ Newbie
 
Registered: Mar 2012
Location: Shijiazhuang, China
Posts: 4

Rep: Reputation: Disabled
check your firewalls and selinux. NFS needs pormap ,does you insall it ?
 
Old 03-13-2012, 12:53 AM   #4
Vi_rod
Member
 
Registered: Dec 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
Smile

actually changing the the port : 24 to subnet mask 255.255.0 in /etc/exports did the trick!

Thanks for all the replies
 
  


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
NFS mount not working anymore. Spuddy Debian 1 01-24-2011 10:54 AM
[SOLVED] NFS mount not working ? your_shadow03 Linux - Newbie 5 01-05-2010 09:53 AM
mount NFS not working when both ethernet interfaces are up VGM Linux - General 5 01-05-2010 06:50 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


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