LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NFSv4 on Client does not work (https://www.linuxquestions.org/questions/linux-networking-3/nfsv4-on-client-does-not-work-721765/)

justemail 04-26-2009 05:28 AM

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.

justemail 04-26-2009 11:27 AM

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.


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