LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2009, 08:26 AM   #1
rbell54
LQ Newbie
 
Registered: Apr 2009
Location: Florida
Posts: 19

Rep: Reputation: 0
Configure Automounter


I'm not sure exactly how to set up and configure automounter:

I have ServerA, ServerB and ServerC
On ServerB I have a filesystem called /oarchive and exported to ServerA
On ServerC I have a filesystem called /db_backup and exported to ServerA

I want to auto mount both of the filesystem on ServerA.
I had this initial set up in /etc/fstab
ServerB:/oarchive /oarchive nfs default,rsize=32768,wsize=32768,hard 0 0
ServerC:/db_backup /db_backup nfs default,rsize=32768,wsize=32768,hard 1 2

So here's the steps below I think I need to do:

So here's what I think I need to do:
1. Add in /etc/auto.master
/oarchive /etc/auto.oarchive --timeout=60
/db_backup /etc/auto.db_backup --timeout=60

2. Add in /etc/auto.misc
ServerB -rw,intr,hard ServerB:/oarchive
ServerC -rw,intr,hard ServerC:/db_backup

3. service autofs start

Will this work or do I need to add additional information to get this to work? Also if I do this then I need to remove the nfs file from /etc/fstab? Please help...

Last edited by rbell54; 07-01-2009 at 08:29 AM.
 
Old 07-02-2009, 02:21 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
I haven't used autofs in some time, but the lines in the auto.master file point to the file that contains the actual mount commands. Your auto.misc file would be completely ignored in this configuration.

"/oarchive /etc/auto.oarchive --timeout=60" means "the directory /oarchive will hold the mountpoints for the devices controlled by the file /etc/auto.oarchive"

I found this page very helpful in configuring autofs when I was using it.

As for your last question, you don't need to remove the line from fstab completely, but you should set it to "noauto" so that it doesn't mount the share when you don't want it to.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is your automounter? Linux.tar.gz Linux - Software 32 02-11-2007 10:23 AM
Automounter jshim Red Hat 2 01-17-2007 02:26 PM
2.6.18 kernel and automounter KimVette SUSE / openSUSE 2 10-28-2006 09:44 PM
subfs automounter ronald-be Linux - Hardware 2 08-22-2004 11:46 AM
CD drive automounter pe2338 Debian 17 08-21-2003 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration