All of lore.kernel.org
 help / color / mirror / Atom feed
* Help with NFS and automount
@ 2002-03-16  7:41 Jeffrey S. Mulliken
  2002-03-19 10:34 ` Simon Burley
  0 siblings, 1 reply; 3+ messages in thread
From: Jeffrey S. Mulliken @ 2002-03-16  7:41 UTC (permalink / raw)
  To: nfs

Dear Brainiacs,  

    I am having a problem and have come to the end of what I can think 
of to try.   Scenario:

    CLIENT MACHINE:
    RH 7.2  Base
    2.413-ac8 Kernel
    autofs 4.0.0
    mount 2.11g
    pptp-linux v 1.0.3-1
    Linksys BESFR41 4 port router

    HOST MACHINES:
    Gateway = RH 6.2 running firewall and VPN over PPTP
    RH 6.2 machine serving NIS (yp) and DNS
    SUN Ultras w/Solaris 2.51 and 2.6 serving NFS shares.

    PROBLEM:
    Client machine IPL's without any problems.  All of the machines in 
the host network are accessible via ftp or telnet.  
    Several nfs mounts are mounted via the /etc/fstab, and mount without 
problems, and are useable
    A particular nfs mount point gets mounted by the automounter 
successfully via a file /etc/auto.ccwork.  No problems there.
    However, trying to access the same machine as above using the 
program /etc/auto.net, results in "No such file or directory".  
    No errors in /var/log/messages, nor in /var/adm/messages on the 
Solaris host.  I will attach the pertinent files.  
   
    Any suggestions with be greatly appreciated.  



/etc/auto.master
---------------------
/ccwork /etc/auto.ccwork        -retrans=10,rsize=8192,wsize=8192,timeo=15
/net    /etc/auto.net           
-nosuid,retrans=10,rsize=8192,wsize=8192,timeo=15 etc/nsswitch.conf

/etc/auto.ccwork
----------------------
ccStore19 dev3:/ccStore19
ccStore20 dev3:/ccStore20
ccStore16 dev3:/ccStore16
ccStore22 dev3:/ccStore22
ccStore21 dev3:/ccStore21

/etc/modules.conf
------------------------
alias eth0 tulip
alias parport_lowlevel parport_pc
alias usb-controller usb-uhci
alias autofs autofs4

/etc/rc.d/init.d/autofs status
-------------------------------------
Configured Mount Points:
------------------------
/usr/sbin/automount  /ccwork file /etc/auto.ccwork 
retrans=10,rsize=8192,wsize=8192,timeo=15
/usr/sbin/automount  /net program /etc/auto.net 
nosuid,retrans=10,rsize=8192,wsize=8192,timeo=15

Active Mount Points:
--------------------
/usr/sbin/automount /ccwork file /etc/auto.ccwork 
retrans=10,rsize=8192,wsize=8192,timeo=15
/usr/sbin/automount /net program /etc/auto.net 
nosuid,retrans=10,rsize=8192,wsize=8192,timeo=15

/etc/auto.net
----------------
#!/bin/sh

# $Id: //depot/autofs-4.0/samples/auto.net#4 $

# Look at what a host is exporting to determine what we can mount.
# This is very simple, but it appears to work surprisingly well

key="$1"

# add "nosymlink" here if you want to suppress symlinking local filesystems
opts="-fstype=nfs,hard,intr,nodev,nosuid"

# Showmount comes in a number of names and varieties.  "showmount" is
# typically an older version which accepts the '--no-headers' flag
# but ignores it.  "kshowmount" is the newer version installed with knfsd,
# which both accepts and acts on the '--no-headers' flag.
#SHOWMOUNT="kshowmount --no-headers -e $key"
#SHOWMOUNT="showmount -e $key | tail +2"

# Newer distributions get this right
SHOWMOUNT="showmount --no-headers -e $key"

$SHOWMOUNT | sort +0 | \
        awk -v key="$key" -v opts="$opts" -- '
        BEGIN           { ORS=""; print opts }
                        { print " \\\n\t" $1, key ":" $1 }
        END             { print "\n" }
        '

mount
---------
/dev/hda1 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda7 on /private type ext3 (rw)
/dev/hda5 on /usr type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
automount(pid837) on /net type autofs 
(rw,fd=5,pgrp=837,minproto=2,maxproto=4)
automount(pid835) on /ccwork type autofs 
(rw,fd=5,pgrp=835,minproto=2,maxproto=4)
nas1:/shared on /osd type nfs 
(rw,retrans=10,rsize=8192,wsize=8192,timeo=15,bg,addr=10.200.10.2)
nas1:/h11 on /home/h11 type nfs 
(rw,retrans=10,rsize=8192,wsize=8192,timeo=15,bg,addr=10.200.10.2)
nas1:/h12 on /home/h12 type nfs 
(rw,retrans=10,rsize=8192,wsize=8192,timeo=15,bg,addr=10.200.10.2)
nas1:/h13 on /home/h13 type nfs 
(rw,retrans=10,rsize=8192,wsize=8192,timeo=15,bg,addr=10.200.10.2)
dev3:/ccStore19 on /ccwork/ccStore19 type nfs 
(rw,retrans=10,rsize=8192,wsize=8192,timeo=15,addr=10.200.10.4)

/etc/nsswitch.conf (comments removed)
----------------------------------------------------
passwd:     files nis
shadow:     files nis
group:      files nis
hosts:      files nis dns
bootparams:  files nis
ethers:     files nis
netmasks:   files nis
networks:   files nis
protocols:  files nis
rpc:        files nis
services:   files nis
netgroup:   files nis
publickey:  files nis
automount:  files
aliases:    files nis




_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Help with NFS and automount
  2002-03-16  7:41 Help with NFS and automount Jeffrey S. Mulliken
@ 2002-03-19 10:34 ` Simon Burley
  2002-03-19 21:07   ` Jeffrey S. Mulliken
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Burley @ 2002-03-19 10:34 UTC (permalink / raw)
  To: Jeffrey S. Mulliken; +Cc: nfs

"Jeffrey S. Mulliken" wrote:
> 
> Dear Brainiacs,
> 
>     I am having a problem and have come to the end of what I can think
> of to try.

<snip>

>     PROBLEM:
>     Client machine IPL's without any problems.  All of the machines in
> the host network are accessible via ftp or telnet.
>     Several nfs mounts are mounted via the /etc/fstab, and mount without
> problems, and are useable
>     A particular nfs mount point gets mounted by the automounter
> successfully via a file /etc/auto.ccwork.  No problems there.
>     However, trying to access the same machine as above using the
> program /etc/auto.net, results in "No such file or directory".
>     No errors in /var/log/messages, nor in /var/adm/messages on the
> Solaris host.  I will attach the pertinent files.
> 
>     Any suggestions with be greatly appreciated.

Does /etc/auto.net have the executable bit set?
Does typing /etc/auto.net <hostname> return anything?, eg.

-fstype=nfs,hard,intr,nodev,nosuid,rsize=8192,wsize=8192 \
	/local marge:/local

S.
-- 
" READY. FIRE. AIM. "

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Help with NFS and automount
  2002-03-19 10:34 ` Simon Burley
