From: Peter Staubach <staubach@redhat.com>
To: Jeff Moyer <jmoyer@redhat.com>
Cc: autofs@linux.kernel.org, Ian Kent <raven@themaw.net>
Subject: Re: using both nfs3 and nfs4 in a single mount map
Date: Wed, 01 Aug 2007 15:42:37 -0400 [thread overview]
Message-ID: <46B0E22D.8060406@redhat.com> (raw)
In-Reply-To: <x49643z6o8o.fsf@segfault.boston.redhat.com>
Jeff Moyer wrote:
> Peter Staubach <staubach@redhat.com> writes:
>
>
>> Jeff Moyer wrote:
>>
>>> Ian Kent <raven@themaw.net> writes:
>>>
>>>
>>>
>>>> On Mon, 2007-07-30 at 15:36 +0200, Lukas Kolbe wrote:
>>>>
>>>>
>>>>> Hi Ian, thanks for your support!
>>>>>
>>>>>
>>>>>>> Presumably the exports are distinct, in which case using a list of
>>>>>>> server should allow autofs to try each one?
>>>>>>>
>>>>>>>
>>>>> Yep, they are - differnet homes come from different servers.
>>>>>
>>>>>>> What about trying something like:
>>>>>>>
>>>>>>>
>>>>>> On second thoughts this may get only the nfs4 or only the nfs3 servers
>>>>>> as well.
>>>>>>
>>>>>>
>>>>> Automount now mounts fine from all servers, but still nfs3
>>>>> only. /proc/mounts shows me:
>>>>>
>>>>> figaro:/users/xxx /homes/xxx nfs rw,nosuid,vers=3,rsize=32768,wsize=32768,hard,intr,proto=tcp,timeo=600,retrans=2,sec=sys,addr=figaro 0 0
>>>>> bongossi:/export/yyy /homes/yyy nfs rw,nosuid,vers=3,rsize=1048576,wsize=1048576,hard,intr,proto=tcp,timeo=600,retrans=2,sec=sys,addr=bongossi 0 0
>>>>>
>>>>> where figaro only exports nfs v3, bongossi exports both v4 and v3 and we
>>>>> really would like to use v4.
>>>>>
>>>>>
>>>> Actually, a multi map entry in the master map would probably work.
>>>> Initially I missed this out of version 5 (by accident) so you'll need
>>>> the patch on kernel.org that adds it. In fact I'd recommend applying all
>>>> the 5.0.2 patches.
>>>>
>>>> So forget the last suggestion and patch and apply all the 5.0.2 patches
>>>> on kernel.org and try a line in the master map like:
>>>>
>>>> /homes multi yp auto_homes -fstype=nfs4,nosuid,grpid,nobrowse,proto=tcp,port=2049 -- \
>>>> yp auto_homes -fstype=nfs,nosuid,grpid,nobrowse,proto=tcp,port=2049
>>>>
>>>> and see if that gets what you need. The nfs4 one needs to be first
>>>> because the v4 servers provide both v4 and v3.
>>>>
>>>>
>>> That won't work as the cache code will not even add the second set of
>>> entries for the keys:
>>>
>>> cache_update:
>>> } else {
>>> /* Already seen one of these */
>>> if (me->age == age)
>>> return CHE_OK;
>>>
>> All these excellent suggestions and analysis notwithstanding,
>> wouldn't it be easier to build a version of the NFS mount
>> command which defaulted to NFSv4?
>>
>
> Precisely. I wasn't sure if that was an option, though. We were slow
> to move to nfsv3 as the default, as I recall.
Actually, I was thinking that these folks who really want to use
NFSv4 could build their version...
Or, they could build a pseudo-wrapper sort of thing for the mount
command and have autofs invoke it. This way, they could move the
smarts for their policy into it instead of attempting to depend
upon and/or mangle autofs into doing it.
Thanx...
ps
next prev parent reply other threads:[~2007-08-01 19:42 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-27 15:24 using both nfs3 and nfs4 in a single mount map Lukas Kolbe
2007-07-27 15:38 ` Ian Kent
2007-07-27 15:45 ` Lukas Kolbe
2007-07-28 7:15 ` Ian Kent
2007-07-28 7:22 ` Ian Kent
2007-07-30 13:36 ` Lukas Kolbe
2007-07-30 14:38 ` Ian Kent
2007-07-30 14:54 ` Ian Kent
2007-07-31 20:38 ` AutoFS5 Ldap base strangeness Jim Summers
2007-08-01 13:13 ` using both nfs3 and nfs4 in a single mount map Lukas Kolbe
2007-08-01 16:27 ` Murata, Dennis
2007-08-03 3:16 ` Ian Kent
2007-08-03 15:44 ` Jeff Moyer
2007-08-10 13:25 ` Lukas Kolbe
2007-08-13 3:22 ` Ian Kent
2007-08-13 3:29 ` Ian Kent
2007-08-13 14:06 ` Lukas Kolbe
2007-08-01 19:12 ` Jeff Moyer
2007-08-01 19:29 ` Peter Staubach
2007-08-01 19:36 ` Jeff Moyer
2007-08-01 19:42 ` Peter Staubach [this message]
2007-10-01 20:16 ` Lukas Kolbe
2007-10-02 4:36 ` Ian Kent
-- strict thread matches above, loose matches on Subject: below --
2007-07-27 15:09 Lukas Kolbe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46B0E22D.8060406@redhat.com \
--to=staubach@redhat.com \
--cc=autofs@linux.kernel.org \
--cc=jmoyer@redhat.com \
--cc=raven@themaw.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.