LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-26-2009, 05:28 AM   #1
justemail
LQ Newbie
 
Registered: Apr 2009
Posts: 29

Rep: Reputation: 15
NFSv4 on Client does not work


CentOS 5.3

I am trying to setup an NFSv4 Server/Client setup & running into lots of problem. Please HELP. I am pretty much a newbie.

My setup is very simple:

An application Server (apsv) connects to a Storage Server (stor). From the ‘apsv’, I can ping the ‘stor’ server.


|
|
eth0
----------
apsv
(Application Server)
----------
eth1: 192.168.1.1
|
|
eth0: 192.168.2.1
--------
stor (Server)
--------


I set up NFS Server on the ‘stor’ machine. I have one mount point on ‘stor’. This line is in the ‘/etc/exports’ file:

/var/www/html stor.tib.com (rw,sync)

1. When I try to mount this folder on the NFS CLIENT (apsv),

%> mount –t nsf4 stor:/var/www/html /var/www/html

I get the error:

mount.nfs4: Operation not permitted.

2. So I DISABLE the ‘FIREWAL’ on the ‘stor’ Server & run the same command:

%> mount –t nsf4 stor:/var/www/html /var/www/html

I get the same error.


3. Now I RUN the following command:

%> mount –t nsf stor:/var/www/html /var/www/html

WALLA… Success… The files are mounted….


I have researched the Internet & found lots of information on this subject. Most of the information is about updating the ‘iptables’.

Can somebody guide me as to what is going on and how to mount using nfs4 this problem?

Is this something to file a BUG report so it is fixed in future releases?

THANKS a bunch.
 
Old 04-26-2009, 11:27 AM   #2
justemail
LQ Newbie
 
Registered: Apr 2009
Posts: 29

Original Poster
Rep: Reputation: 15
Wink NFSv4 on Client does not work - SOLVED

I fiddled around &the problem is solved. It seems that NFS4 does not work with full path. I changed the following line:

%> mount –t nsf4 stor:/var/www/html /var/www/html

-to-

%> mount –t nsf4 stor:/ /var/www/html

and it worked. So simple but took almost 3 days to figure out.
 
  


Reply

Tags
nfs, permitted


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
nfsv4 in RHEL 5 Fernandoch Red Hat 1 07-17-2008 03:31 PM
Slackware 12 NFSv4 directory error onebuck Slackware 0 07-09-2007 08:44 AM
NFSv4 replication and migration PhillipHuang Linux - Software 0 04-11-2007 11:07 PM
NFSv4 + autofs technomancer Linux - Networking 1 11-06-2006 11:10 AM
Tweaking NFSv4 Performance fortezza Linux - Newbie 2 08-14-2005 08:20 PM


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