@ 2002-03-19 21:07   ` Jeffrey S. Mulliken
  0 siblings, 0 replies; 3+ messages in thread
From: Jeffrey S. Mulliken @ 2002-03-19 21:07 UTC (permalink / raw)
  To: Simon Burley, nfs




Simon Burley wrote:

>"Jeffrey S. Mulliken" wrote:
>
>>Dear Brainiacs,
>>
>>    I am having a problem and have come to the end of what I can think
>>of to try.
>>
>
><snip>
>
>>    PROBLEM:
>>    Client machine IPL's without any problems.  All of the machines in
>>the host network are accessible via ftp or telnet.
>>    Several nfs mounts are mounted via the /etc/fstab, and mount without
>>problems, and are useable
>>    A particular nfs mount point gets mounted by the automounter
>>successfully via a file /etc/auto.ccwork.  No problems there.
>>    However, trying to access the same machine as above using the
>>program /etc/auto.net, results in "No such file or directory".
>>    No errors in /var/log/messages, nor in /var/adm/messages on the
>>Solaris host.  I will attach the pertinent files.
>>
>>    Any suggestions with be greatly appreciated.
>>
>
>Does /etc/auto.net have the executable bit set?
>Does typing /etc/auto.net <hostname> return anything?, eg.
>
>-fstype=nfs,hard,intr,nodev,nosuid,rsize=8192,wsize=8192 \
>	/local marge:/local
>
>S.
>
Simon,

    Thanks for the reply.  Yes, /etc/auto.net is executable, and if I 
run the auto.net program as
you suggest it returns the following:

==============================================
[hostname: ] /etc/auto.net dev3
-fstype=nfs,hard,intr,nodev,nosuid \
        /ccStore16 dev3:/ccStore16 \
        /ccStore19 dev3:/ccStore19 \
        /ccStore20 dev3:/ccStore20 \
        /ccStore21 dev3:/ccStore21 \
        /ccStore22 dev3:/ccStore22 \
        /export/home dev3:/export/home
==============================================

But, for some reason, when I try to mount it, I get:

=====================================
[hostnames]# cd /net/dev3
bash: cd: /net/dev3: No such file or directory
=====================================

.....and as I was writing this, I gave it another try, and it's 
resolved. I don't know for sure what
the original problem was, but the machine was originally a RH 6.2 
machine, and I had done
an upgrade to 7.2.  Well, I backed up a couple of files, and did a full 
install, starting with
formatting the partitions.  After the cold install, and 
re-configuration, it now works.  Thanks
to all for any and all head scratching along with me.  

    Cheers....  
   
        Jeff.


_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-03-19 21:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-16  7:41 Help with NFS and automount Jeffrey S. Mulliken
2002-03-19 10:34 ` Simon Burley
2002-03-19 21:07   ` Jeffrey S. Mulliken

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.