Re: [opensuse] Losing NFS mounts on 11.1



Hi there,

On Mon, 03 Aug 2009, 14:54:03 +0200, James Pifer wrote:
On Sat, 2009-08-01 at 19:09 -0400, Ciro Iriarte wrote:
AutoFS might be a good option too, it will mount the share on demand
(each time a user requests to access the mount point.

Regards,
Ciro

Trying autofs. No luck getting it to work so far. Looking at the man
page and google, but not sure what I'm doing wrong.

My auto.master has:
#
# 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
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
#/net -hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
/home/user/shares auto.shares


I created an executable /etc/auto.shares and it has:

No need to make it executable; this is only needed for a real shell
script emitting some dynamically calculated data - for an example, take
a look at /etc/auto.net

storage rw 192.168.0.22:/storage
mythtv rw 192.168.0.16:/mythtv

This should look like:

storage -tcp,rw,hard,intr,rsize=32768,wsize=32768 192.168.0.22:/storage
mythtv -tcp,rw,hard,intr,rsize=32768,wsize=32768 192.168.0.16:/mythtv

With this map, you can access e.g. 192.168.0.22:/storage at
/home/user/shares/storage .

Of course, the "tcp", "rsize=" and "wsize=" options depend on your actual
network settings.

You can find all the details about the autofs *maps* in autofs(5).

Start the autofs service.


In /var/log/messages I get nothing, but it doesn't automount either.

Any ideas?

Thanks,
James

HTH, cheers.

l8er
manfred
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [autofs] [RFC] Towards a Modern Autofs
    ... entangling autofs with that work. ... > map is mounted. ... I don't quite see the need for the mapkey mount option. ... But in sec. 5.3.2 I see you making filesystem dirs in /tmp which seem to ...
    (Linux-Kernel)
  • Re: volume mgmt w/o gnome
    ... mount this camera myself? ... ease with which the gnome/kde folk are able to use USB MSDs. ... set up a link in /media to the autofs mount. ... writes an autofs map for that device and then reloads autofs. ...
    (Debian-User)
  • Re: [autofs] [RFC] Towards a Modern Autofs
    ... >entangling autofs with that work. ... >filesystem it's willing to export. ... >>map is mounted. ... The result is that some users will see mount points ...
    (Linux-Kernel)
  • Re: [autofs] [RFC] Towards a Modern Autofs
    ... points in the autofs filesystem has always been hard and error prone. ... Is the plan a new kernel module or are we talking about ... My thoughts on map info and cacheing of it will come when I have had more ... every direct mount? ...
    (Linux-Kernel)
  • Re: [PATCH 3/4] autofs4 - track uid and gid of last mount requestor
    ... the lookup we set macros for several mount map substitution variables, ... I think there is some confusion surrounding what the UID and GID are ... it would be given the uid in the user namespace which autofs 'knows'. ...
    (Linux-Kernel)