Advise for multiple directory/multi-map mounts
Jeff,
I am sorry about sending this directly to you, but I have not been able to post anything to the autofs mailing list in quite awhile. I think I will unsubscribe then resubscribe. Would you please post this for me?
Thanks
Wayne
Quoted 41 lines
______________________________________________
From: Murata, Dennis
Sent: Friday, January 26, 2007 2:06 PM
To: [email protected]
Subject: Advise for multiple directory/multi-map mountsAfter reading the FAQ and various postings from this group, there are a couple of options that I need advise with the approved syntax and any recommendations for either one of the options.
auto.master entry:
/foo/etc/auto.foo
indirect map auto.foo:
* -fstype=nfs,rsize=32768,tcp server1:/foo1/& server2:/foo2/&Server1 and server2 may or may not be the same server, but the server directories foo1 and foo2 are definitely distinct. The subdirectories under foo1 and foo2 do not have overlapping names, but may be moved from one server foo1, to the other server directory foo2. I want it to appear transparently to the client. Because directories are going to be moved, should
no_subtree_checkbe used?The second option I see would use multi-maps.
auto.master entry:
/foo multi: file/etc/auto.foo-- yp map.in.nis
file/etc/auto.foo
* -fstype=nfs,rsize=32768,tcp server1:/foo1/&
NIS map auto.foo
* -fstype=nfs,rsize=32768,tcp server2:/foo2/&I have never used multi-maps, but would it also be possible to use the following:
auto.master entry:
/foo multi: file/etc/auto.foo1-- file/etc/auto.foo2
file/etc/auto.foo1
* -fstype=nfs,rsize=32768,tcp server1:/foo1/&
file/etc/auto.foo2
* -fstype=nfs,rsize=32768,tcp server2:/foo2/&
Quoted 3 lines
Any and all advice and recommendations are greatly appreciated.
Wayne Murata
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
==> On Mon, 29 Jan 2007 13:14:17 -0500, Jeff Moyer <[email protected]> said:
Jeff> From: "Murata, Dennis" <[email protected]> Jeff> Subject: FW: Advise for multiple directory/multi-map mounts Jeff> To: <[email protected]>
Jeff> Date: Mon, 29 Jan 2007 09:57:03 -0800
Jeff> Jeff,
Jeff> I am sorry about sending this directly to you, but I have not been able Jeff> to post anything to the autofs mailing list in quite awhile. I think I Jeff> will unsubscribe then resubscribe. Would you please post this for me?
Jeff> Thanks
Jeff> Wayne
Jeff> > ______________________________________________
Jeff> > From: Murata, Dennis
Jeff> > Sent: Friday, January 26, 2007 2:06 PM
Jeff> > To: [email protected]
Jeff> > Subject: Advise for multiple directory/multi-map mounts
Jeff> >
Jeff> > After reading the FAQ and various postings from this group, there are Jeff> > a couple of options that I need advise with the approved syntax and Jeff> > any recommendations for either one of the options.
Jeff> >
Jeff> > auto.master entry:
Jeff> > /foo /etc/auto.foo
Jeff> > indirect map auto.foo:
Jeff> > * -fstype=nfs,rsize=32768,tcp server1:/foo1/& server2:/foo2/&
Jeff> >
Jeff> > Server1 and server2 may or may not be the same server, but the server Jeff> > directories foo1 and foo2 are definitely distinct. The subdirectories Jeff> > under foo1 and foo2 do not have overlapping names, but may be moved Jeff> > from one server foo1, to the other server directory foo2. I want it Jeff> > to appear transparently to the client. Because directories are going Jeff> > to be moved, should no_subtree_check be used?
This should work, but only in autofs v5. You don't mention anywhere what version of autofs you are using, or under what kernel. There is a chance you can get this to work with v4, if you use the rhel4 packages from my people page:
http://people.redhat.com/jmoyer/autofs/rhel4/
These are only test packages, so the "may eat your data" disclaimer applies. Once I've put the patches through the proper testing, I'll of course submit them for 4.1. However, the right way to move forward is to test out autofs v5.
-Jeff
Sorry I did not include all the information. We are using a modified RHEL 3 update 7. The kernel is 2.4.21-46.Elsmp, autofs is autofs-4.1.3-184, and we are using autofs v4. The customer constraints are such that any change to the build is quite time consuming. I will look into v5, but are any of the options possible for this configuration?
Wayne
-----Original Message-----
From: Jeff Moyer [mailto:[email protected]]
Sent: Monday, January 29, 2007 12:26 PM
To: [email protected]
Cc: Murata, Dennis
Subject: Re: [autofs] [Murata, Dennis] FW: Advise for multiple directory/multi-map mounts
==> On Mon, 29 Jan 2007 13:14:17 -0500, Jeff Moyer <[email protected]> said:
Jeff> From: "Murata, Dennis" <[email protected]> Jeff> Subject: FW: Advise for multiple directory/multi-map mounts Jeff> To: <[email protected]>
Jeff> Date: Mon, 29 Jan 2007 09:57:03 -0800
Jeff> Jeff,
Jeff> I am sorry about sending this directly to you, but I have not been
Jeff> able to post anything to the autofs mailing list in quite awhile.
Jeff> I think I will unsubscribe then resubscribe. Would you please post this for me?
Jeff> Thanks
Jeff> Wayne
Jeff> > ______________________________________________
Jeff> > From: Murata, Dennis
Jeff> > Sent: Friday, January 26, 2007 2:06 PM
Jeff> > To: [email protected]
Jeff> > Subject: Advise for multiple directory/multi-map mounts
Jeff> >
Jeff> > After reading the FAQ and various postings from this group, Jeff> > there are a couple of options that I need advise with the Jeff> > approved syntax and any recommendations for either one of the options.
Jeff> >
Jeff> > auto.master entry:
Jeff> > /foo /etc/auto.foo
Jeff> > indirect map auto.foo:
Jeff> > * -fstype=nfs,rsize=32768,tcp server1:/foo1/&
server2:/foo2/&
Jeff> >
Jeff> > Server1 and server2 may or may not be the same server, but the Jeff> > server directories foo1 and foo2 are definitely distinct. The Jeff> > subdirectories under foo1 and foo2 do not have overlapping Jeff> > names, but may be moved from one server foo1, to the other Jeff> > server directory foo2. I want it to appear transparently to the
Jeff> > client. Because directories are going to be moved, should no_subtree_check be used?
This should work, but only in autofs v5. You don't mention anywhere what version of autofs you are using, or under what kernel. There is a chance you can get this to work with v4, if you use the rhel4 packages from my people page:
http://people.redhat.com/jmoyer/autofs/rhel4/
These are only test packages, so the "may eat your data" disclaimer applies. Once I've put the patches through the proper testing, I'll of course submit them for 4.1. However, the right way to move forward is to test out autofs v5.
-Jeff