Autofs help

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Autofs help

Tony Heal
I have read the docs and done some googling and I think I have everything set up right. My problem is that although everything looks right I can not access the mount point. Here are my docs as I have them. Can anyone offer some insight as to what I am doing wrong. Note that I can manually mount the nfs share and access it, but autofs is not working.
 
14-series:~# cat /etc/auto.master
#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#/misc  /etc/auto.misc --timeout=60
#/smb   /etc/auto.smb
#/misc  /etc/auto.misc
#/net   /etc/auto.net
/opt/epace-storage      /etc/auto.epace-storage --timeout=300
14-series:~# cat /etc/auto.epace-storage
#/opt/epace 192.168.1.67(rw,no_root_squash,sync)
 
#/opt/epace-storage     -fstype=nsf,rw,no_root_squash,sync
#192.168.1.66:/opt/epace /opt/epace-storage nfs rw,hard,intr 0 0
#/opt/epace-storage      -fstype=nsf,rw,hard,intr   192.168.2.131:/opt/epace
*       -fstype=nsf,rw,hard,intr,tcp   192.168.2.131:/opt/epace
 
14-series:~# mount
/dev/sda2 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext3 (rw)
/dev/sda5 on /home type ext3 (rw)
/dev/sda9 on /opt type ext3 (rw)
/dev/sda6 on /tmp type ext3 (rw)
/dev/sda7 on /usr type ext3 (rw)
/dev/sda8 on /var type ext3 (rw)
usbfs on /proc/bus/usb type usbfs (rw)
automount(pid2141) on /opt/epace-storage type autofs (rw,fd=4,pgrp=2141,minproto=2,maxproto=4)
14-series:~# ls /opt/epace-storage/vault
ls: /opt/epace-storage/vault: No such file or directory

14-series:~# mount -v -t nfs 192.168.2.131:/opt/epace /opt/epace-storage/
192.168.2.131:/opt/epace on /opt/epace-storage type nfs (rw,addr=192.168.2.131)

14-series:~# ls /opt/epace-storage/vault
test-file.txt
 
 
Tony Heal
Pace Systems Group, Inc.
800-624-5999
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Autofs help

Alvin Oga

hi ya tony

> Tony Heal wrote:
>
> 14-series:~# cat /etc/auto.master
> #
> /opt/epace-storage      /etc/auto.epace-storage --timeout=300

of you change * to epsace-storage below.. you need to change
/opt/epace-storage

it is best to use /.autofs instead of /opt/something
and use symlinks
        cd /opt ; ln -s /.autofs/espace-storage .

> 14-series:~# cat /etc/auto.epace-storage
> *       -fstype=nsf,rw,hard,intr,tcp   192.168.2.131:/opt/epace

do you really mean nsf or nfs ??

you should NOT use *

it's best to use:

espace-storage -fstype=nfs,rw,hard,intr,tcp   192.168.2.131:/opt/epace

i would not use hard mounts, but to each their own ... if you know
why you're insisting on simultaneously using hard and intr

> 14-series:~# ls /opt/epace-storage/vault
> ls: /opt/epace-storage/vault: No such file or directory
 
says you have an autofs config problem, that you already know about

i'd say remove "--timeout=300" in the above automaster file
( it depends on where you got the autofs start/stop scripts and files )

        - or it can be "--timeout 300" .... no "=" sign

        - what kind of error messages do you see when you start autofs
        - what error messages are in the syslog files

> 14-series:~# mount -v -t nfs 192.168.2.131:/opt/epace /opt/epace-storage/
> 192.168.2.131:/opt/epace on /opt/epace-storage type nfs
> (rw,addr=192.168.2.131)

says that permissions, nfs, firewall etc is working, everything else
except autofs is working

> 14-series:~# ls /opt/epace-storage/vault
> test-file.txt

