Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-05-2012, 12:45 PM   #1
LQ Newbie
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
Redhat autofs mounting problems

Hi, Thanks for taking the time to read this.

Im trying to dynamicaly mount a directory on anotehr server but cant figure out for the life of me how to do this. Ive read just about the pages google can throw at me on this but alas im coming up blank.

For examples sake i have two server (server2 and server3).
on server 2 it has a folder /images and im wanting to mount this to server3 to the folder /net/server2/export/home/images/

What ive done so far is to edit the /etc/auto.master on server2 so it reads
/images /etc/auto.misc
and in /etc/auto.misc ive put
* -fstype=nfs4,soft,intr,rsize=32768,wsize=32768,nosuid server2IP:/images
and then
/sbin/service autofs restart
/sbin/service autofs status
/sbin/service autofs reload
Then im stuck as to what I need to do on server3 or if ive got the contents right of the master / misc files.

I have successfuly mounted the said drive using normal nfs mount command so I know that it works, its just by lack of autofs knowledge thats halting my progression.

If anyone could point me out where im going wrong that would be great

Thanks again
Old 10-05-2012, 12:55 PM   #2
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
can you manually mount the nfs share?

if so, please type the exact command (less IP, user/pw real data)

try this link too:

Last edited by lleb; 10-05-2012 at 12:57 PM.
Old 10-05-2012, 12:56 PM   #3
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,943
Blog Entries: 14

Rep: Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160
/net is a special setup that gives quick access without normal mounting to any filesystem that the host (NFS client) has access to due to the export from the original server (NFS server). You do NOT configure mount directories under /net.

In your case server2 is the NFS server and server3 is the NFS client.
On server2 you have to export /images in /etc/exports just as you would for a normal NFS (non-autofs) mount. That is to say autofs deals only with the client side and the server side setup is the same whether doing traditional or autofs.

Once you've exported from server2 with appropriate permissions for server3 then on server3 you would access the filesystem by going to /net/server2/images.

If you instead want a different path to images you CAN configure that via automounter but you should make your target mount somewhere else on server3 that is NOT in /net (e.g. /mnt/server2/export/home/images/).
1 members found this post helpful.
Old 10-08-2012, 03:53 AM   #4
LQ Newbie
Registered: Oct 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Originally Posted by lleb View Post
can you manually mount the nfs share?

if so, please type the exact command (less IP, user/pw real data)

try this link too:
mount -t nfs server2:/images /home/images

and that works fine, I just dont know what i should be putting in /etc/auto.misc and /etc/auto.master


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
Need help : want to different mounting on the same folder (fstab, autofs) herofmm Linux - Networking 1 02-14-2009 01:25 AM
autofs mounting problem vm_devadas Linux - Networking 2 12-21-2007 05:25 AM
autofs not mounting (FC4) phyrko Linux - Software 2 01-17-2006 02:22 PM
how to use autofs for mounting windows partition abhis_mail2002 Fedora 6 12-19-2005 12:41 AM
Automatic mounting without autofs installed hampel Linux - Distributions 0 07-04-2003 11:00 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:53 PM.

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