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?
|