>  
>  
> Tony Heal
> Pace Systems Group, Inc.
> 800-624-5999
> [hidden email]
>  
>  
>
> ------=_NextPart_000_01DB_01C69018.63212810
> Content-Type: text/html;
> charset="us-ascii"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=3DContent-Type content=3D"text/html; =
> charset=3Dus-ascii">
> <META content=3D"MSHTML 6.00.2900.2873" name=3DGENERATOR></HEAD>
> <BODY>
> <DIV><SPAN class=3D179370305-15062006><FONT face=3DArial size=3D2>I have =
> read the docs=20
> and done some googling and I think I have everything set up right. My =
> problem is=20
> that although everything looks right I can not access the mount point. =
> Here are=20
> my docs as I have them. Can anyone offer some insight as to what I am =
> doing=20
> wrong. Note that I can manually mount the nfs share and access it, but =
> autofs is=20
> not working.</FONT></SPAN></DIV>
> <DIV><SPAN class=3D179370305-15062006><FONT face=3DArial =
> size=3D2></FONT></SPAN><SPAN=20
> class=3D179370305-15062006><FONT face=3DArial =
> size=3D2></FONT></SPAN>&nbsp;</DIV>
> <DIV><SPAN class=3D179370305-15062006><FONT face=3DArial =
> size=3D2>14-series:~# cat=20
> /etc/auto.master<BR>#<BR># $Id: auto.master,v 1.4 2005/01/04 14:36:54 =
> raven Exp=20
> $<BR>#<BR># Sample auto.master file<BR># This is an automounter map and =
> it has=20
> the following format<BR># key [ -mount-options-separated-by-comma ]=20
> location<BR># For details of the format look at =
> autofs(5).<BR>#/misc&nbsp;=20
> /etc/auto.misc --timeout=3D60<BR>#/smb&nbsp;&nbsp; =
> /etc/auto.smb<BR>#/misc&nbsp;=20
> /etc/auto.misc<BR>#/net&nbsp;&nbsp;=20
> /etc/auto.net<BR>/opt/epace-storage&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> /etc/auto.epace-storage --timeout=3D300<BR></FONT></SPAN></DIV>
> <DIV><SPAN class=3D179370305-15062006><FONT face=3DArial =
> size=3D2>14-series:~# cat=20
> /etc/auto.epace-storage<BR>#/opt/epace=20
> 192.168.1.67(rw,no_root_squash,sync)</FONT></SPAN></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><SPAN class=3D179370305-15062006><FONT face=3DArial=20
> size=3D2>#/opt/epace-storage&nbsp;&nbsp;&nbsp;&nbsp;=20
> -fstype=3Dnsf,rw,no_root_squash,sync<BR>#192.168.1.66:/opt/epace=20
> /opt/epace-storage nfs rw,hard,intr 0=20
> 0<BR>#/opt/epace-storage&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> -fstype=3Dnsf,rw,hard,intr&nbsp;&nbsp;=20
> 192.168.2.131:/opt/epace<BR>*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
> -fstype=3Dnsf,rw,hard,intr,tcp&nbsp;&nbsp;=20
> 192.168.2.131:/opt/epace</FONT></SPAN></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><SPAN class=3D179370305-15062006><FONT face=3DArial =
> size=3D2>14-series:~#=20
> mount<BR>/dev/sda2 on / type ext3 (rw,errors=3Dremount-ro)<BR>proc on =
> /proc type=20
> proc (rw)<BR>devpts on /dev/pts type devpts =
> (rw,gid=3D5,mode=3D620)<BR>tmpfs on=20
> /dev/shm type tmpfs (rw)<BR>/dev/sda1 on /boot type ext3 =
> (rw)<BR>/dev/sda5 on=20
> /home type ext3 (rw)<BR>/dev/sda9 on /opt type ext3 (rw)<BR>/dev/sda6 on =
> /tmp=20
> type ext3 (rw)<BR>/dev/sda7 on /usr type ext3 (rw)<BR>/dev/sda8 on /var =
> type=20
> ext3 (rw)<BR>usbfs on /proc/bus/usb type usbfs =
> (rw)<BR>automount(pid2141) on=20
> /opt/epace-storage type autofs=20
> (rw,fd=3D4,pgrp=3D2141,minproto=3D2,maxproto=3D4)<BR></FONT></SPAN></DIV>=
>
> <DIV><SPAN class=3D179370305-15062006><FONT face=3DArial =
> size=3D2>14-series:~# ls=20
> /opt/epace-storage/vault<BR>ls: /opt/epace-storage/vault: No such file =
> or=20
> directory</FONT></SPAN></DIV><SPAN class=3D179370305-15062006><FONT =
> face=3DArial=20
> size=3D2>
> <DIV><BR>14-series:~# mount -v -t nfs 192.168.2.131:/opt/epace=20
> /opt/epace-storage/<BR>192.168.2.131:/opt/epace on /opt/epace-storage =
> type nfs=20
> (rw,addr=3D192.168.2.131)</DIV>
> <DIV><BR>14-series:~# ls=20
> /opt/epace-storage/vault<BR>test-file.txt<BR></DIV></FONT></SPAN>
> <DIV>&nbsp;</DIV>
> <DIV align=3Dleft><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV align=3Dleft><FONT face=3DArial size=3D2>Tony Heal</FONT></DIV>
> <DIV align=3Dleft><FONT face=3DArial size=3D2>Pace Systems Group, =
> Inc.</FONT></DIV>
> <DIV align=3Dleft><FONT face=3DArial size=3D2>800-624-5999</FONT></DIV>
> <DIV align=3Dleft><FONT face=3DArial size=3D2><A=20
> href=3D"mailto:[hidden email]">[hidden email]</A></FONT></DIV>
> <DIV align=3Dleft>&nbsp;</DIV>
> <DIV>&nbsp;</DIV></BODY></HTML>
>
> ------=_NextPart_000_01DB_01C69018.63212810--
>
>
> --
> To UNSUBSCRIBE, email to [hidden email]
> with a subject of "unsubscribe". Trouble? Contact [hidden email]
>


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]