LinuxQuestions.org
Visit Jeremy's Blog.
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-11-2009, 06:32 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,434
Blog Entries: 6

Rep: Reputation: 51
NFS Issue?


I have two RHEL Machines rh1 and rh2.I tried to creat rh1 as NFS Server and edited /etc/exports as:
Code:
/home/fdmin/arch                          *(rw,sync,no_root_squash)
And exports -a worked without any error.
Restarted nfs
Showmount -e localhost showing good.

I tried running this on rh2
It says:
Code:
# mount -t nfs rh1:/home/fdmin/arch /tmp/res
mount: rhn1:/home/fdmin/arc/ failed, reason given by server: Permission denied
#
Showmount -e rh1 worked and shows fine on rh2 but rh2 is not able to mount rh1.

Also, If I try making rh2 as server and rh1 as client it works fine.
Why does the first setup doesnt work?

Last edited by your_shadow03; 05-11-2009 at 06:34 AM.
 
Old 05-11-2009, 07:21 AM   #2
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Rep: Reputation: 18
what do your logs say?
 
Old 05-11-2009, 01:01 PM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,434
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Which logs?are you talking about /var/log/messages?
It doesnt show any error?
 
Old 05-11-2009, 03:51 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,973
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
On neither machine? How odd.


Cheers,
Tink
 
Old 05-11-2009, 04:09 PM   #5
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , Solaris 10, RHEL
Posts: 1,935
Blog Entries: 1

Rep: Reputation: 188Reputation: 188
Quote:
Originally Posted by your_shadow03 View Post
I have two RHEL Machines rh1 and rh2.I tried to creat rh1 as NFS Server and edited /etc/exports as:
Code:
/home/fdmin/arch                          *(rw,sync,no_root_squash)
And exports -a worked without any error.
Restarted nfs
Showmount -e localhost showing good.

I tried running this on rh2
It says:
Code:
# mount -t nfs rh1:/home/fdmin/arch /tmp/res
mount: rhn1:/home/fdmin/arc/ failed, reason given by server: Permission denied
#
Showmount -e rh1 worked and shows fine on rh2 but rh2 is not able to mount rh1.

Also, If I try making rh2 as server and rh1 as client it works fine.
Why does the first setup doesnt work?
Is the firewall/selinux enabled on either host? Are you using tcp_wrppers? Is there any other firewall in the picture (cisco or any other hardware firewall)?

-C

Last edited by custangro; 05-11-2009 at 04:20 PM.
 
Old 05-11-2009, 07:33 PM   #6
jim80net
LQ Newbie
 
Registered: May 2009
Location: San Antonio, TX
Distribution: Debian
Posts: 15

Rep: Reputation: 1
I'd take a look at your permissions for the exported directory. Try bringing it all the way forward (777) then scaling back.
 
Old 05-12-2009, 11:40 AM   #7
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,434
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Its 777 what chmod says.
se-Linux is disabled too.
 
Old 05-12-2009, 11:49 AM   #8
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , Solaris 10, RHEL
Posts: 1,935
Blog Entries: 1

Rep: Reputation: 188Reputation: 188
Quote:
Originally Posted by your_shadow03 View Post
Its 777 what chmod says.
se-Linux is disabled too.
What about the firewall? Any firewalls involved?

-C
 
Old 05-12-2009, 10:37 PM   #9
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,434
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Code:
#service iptables stop
shows no output
 
Old 05-12-2009, 11:26 PM   #10
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
That's normal for *nix. If you issue a basic cmd and it works, there's normally no output.
what we need is

iptables -L

on both systems when iptables is up. Mind you if it doesn't work after you've stopped iptables on BOTH systems, then its not an iptables issue.
Have checked tcp_wrappers (hosts.allow, hosts.deny) in /etc ?
 
Old 05-13-2009, 03:09 AM   #11
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,434
Blog Entries: 6

Original Poster
Rep: Reputation: 51
/etc/hosts.allow and /etc/hosts.deny seems to be completely hashed.
 
Old 05-13-2009, 03:11 AM   #12
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,434
Blog Entries: 6

Original Poster
Rep: Reputation: 51
[root@131e ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@131e ~]#
 
Old 05-13-2009, 03:13 AM   #13
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,434
Blog Entries: 6

Original Poster
Rep: Reputation: 51
May 13 08:14:13 131e rpc.mountd: refused mount request from rh1 for /tmp/resd (/): not exported
 
Old 05-13-2009, 10:06 AM   #14
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , Solaris 10, RHEL
Posts: 1,935
Blog Entries: 1

Rep: Reputation: 188Reputation: 188
Quote:
Originally Posted by your_shadow03 View Post
May 13 08:14:13 131e rpc.mountd: refused mount request from rh1 for /tmp/resd (/): not exported
Question...

Are you using /etc/hosts.allow /etc/hosts.deny?

-C
 
Old 05-13-2009, 07:54 PM   #15
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Use
service iptables stop
on BOTH systems and try again. If it doesn't work, show us hosts.allow, hosts.deny from BOTH systems. Saying they are 'hashed' is meaningless!
(They are plain text files)
 
  


Reply

Tags
nfs


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 RPC Issue? your_shadow03 Linux - Server 0 09-08-2008 09:39 AM
NFS Cluster Issue? your_shadow03 Linux - Server 0 08-21-2008 02:00 AM
NFS issue... RexCoeus Linux - Networking 1 04-25-2008 06:25 AM
Issue with NFS gopinathassrj Linux - Networking 2 02-02-2007 11:46 AM
nfs permissions issue geletine *BSD 4 05-11-2006 05:24 PM


All times are GMT -5. The time now is 06:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration