LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem with nfs mounting (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-nfs-mounting-728214/)

d_tanuj 05-24-2009 02:10 PM

Problem with nfs mounting
 
I have two machines physics1 & physics2 running fedora core 8. I have connected them via ethernet ports. The PINGcommand and also network monitor shows they are connected. In physics1 from nfs server window I have added a folder /root/desktop/tanuj to share. Then used the exportfs command showing files are exported. In /etc/hosts.allow I have added the IP addresses of one another in both machines. From Service-firewall I have allowed nfs. nfs, nfslock, netfs are running. I have stopped iptables. Now when I want to mount the filesystem from physics2 it displays "permission denied".

Plz help me !!

Thanks in advance.

jamescondron 05-24-2009 02:31 PM

exact error message please. To ask the obvious... sudo mount?

custangro 05-24-2009 02:32 PM

Quote:

Originally Posted by d_tanuj (Post 3551282)
I have two machines physics1 & physics2 running fedora core 8. I have connected them via ethernet ports. The PINGcommand and also network monitor shows they are connected. In physics1 from nfs server window I have added a folder /root/desktop/tanuj to share. Then used the exportfs command showing files are exported. In /etc/hosts.allow I have added the IP addresses of one another in both machines. From Service-firewall I have allowed nfs. nfs, nfslock, netfs are running. I have stopped iptables. Now when I want to mount the filesystem from physics2 it displays "permission denied".

Plz help me !!

Thanks in advance.

is rpcbind or protmap running?

-C

verdeboy2k 05-24-2009 04:19 PM

Also, I've gotten that error message often when I forgot to actually start the NFS server on the host machine. It's not exactly the most intuitive of error messages.

chrism01 05-24-2009 08:52 PM

also use

exportfs -v
rpcinfo -p

to check the nfs server side (run them on the server)

d_tanuj 05-25-2009 02:20 AM

rpcbind and portmap are running on both the machines. exportfs -v shows the exported directories. also showmount -e command also works. when iptables was running, I had the message for mount command no route to host. when I stopped iptables, the mount command shows permission denied.

plz help me

custangro 05-25-2009 11:13 AM

Quote:

Originally Posted by d_tanuj (Post 3551747)
rpcbind and portmap are running on both the machines. exportfs -v shows the exported directories. also showmount -e command also works. when iptables was running, I had the message for mount command no route to host. when I stopped iptables, the mount command shows permission denied.

plz help me

Now we are back to jamescondron question...

Are you root when you mount it?

-C

d_tanuj 05-25-2009 11:01 PM

Both the machines are on the root when I want to mount it...should I change the directory permission??? the exact error message mount: 169.254.133.8 failed. Reason given by server: PERMISSION DENIED

plz help

verdeboy2k 05-29-2009 02:39 AM

What are the contents of your /etc/hosts.allow and /etc/hosts.deny files, because it seems like the client computer is on the deny list from the error messages you are getting.

d_tanuj 06-04-2009 04:39 AM

In the server, /etc/hosts.allow files I have the entry

rpcbind: 169.254.251.90
locked: 169.254.251.90
rquatad: 169.254.251.90
mountd: 169.254.251.90
statd: 169.254.251.90

169.254.251.90 physics2.domain.com physics2

In the same way IP address of the server is added to the client's /etc/hosts.allow


plz help me

d_tanuj 06-14-2009 11:54 PM

I have a parallel program in mpi directive.how I can run this on two machines??

Plz help me

custangro 06-17-2009 09:40 PM

Quote:

Originally Posted by d_tanuj (Post 3562712)
In the server, /etc/hosts.allow files I have the entry

rpcbind: 169.254.251.90
locked: 169.254.251.90
rquatad: 169.254.251.90
mountd: 169.254.251.90
statd: 169.254.251.90

169.254.251.90 physics2.domain.com physics2

In the same way IP address of the server is added to the client's /etc/hosts.allow


plz help me

Try not using tcp_wrappers (comment them out) to see if it works. If it does you know that it's something in one of your files.

Also keep in mind that you probably want to add portmap to the /etc/hosts.allow file...

How does your /etc/hosts.deny file look like?

-C


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