Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
Search Forums:



Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-08-2012
Registered User
 

Join Date: Jan 2012
Posts: 11
Thanks: 5
Thanked 1 Time in 1 Post
Not able to mount NFS share on client side

When i tried to mount the nfs i see this error message

Code:
mount -t nfs 192.168.20.194:/remote/proj1 /nfsmount
mount: 192.168.20.194:/remote/proj1 failed, reason given by server: Permission denied

and the /etc/exports file in the host side looks like this


Code:
/remote/proj1  192.168.20.194(rw,no_root_squash,sync)

not able to figure out what exactly need to be modified
Sponsored Links
    #2  
Old 02-08-2012
admin_xor's Avatar
Registered User
 

Join Date: Jun 2011
Posts: 318
Thanks: 8
Thanked 43 Times in 43 Posts
It's clear from the /etc/exports entry. Is your server's IP 192.168.20.194?



Code:
/remote/proj1  192.168.20.194(rw,no_root_squash,sync)

With the above entry, you are allowing only the server to mount the nfs share. You have to put IP of the client there instead of the server's.
Sponsored Links
    #3  
Old 02-08-2012
Registered User
 

Join Date: Jan 2012
Posts: 11
Thanks: 5
Thanked 1 Time in 1 Post
thats not the client's IP it is the IP address of the Host server.
    #4  
Old 02-08-2012
admin_xor's Avatar
Registered User
 

Join Date: Jun 2011
Posts: 318
Thanks: 8
Thanked 43 Times in 43 Posts
Yes, I know that. You need to change that to the client's IP and your problem is solved. That field for any host's IP or hostname or a range of IPs of hosts which are allowed to mount the share. So change it to client's IP. for more info about exports file see "man exports".
Sponsored Links
    #5  
Old 02-08-2012
pseudocoder's Avatar
Registered User
 

Join Date: Sep 2007
Location: /home/sea
Posts: 602
Thanks: 40
Thanked 83 Times in 81 Posts
Looks like your host-side (your server) exports a nfs share and allows the host-side (your server) to mount it.
Did you try to mount this share on the server? Probably you just need to run your command with root user or sudo?
Also check directory permissions!

---------- Post updated at 01:51 ---------- Previous update was at 01:48 ----------

The one line you posted (/etc/exports) may not be sufficient enough!
You may need to adjust the directory access permissions on server (/remote/proj1) as well as on the client side (/nfsmount).
Sponsored Links
    #6  
Old 02-09-2012
Registered User
 

Join Date: Feb 2012
Location: India
Posts: 102
Thanks: 9
Thanked 2 Times in 2 Posts
Clear Understanding...
Server-A :
/remote/proj1 Server-B(rw,no_root_squash,sync)

Server-B:
mount -t nfs Server-A:/remote/proj1 /nfsmount

--Shirish
Sponsored Links
    #7  
Old 02-09-2012
Registered User
 

Join Date: Feb 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

I was trying to connect to a HP server through iLO but for some reason I was unable to connect. When I ping it I do get a reply but the connection is not being established..Please help me understand what the problem is.

---------- Post updated at 02:19 AM ---------- Previous update was at 01:53 AM ----------

HI,
Another issue is I was trying to configure NFS on the servers. I'm using 2 HP servers with RHEL. i updated the /etc/exports directory with /sharing ipaddress/netmask(rw,sync,root_squash).

mounted it on the client server but I'm getting the following error:
mount: mount to NFS server 'ipaddress' failed: System Error: No route to host.

Please help me out.

Last edited by s.dineshreddy85; 02-09-2012 at 03:36 PM..
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sftp : have to specify subsystem from client side massdesign AIX 1 01-31-2012 01:39 PM
NFS client-side userid mapping helpmelearn UNIX for Advanced & Expert Users 1 03-02-2011 05:44 PM
SSH using the shell on the client side -- possible? SilversleevesX UNIX for Dummies Questions & Answers 1 10-01-2010 03:23 AM
Can't see home folder on one NFS mount but can in another mount on another share Narnie IP Networking 2 01-09-2010 09:49 PM



All times are GMT -4. The time now is 12:26 AM.