Hi,
I'm trying to use autofs to automatically mount CIFS shares but running into a strange issue.
I've followed this guide:
http://wiki.centos.org/TipsAndTricks...e1aeaa80bb20b8
and the issue I'm having is this (df output):
Code:
df: `/mnt/mysqlbackup/mysqlbackup': No such file or directory
Now my files look like this:
auto.master
Code:
#
# $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
#
# 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
/mnt/mysqlbackup /auto.smb.top
auto.smb.top
Code:
-fstype=autofs,-Dhost=& file:/etc/auto.smb.sub
auto.smb.sub
Code:
* -fstype=cifs,user,uid=505,rw,suid,credentials=/root/.mysqlbackup.txt ://172.31.8.158/mysqlbackup
basically I've tried all combinations of putting and removing the * infront of the -fstype parameter and putting in or taking out the /mnt/mysqlbackup from the auto.master file...
whenever I try and mount using:
Code:
* -fstype=autofs,-Dhost=& file:/etc/auto.smb.sub
* -fstype=cifs,user,uid=505,rw,suid,credentials=/root/.mysqlbackup.txt ://172.31.8.158/mysqlbackup
I get some kind of recursive directory mount which was basically the df output above mysqlbackup/mysqlbackup ???
How can I just have 1 level of mysqlbackup so that the mount looks like:
/mnt/mysqlbackup/...
Can anyone help?
Thanks