LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Automount Netapp NFS shares on Linux with AUTOFS (https://www.linuxquestions.org/questions/linux-server-73/automount-netapp-nfs-shares-on-linux-with-autofs-595409/)

athreyavc 10-29-2007 04:22 AM

Automount Netapp NFS shares on Linux with AUTOFS
 
Hi All,

We have a NFS share provided via Netapp Filer /vol/Testvol

I want to use autofs to mount that on a Linux System RHEL 3

I have configure the /etc/auto.master like this,

/mnt /etc/auto.misc

then the /etc/auto.misc

TestVol -fstype=nfs,-rw,nosuid filerID:/vol/Testvol

So as per the config the share should get mounted on /mnt/Testvol right ?

when I restart the autofs service no error comes but, nothing gets mounted
if I give mount then

I see instead of /mnt/TestVol, /mnt is mounted on the Share and

ls /mnt is EMPTY!!, Then I try to create a directory , But I get the permission denied errors ,

Please help me on this

Regards,


Brian1 10-30-2007 05:27 PM

Never had much luck in the auto stuff. I would make the directory manually. Then add a line to fstab to the share but set it to noauto for the mount since networking will not be up before the /etc/fstab is run. Then in the /etc/rc.local add the mount command to manually mount the NFS like a normal mount. Use the full path to the mount command also. Last you may have to set permissions for the user to use.

Brian

Brian1 10-30-2007 05:34 PM

You might get some help here on autofs. http://nfs.sourceforge.net/

Brian


All times are GMT -5. The time now is 07:26 PM.