Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62819 - autofs automatic use of nfs
Summary: autofs automatic use of nfs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-04 06:25 UTC by INODE64 Sistemas
Modified: 2004-12-08 23:08 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
auto.net (auto.net,1.04 KB, text/plain)
2004-09-04 06:26 UTC, INODE64 Sistemas
Details
patch for auto.master to include auto.net (auto.master.patch,319 bytes, patch)
2004-09-04 06:30 UTC, INODE64 Sistemas
Details | Diff
include in ebuild the copy of auto.net (autofs-3.1.7-r6.ebuild.patch,424 bytes, patch)
2004-09-04 06:30 UTC, INODE64 Sistemas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description INODE64 Sistemas 2004-09-04 06:25:52 UTC
Add automatic mount of nfs

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 INODE64 Sistemas 2004-09-04 06:26:36 UTC
Created attachment 38896 [details]
auto.net

script to mount nfs with autofs
Comment 2 INODE64 Sistemas 2004-09-04 06:30:21 UTC
Created attachment 38897 [details, diff]
patch for auto.master to include auto.net
Comment 3 INODE64 Sistemas 2004-09-04 06:30:43 UTC
Created attachment 38898 [details, diff]
include in ebuild the copy of auto.net
Comment 4 Andy Wang 2004-09-21 09:24:48 UTC
auto.net is actually included in the autofs distribution under the samples directory.  The options in this one are somewhat stripped down:
opts="-fstype=nfs,hard,intr,nodev,nosuid"

but they work good for defaults and people who need to can manually modify them.

FYI, applications like clearcase are much simpler to get up and running when autofs works with /net.
Comment 5 Quentin Arce 2004-11-15 11:06:24 UTC
What else did you have to do to enable /net to work?

I have added the auto.net to /etc/autofs dir and added /net entry to my auto.master per the patch.   What else needs to be done?  I'm getting errors:
in my /var/log/daemon.log of:

Nov 15 10:54:08 oho automount[10832]: attempting to mount entry /net/sins-afara-perforce
Nov 15 10:54:08 oho automount[13382]: lookup(file): looking up sins-afara-perforce
Nov 15 10:54:08 oho automount[13382]: lookup(file): lookup for sins-afara-perforce failed

nslookup resolves sins-afara-perforce, no problem, running auto.net with

seems to work:
oho autofs # sh auto.net sins-afara-perforce
-fstype=nfs,hard,intr,nodev,nosuid \
        /RAID sins-afara-perforce:/RAID
oho autofs #

I know amd still works... I would just like to use autofs
Comment 6 Kate Ward 2004-11-16 01:10:07 UTC
Does your auto.net have the executable bit set?  Your manual run via sh would ignore that problem.
Comment 7 INODE64 Sistemas 2004-11-16 02:18:55 UTC
You have to make a symlink to /net with your remote hostname, example.

ln -s /net/sins-afra-perforce/raid in your mnt directory , for example.

the file auto.net will not be changed.

have you make /net in your root filesystem?
Comment 8 Kate Ward 2004-11-16 04:58:04 UTC
Sym-links should not be created.  The automounter creates and removes the directories as required.
Comment 9 Quentin Arce 2004-11-16 09:02:37 UTC
Great!!! so, I needed to chmod the auto.net... that done now from the daemon.log file it looks like everything is okay but nothing is being mounted still.

Daemon log
Nov 16 08:57:22 oho automount[8255]: attempting to mount entry /net/sins-nap
Nov 16 08:57:22 oho automount[9117]: lookup(program): looking up sins-nap
Nov 16 08:57:22 oho automount[9117]: lookup(program): sins-nap -> -fstype=nfs,hard,intr,nodev,nosuid \
Nov 16 08:57:22 oho automount[9117]: expanded entry: -fstype=nfs,hard,intr,nodev,nosuid
Nov 16 08:57:22 oho automount[9117]: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid


/etc/autofs/auto.net sins-nap

qarce@oho qarce $ /etc/autofs/auto.net sins-nap
-fstype=nfs,hard,intr,nodev,nosuid \
        /vol/vol1 sins-nap:/vol/vol1 \
        /vol/vol1/build1 sins-nap:/vol/vol1/build1 \
qarce@oho qarce $

qarce@oho qarce $ cd /net/sins-nap
bash: cd: /net/sins-nap: No such file or directory
qarce@oho qarce $


Any other ideas why this still is not working?  I use autofs for mounting my home dir w/o problems.

Thanks,

Quentin
Comment 10 Quentin Arce 2004-12-01 11:28:50 UTC
Okay... Problem solved. 

THANK YOU Kate!!!

version 3.x of autofs does not seem to support auto.net very well.  

version 4.x seems to work perfectly.

On an ACCEPT_KEYWORDS="x86" (mostly stable) system run the following:
              ACCEPT_KEYWORDS="~x86" emerge autofs

Then add the above patches as needed.

And last of all enjoy.

Q
Comment 11 Quentin Arce 2004-12-01 11:33:02 UTC
Hey Ryan,

I think this bug can be closed with the addition of auto.net to the 4.x ebuild for autofs and the adding of the auto.master patch... well with the /net auto.net line commented out by default.

Just my $0.02

Q
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-12-08 23:07:33 UTC
in autofs-4.1.3-r1.