LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-23-2014, 04:46 AM   #1
killout
LQ Newbie
 
Registered: Nov 2012
Posts: 14

Rep: Reputation: Disabled
How to use automounter for bind?


Hello.
I used to use fstab for nfs mounts, but now want to move them to autofs.

We have rhel and opensuse, and we need to bind directories depending on os, for example
/tools/local on rhel mounted with -bind to /tools/rhel
and
/tools/local on opensuse mounted with -bind to /tools/opensuse

But when I try to do it via autofs it fails on such bind mounting.
In /etc/auto.master
Code:
/-      /etc/auto.smi
In /etc/auto.smi
Code:
/sw             -rw                 192.168.0.192:/sw
/sw/tools/local -rw                 192.168.0.192:/sw/tools/rhel
And I also have tried to
Code:
/sw/tools/local -fstype=bind                 :/sw/tools/rhel
Any ideas how to achieve, that /tools/local contain appropriate content, depending on OS ?

Thanks!
 
  


Reply

Tags
autofs, automounter


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
How to use automounter for bind? killout Linux - Software 2 03-23-2014 05:17 AM
automounter question pyroman59 Linux - Newbie 2 10-19-2011 09:41 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:25 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