LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   NFS and Automount (https://www.linuxquestions.org/questions/linux-server-73/nfs-and-automount-605126/)

athreyavc 12-07-2007 01:55 AM

NFS and Automount
 
Hi All,

I am facing a strange problem here ,

I have a Netapp nfs share

/vol/vol2/autofs

I want to automount the share on a Linux (CentOS 5 ) machine

My /etc/auto.master

/autohome /etc/auto.mnt

and auto.mnt is

autofs -fstype=nfs,rw nfsserver:/vol/vol1/autofs

I have started the portmapper and autofs on the Linux box

if I try to access the /autohome i can cd to it but I can not create any file

No NIS here ,

Am i doing some wrong config here ?

Kindly Help

Regards,

Athreya

trickykid 12-08-2007 02:29 PM

What's the permissions on the remote filesystem? You have it rw in the mount command so client side should be ok.

athreyavc 12-09-2007 10:30 PM

The Client has the root permission on the share.

I start the autofs service , Do I need to run the mount command again ,

Thanks for the reply ,

Regards,

Athreya VC

athreyavc 12-09-2007 11:33 PM

Hi Trickykid,

One more observation here

If I manually mount them , everything works fine.

But autofs not works ,

Is the permissions wrong,

Regards,

Athreya VC

athreyavc 12-10-2007 06:11 AM

Hi Trickykid,

I did everything form the scratch again ,

and it worked for me

In the /etc/auto.master

/mnt /etc/auto.autofs -rw, intr --timeout=600

Here the /mnt is on client and here the automount will create its mount point

/etc/auto.autofs is the place where the actual mapping is present

In the /etc/auto.autofs

Test -rw,soft,intr,wsize=(value),rsize=(value) nfsserver:<share name>

“Test” will get created by the automounter automatically.

# service autofs start


I can see the mount with the mount command

Hope this is correct

Thanks and Regards,

Athreya VC


All times are GMT -5. The time now is 10:46 AM.