LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-24-2009, 03:10 PM   #1
d_tanuj
LQ Newbie
 
Registered: May 2009
Posts: 5

Rep: Reputation: 0
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.
 
Old 05-24-2009, 03:31 PM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
exact error message please. To ask the obvious... sudo mount?
 
Old 05-24-2009, 03:32 PM   #3
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,969
Blog Entries: 1

Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by d_tanuj View Post
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
 
Old 05-24-2009, 05:19 PM   #4
verdeboy2k
Member
 
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350

Rep: Reputation: 32
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.
 
Old 05-24-2009, 09:52 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
also use

exportfs -v
rpcinfo -p

to check the nfs server side (run them on the server)
 
Old 05-25-2009, 03:20 AM   #6
d_tanuj
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 05-25-2009, 12:13 PM   #7
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,969
Blog Entries: 1

Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by d_tanuj View Post
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
 
Old 05-26-2009, 12:01 AM   #8
d_tanuj
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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

Last edited by d_tanuj; 05-26-2009 at 12:02 AM.
 
Old 05-29-2009, 03:39 AM   #9
verdeboy2k
Member
 
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350

Rep: Reputation: 32
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.
 
Old 06-04-2009, 05:39 AM   #10
d_tanuj
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 06-15-2009, 12:54 AM   #11
d_tanuj
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
I have a parallel program in mpi directive.how I can run this on two machines??

Plz help me
 
Old 06-17-2009, 10:40 PM   #12
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,969
Blog Entries: 1

Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by d_tanuj View Post
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
 
  


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
problem with mounting with NFS ankushkool Linux - Networking 1 04-04-2009 11:45 PM
NFS mounting problem vhs.sumanth Linux - Server 3 03-06-2008 09:00 PM
mounting nfs problem kehkok Linux - Networking 1 05-08-2006 02:13 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 05:18 AM
NFS mounting problem KePSuX Linux - Networking 16 06-26-2003 11:18 PM


All times are GMT -5. The time now is 10:02 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