LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Automount (NFS) is not working (https://www.linuxquestions.org/questions/linux-general-1/automount-nfs-is-not-working-724694/)

justemail 05-08-2009 10:07 AM

Automount (NFS) is not working
 
I have worked on this problem for two days without success. Therefore now I am asking for HELP. I am testing to a real simple NSF Server/Client setup as follows:

---
NSF Client:
rs1.tib.com is the NFS Client running Apache Server & CentOS 5.3
eth0: 65.103.190.107 (Connects to the Internet)
eth1: 192.169.2.1 (Connect to NFS Server)

NFS Server:
ds1.tib.com is the NFS Server running CentOS 5.3
eth0: 192.168.2.100 (Connects to NFS Client rs1.tib.com)
---

To test this NFS Server/Client setup, I am trying to export WEB files from the NFS Server (ds1) to the Client (rs1).

---
The /etc/export on the NFS Server (ds1) looks like this:

/var/www/html 192.168.2.0/24(rw,fsid=0,insecure,sync,no_root_squash)

The /etc/auto.master on the NSF Client looks like this:
Note: Comment lines (#) are removed.
/misc /etc/auto.misc
/net -hosts
+auto.master
/- /etc/auto.tib

/etc/auto.tib looks like this:
/var/www/html -rw,fsid=0,sync,hard,intr ds1:/var/www/html
---

On NFS Server: nfs is running
On NFS Client: autofs, netfs, nfs are running
---

PROBLEM
When the NFS Client (rs1) BOOTS, nothing is mounted!!

HINT
On the NFS Client (rs1) I can manually mount the WEB files:

%mount –t nfs4 ds1:/ /var/www/html

---

I believe there are one or two settings which I am not using correctly. I have tried various settings without avail. HELP!

instrumentpilot 05-08-2009 11:40 AM

justemail, I must confess I don't know what the /- does in the auto.master file, but I would be interrested in trying to change it to something like /tib so it reads

Code:

/tib /etc/auto.tib
Then try auto.tib puting this in auto.tib
/etc/auto.tib looks like this:
Code:

html -rw,fsid=0,sync,hard,intr ds1:/var/www/html

A "cd /tib/html" is what I'm suggesting as a try. If you can mount manually I'd assume nfs is fine.

Also, tail your /var/log/messages file on both systems to see if anything obvious shows up.

Other things that come to mind:
1) did you restart the autofs service?
2) rs1 does not already have a /var/www/html directory.
Keep us updated, I'm curious as to what this is and to learn what /- does.

Michael Cunningham

justemail 05-08-2009 11:56 AM

I disabled the firewall on the NFS Server (ds1). Now the WEB folder/document are mounted on the NFS Client at BOOT time.

Previously, 'NFS4' was open on NFS Server (ds1). Does anybody has a solution? I don't want the FW to be left OPEN!

justemail 05-08-2009 02:26 PM

Further investigation show that NFS4 has issues with the FW. I did a GOOGLE "NFS4 FW" and got lot of information. I don't want to mess around with FW so I am moving on. Thanks everyone for help.

fbsmith 05-19-2009 04:35 PM

Automount
 
We had a similar problem.
It was fixed by adding a line that contained "sleep 30" as the second last line of the file /etc/init.d/network

Hope this helps you.


All times are GMT -5. The time now is 12:44 PM.