* using both nfs3 and nfs4 in a single mount map @ 2007-07-27 15:24 Lukas Kolbe 2007-07-27 15:38 ` Ian Kent 2007-10-01 20:16 ` Lukas Kolbe 0 siblings, 2 replies; 24+ messages in thread From: Lukas Kolbe @ 2007-07-27 15:24 UTC (permalink / raw) To: autofs Hi! Is it possible to us nfs4 and as a fallback nfs3 in a single mount map? We have /homes coming from many different servers, the older ones only speak v3 and the newer ones would love to speak v4 as we would. Currently, auto.master looks like this: /homes yp:auto_homes -nosuid,grpid,nobrowse,-fstype=nfs4,proto=tcp,port=2049 This of course only works for the nfs4-capable fileservers. Is there any way to also get the old fileservers into this game again? Using only nfsv3 is no option unfortunately; as is converting all to nfs4 at once :( -- Lukas ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 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-10-01 20:16 ` Lukas Kolbe 1 sibling, 1 reply; 24+ messages in thread From: Ian Kent @ 2007-07-27 15:38 UTC (permalink / raw) To: Lukas Kolbe; +Cc: autofs On Fri, 2007-07-27 at 17:24 +0200, Lukas Kolbe wrote: > Hi! > > Is it possible to us nfs4 and as a fallback nfs3 in a single mount map? > > We have /homes coming from many different servers, the older ones only > speak v3 and the newer ones would love to speak v4 as we would. > Currently, auto.master looks like this: > > /homes yp:auto_homes -nosuid,grpid,nobrowse,-fstype=nfs4,proto=tcp,port=2049 > > This of course only works for the nfs4-capable fileservers. Is there any > way to also get the old fileservers into this game again? > Using only nfsv3 is no option unfortunately; as is converting all to > nfs4 at once :( I'll have to think about for a while and have a look at the code. What does your auto_homes look like? What version of autofs and kernel? Ian ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 2007-07-27 15:38 ` Ian Kent @ 2007-07-27 15:45 ` Lukas Kolbe 2007-07-28 7:15 ` Ian Kent 0 siblings, 1 reply; 24+ messages in thread From: Lukas Kolbe @ 2007-07-27 15:45 UTC (permalink / raw) To: Ian Kent; +Cc: autofs Hi Ian, > > I'll have to think about for a while and have a look at the code. Thank you :) > What does your auto_homes look like? ypmatch is my friend: lkolbe@komagatake ypmatch lkolbe auto_homes figaro:/users/rbghiwis01/rbghiwis/& lkolbe@komagatake ypmatch fstest auto_homes thor:/export/rbg/homes/staff/& lkolbe@komagatake ypmatch vkgnome auto_homes figaro:/users/stud09/stud/& Where figaro is a Solaris 8 or 9 server serving nfs3, thor is a solaris 10 box serving nfs4 from zfs-volumes. > What version of autofs and kernel? > I currently tried it for testing on linux 2.6.18 (ubuntu dapper), autofs 5.0.2 (backported from debian experimental). That would be the production environment for a few more months :) > Ian > -- Lukas ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 2007-07-27 15:45 ` Lukas Kolbe @ 2007-07-28 7:15 ` Ian Kent 2007-07-28 7:22 ` Ian Kent 0 siblings, 1 reply; 24+ messages in thread From: Ian Kent @ 2007-07-28 7:15 UTC (permalink / raw) To: Lukas Kolbe; +Cc: autofs On Fri, 2007-07-27 at 17:45 +0200, Lukas Kolbe wrote: > Hi Ian, > > > > I'll have to think about for a while and have a look at the code. > > Thank you :) > > > What does your auto_homes look like? > > ypmatch is my friend: > > lkolbe@komagatake ypmatch lkolbe auto_homes > figaro:/users/rbghiwis01/rbghiwis/& > lkolbe@komagatake ypmatch fstest auto_homes > thor:/export/rbg/homes/staff/& > lkolbe@komagatake ypmatch vkgnome auto_homes > figaro:/users/stud09/stud/& > > Where figaro is a Solaris 8 or 9 server serving nfs3, thor is a solaris > 10 box serving nfs4 from zfs-volumes. Presumably the exports are distinct, in which case using a list of server should allow autofs to try each one? What about trying something like: In the master map put: /homes auto_homes nosuid,grpid,nobrowse,proto=tcp,port=2049 In NIS auto_homes put: * thor:/export/rbg/homes/staff/& figaro:/users/rbghiwis01/rbghiwis/& figaro:/users/stud09/stud/& With the order determined by the server likely to get the most hits. Ensure that /etc/nsswitch has: automount: files nis and /etc/auto_homes, either doesn't exist or contains, as the last line, +auto_homes And finally this patch. Beware, I haven't even compile tested this and I know I excluded the NFS4 here for a reason, which I can't remember atm. Ian --- diff --git a/modules/mount_nfs.c b/modules/mount_nfs.c index 25f72b9..7083200 100644 --- a/modules/mount_nfs.c +++ b/modules/mount_nfs.c @@ -130,8 +130,10 @@ int mount_mount(struct autofs_point *ap, const char *root, const char *name, int if (strcmp(fstype, "nfs4") == 0) vers = NFS4_VERS_MASK | NFS_PROTO_MASK; - else + else if (strcmp(fstype, "nfs") == 0) vers = NFS_VERS_MASK | NFS_PROTO_MASK; + else + vers = NFS4_VERS_MASK | NFS_VERS_MASK | NFS_PROTO_MASK; if (!parse_location(&hosts, what)) { warn(ap->logopt, MODPREFIX "no hosts available"); ^ permalink raw reply related [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 2007-07-28 7:15 ` Ian Kent @ 2007-07-28 7:22 ` Ian Kent 2007-07-30 13:36 ` Lukas Kolbe 0 siblings, 1 reply; 24+ messages in thread From: Ian Kent @ 2007-07-28 7:22 UTC (permalink / raw) To: Lukas Kolbe; +Cc: autofs On Sat, 2007-07-28 at 15:15 +0800, Ian Kent wrote: > On Fri, 2007-07-27 at 17:45 +0200, Lukas Kolbe wrote: > > Hi Ian, > > > > > > I'll have to think about for a while and have a look at the code. > > > > Thank you :) > > > > > What does your auto_homes look like? > > > > ypmatch is my friend: > > > > lkolbe@komagatake ypmatch lkolbe auto_homes > > figaro:/users/rbghiwis01/rbghiwis/& > > lkolbe@komagatake ypmatch fstest auto_homes > > thor:/export/rbg/homes/staff/& > > lkolbe@komagatake ypmatch vkgnome auto_homes > > figaro:/users/stud09/stud/& > > > > Where figaro is a Solaris 8 or 9 server serving nfs3, thor is a solaris > > 10 box serving nfs4 from zfs-volumes. > > Presumably the exports are distinct, in which case using a list of > server should allow autofs to try each one? > > What about trying something like: On second thoughts this may get only the nfs4 or only the nfs3 servers as well. > > In the master map put: > /homes auto_homes nosuid,grpid,nobrowse,proto=tcp,port=2049 > > In NIS auto_homes put: > * thor:/export/rbg/homes/staff/& figaro:/users/rbghiwis01/rbghiwis/& figaro:/users/stud09/stud/& > > With the order determined by the server likely to get the most hits. > > Ensure that /etc/nsswitch has: > automount: files nis > > and /etc/auto_homes, either doesn't exist or contains, as the last line, > +auto_homes > > And finally this patch. > Beware, I haven't even compile tested this and I know I excluded the > NFS4 here for a reason, which I can't remember atm. > > Ian > > --- > diff --git a/modules/mount_nfs.c b/modules/mount_nfs.c > index 25f72b9..7083200 100644 > --- a/modules/mount_nfs.c > +++ b/modules/mount_nfs.c > @@ -130,8 +130,10 @@ int mount_mount(struct autofs_point *ap, const char *root, const char *name, int > > if (strcmp(fstype, "nfs4") == 0) > vers = NFS4_VERS_MASK | NFS_PROTO_MASK; > - else > + else if (strcmp(fstype, "nfs") == 0) > vers = NFS_VERS_MASK | NFS_PROTO_MASK; > + else > + vers = NFS4_VERS_MASK | NFS_VERS_MASK | NFS_PROTO_MASK; > > if (!parse_location(&hosts, what)) { > warn(ap->logopt, MODPREFIX "no hosts available"); > > > _______________________________________________ > autofs mailing list > autofs@linux.kernel.org > http://linux.kernel.org/mailman/listinfo/autofs ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 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 0 siblings, 2 replies; 24+ messages in thread From: Lukas Kolbe @ 2007-07-30 13:36 UTC (permalink / raw) To: Ian Kent; +Cc: autofs 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. In fact, we have to use v4 here as every home directory is a seperate ZFS volume, and nfs3 has issues scaling to over a hundered simultanous mounts on linux that nfs4 has not. On the old fileservers, we have the homes sitting in about 10 to 20 different volumes and use a hack to only mount these few volumes per nfs3 and then bind-mount each individual home locally. > > > > In the master map put: > > /homes auto_homes nosuid,grpid,nobrowse,proto=tcp,port=2049 > > > > In NIS auto_homes put: > > * thor:/export/rbg/homes/staff/& figaro:/users/rbghiwis01/rbghiwis/& figaro:/users/stud09/stud/& > > > > With the order determined by the server likely to get the most hits. > > > > Ensure that /etc/nsswitch has: > > automount: files nis This works indeed like a charme, autofs is also expiring the mounts correctly. > > and /etc/auto_homes, either doesn't exist or contains, as the last line, > > +auto_homes > > > > And finally this patch. > > Beware, I haven't even compile tested this and I know I excluded the > > NFS4 here for a reason, which I can't remember atm. I don't really know what this patch is supposed to do :), but it applied and works. I suppose it should try nfs4 if no explicit -fstype= is given? Apropros expiring mounts: I get Jul 30 15:31:12 sorpe automount[14121]: umount_multi: could not stat fs of /homes/yyy in syslog and /homes/yyy is still mounted; but I guess this is an Issue that I'll try to cover after the nfs3 versus nfs4 thing. By the way thanks to your patient support I slowly begin to understand how autofs really works. Thanks! -- Lukas ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 2007-07-30 13:36 ` Lukas Kolbe @ 2007-07-30 14:38 ` Ian Kent 2007-07-30 14:54 ` Ian Kent 1 sibling, 0 replies; 24+ messages in thread From: Ian Kent @ 2007-07-30 14:38 UTC (permalink / raw) To: Lukas Kolbe; +Cc: autofs 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. That is difficult because the selection is supposed to return the largest list of servers that support the highest protocol version, sorted by rpc ping response time. If we change it to return a list ordered by nfs version with each version sorted by rpc response then it no longer satisfies the requirements of replicated server selection. > > In fact, we have to use v4 here as every home directory is a seperate > ZFS volume, and nfs3 has issues scaling to over a hundered simultanous > mounts on linux that nfs4 has not. > > On the old fileservers, we have the homes sitting in about 10 to 20 > different volumes and use a hack to only mount these few volumes per > nfs3 and then bind-mount each individual home locally. > > > > > > > In the master map put: > > > /homes auto_homes nosuid,grpid,nobrowse,proto=tcp,port=2049 > > > > > > In NIS auto_homes put: > > > * thor:/export/rbg/homes/staff/& figaro:/users/rbghiwis01/rbghiwis/& figaro:/users/stud09/stud/& > > > > > > With the order determined by the server likely to get the most hits. > > > > > > Ensure that /etc/nsswitch has: > > > automount: files nis > > This works indeed like a charme, autofs is also expiring the mounts > correctly. > > > > and /etc/auto_homes, either doesn't exist or contains, as the last line, > > > +auto_homes > > > > > > And finally this patch. > > > Beware, I haven't even compile tested this and I know I excluded the > > > NFS4 here for a reason, which I can't remember atm. > > I don't really know what this patch is supposed to do :), but it applied > and works. > I suppose it should try nfs4 if no explicit -fstype= is given? At some point I found I had to treat nfs4 a little differently and that's why they were seperated. > > > Apropros expiring mounts: I get > > Jul 30 15:31:12 sorpe automount[14121]: umount_multi: could not stat fs of /homes/yyy > > in syslog and /homes/yyy is still mounted; but I guess this is an Issue > that I'll try to cover after the nfs3 versus nfs4 thing. Not sure about that but perhaps later. > By the way thanks to your patient support I slowly begin to understand > how autofs really works. Thanks! > ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 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 ` (2 more replies) 1 sibling, 3 replies; 24+ messages in thread From: Ian Kent @ 2007-07-30 14:54 UTC (permalink / raw) To: Lukas Kolbe; +Cc: autofs 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. Ian ^ permalink raw reply [flat|nested] 24+ messages in thread
* AutoFS5 Ldap base strangeness 2007-07-30 14:54 ` Ian Kent @ 2007-07-31 20:38 ` Jim Summers 2007-08-01 13:13 ` using both nfs3 and nfs4 in a single mount map Lukas Kolbe 2007-08-01 19:12 ` Jeff Moyer 2 siblings, 0 replies; 24+ messages in thread From: Jim Summers @ 2007-07-31 20:38 UTC (permalink / raw) To: autofs hello all, I am just about to get my automounting working with autofs5 and my ldap. I am able to start the automount daemon and it loads and reads /home map, which points at ou=auto.home for the user's home directory location and options. but when i attempt to su - <user> it can not mount the user's home. here is what i see in the ldap server's access log: === [31/Jul/2007:15:28:19 -0500] conn=8420 op=1 SRCH base="cn=sfu,ou=auto.home,dc=it,dc=ou,dc=edu" scope=2 filter="(&(objectClass=automount)(|(automountKey=tmac)(automountKey=/)))" attrs="automountKey automountInformation" [31/Jul/2007:15:28:19 -0500] conn=8420 op=1 RESULT err=0 tag=101 nentries=0 etime=0 [31/Jul/2007:15:28:19 -0500] conn=8420 op=2 UNBIND === the weird part of the above is, in the first line it says "cn=sfu" but then also says automountKey=tmac the su command is: su - tmac so the correct username is tmac not sfu. any ideas where the sfu thing is coming from?? is the info cached somewhere? I ask because when I start the daemon, i can see in the logs where it does: === [31/Jul/2007:15:35:40 -0500] conn=8536 op=1 SRCH base="ou=auto.home,dc=it,dc=ou,dc=edu" scope=2 filter="(objectClass=automount)" attrs="1.1" [31/Jul/2007:15:35:40 -0500] conn=8536 op=1 RESULT err=0 tag=101 nentries=617 etime=0 === which is returning 617 entries. not sure what i have wroong here?? TIA -- Jim Summers School of Computer Science-University of Oklahoma ------------------------------------------------- ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 2007-07-30 14:54 ` Ian Kent 2007-07-31 20:38 ` AutoFS5 Ldap base strangeness Jim Summers @ 2007-08-01 13:13 ` Lukas Kolbe 2007-08-01 16:27 ` Murata, Dennis 2007-08-03 3:16 ` Ian Kent 2007-08-01 19:12 ` Jeff Moyer 2 siblings, 2 replies; 24+ messages in thread From: Lukas Kolbe @ 2007-08-01 13:13 UTC (permalink / raw) To: Ian Kent; +Cc: autofs Hi Ian, > > 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: Ok, done that :). > /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. This only gives me the nfs4 mounts, it seems like the second part of the multimount is not evaluated when the first one says "I don't have that directory you asked me about": root@sorpe:/# ls -la /homes/yyy ls: /homes/yyy: Permission denied Which is correct and comes from bongossi, root@sorpe:/# ls -la /homes/xxx ls: /homes/xxx: No such file or directory which should also say permission denied and should come from figaro. > Ian -- Lukas ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 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 1 sibling, 0 replies; 24+ messages in thread From: Murata, Dennis @ 2007-08-01 16:27 UTC (permalink / raw) To: Lukas Kolbe, Ian Kent; +Cc: autofs I have also tried the multi feature with autofs-5.0.2-7 on a RHEL 5 workstation. The auto.master entry I used on RHEL 3 autofs-4.1.3--184 was: /pa multi:file /etc/auto.pa -- yp auto.pa The /etc/auto.pa and the yp map auto.pa were single line entries: * server:/local/foo/& and * server:/local/foo1/& I modified the auto.master entry for autofs-5.0.2-7: /pa multi file /etc/auto.pa -- yp auto.pa And tried to use the same /etc/auto.pa and nis auto.pa. This did not work, it would not search the second entry. If I added +auto.pa to the /etc/auto.pa file, it would only search the yp map. If I changed the file /etc/auto.pa from using a wildcard to specifying each directory things started working. Is this the problem you are seeing? Is there anyway to allow wildcards in both maps? Wayne -----Original Message----- From: autofs-bounces@linux.kernel.org [mailto:autofs-bounces@linux.kernel.org] On Behalf Of Lukas Kolbe Sent: Wednesday, August 01, 2007 8:14 AM To: Ian Kent Cc: autofs@linux.kernel.org Subject: Re: [autofs] using both nfs3 and nfs4 in a single mount map Hi Ian, > > figaro:/users/xxx /homes/xxx nfs > > rw,nosuid,vers=3,rsize=32768,wsize=32768,hard,intr,proto=tcp,timeo=6 > > 00,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,tim > > eo=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: Ok, done that :). > /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. This only gives me the nfs4 mounts, it seems like the second part of the multimount is not evaluated when the first one says "I don't have that directory you asked me about": root@sorpe:/# ls -la /homes/yyy ls: /homes/yyy: Permission denied Which is correct and comes from bongossi, root@sorpe:/# ls -la /homes/xxx ls: /homes/xxx: No such file or directory which should also say permission denied and should come from figaro. > Ian -- Lukas _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 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 1 sibling, 1 reply; 24+ messages in thread From: Ian Kent @ 2007-08-03 3:16 UTC (permalink / raw) To: Lukas Kolbe; +Cc: autofs On Wed, 2007-08-01 at 15:13 +0200, Lukas Kolbe wrote: > Hi Ian, > > > > 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: > > Ok, done that :). > > > /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. > > This only gives me the nfs4 mounts, it seems like the second part of the > multimount is not evaluated when the first one says "I don't have that > directory you asked me about": Aaah yes, of course, sorry about that. That would be because the first encountered key is used to decide pass or fail. We've discussed this behavior in the past so it really has to remain. Ian ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 2007-08-03 3:16 ` Ian Kent @ 2007-08-03 15:44 ` Jeff Moyer 2007-08-10 13:25 ` Lukas Kolbe 0 siblings, 1 reply; 24+ messages in thread From: Jeff Moyer @ 2007-08-03 15:44 UTC (permalink / raw) To: Ian Kent; +Cc: autofs Ian Kent <raven@themaw.net> writes: > On Wed, 2007-08-01 at 15:13 +0200, Lukas Kolbe wrote: >> Hi Ian, >> >> > > 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: >> >> Ok, done that :). >> >> > /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. >> >> This only gives me the nfs4 mounts, it seems like the second part of the >> multimount is not evaluated when the first one says "I don't have that >> directory you asked me about": > > Aaah yes, of course, sorry about that. > That would be because the first encountered key is used to decide pass > or fail. No, it is because the second key was never added to the cache. See my earlier, somewhat cryptic message on this. As Pete said, if the default should be nfs4, that should happen in mount. -Jeff ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 2007-08-03 15:44 ` Jeff Moyer @ 2007-08-10 13:25 ` Lukas Kolbe 2007-08-13 3:22 ` Ian Kent 0 siblings, 1 reply; 24+ messages in thread From: Lukas Kolbe @ 2007-08-10 13:25 UTC (permalink / raw) To: Jeff Moyer; +Cc: autofs, Ian Kent Hi! > >> > /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. > >> > >> This only gives me the nfs4 mounts, it seems like the second part of the > >> multimount is not evaluated when the first one says "I don't have that > >> directory you asked me about": > > > > Aaah yes, of course, sorry about that. > > That would be because the first encountered key is used to decide pass > > or fail. > > No, it is because the second key was never added to the cache. See my > earlier, somewhat cryptic message on this. > > As Pete said, if the default should be nfs4, that should happen in mount. Yes and no :) I'm currently trying to understand the autofs5 code and stumbled upon modules/replicated.c, function prune_host_list that get's called from mount_nfs.c and *somehow* decides wether to try nfs4 or other nfs versions. Would any of you be so kind and explain the way that the information from the entry in the auto.master-map (-fstype=nfs4 or =nfs) gets propagated down to the actual mount command? > -Jeff -- Lukas ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 2007-08-10 13:25 ` Lukas Kolbe @ 2007-08-13 3:22 ` Ian Kent 2007-08-13 3:29 ` Ian Kent 0 siblings, 1 reply; 24+ messages in thread From: Ian Kent @ 2007-08-13 3:22 UTC (permalink / raw) To: Lukas Kolbe; +Cc: autofs On Fri, 2007-08-10 at 15:25 +0200, Lukas Kolbe wrote: > Hi! > > > > >> > /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. > > >> > > >> This only gives me the nfs4 mounts, it seems like the second part of the > > >> multimount is not evaluated when the first one says "I don't have that > > >> directory you asked me about": > > > > > > Aaah yes, of course, sorry about that. > > > That would be because the first encountered key is used to decide pass > > > or fail. > > > > No, it is because the second key was never added to the cache. See my > > earlier, somewhat cryptic message on this. > > > > As Pete said, if the default should be nfs4, that should happen in mount. > > Yes and no :) > > I'm currently trying to understand the autofs5 code and stumbled upon > modules/replicated.c, function prune_host_list that get's called from > mount_nfs.c and *somehow* decides wether to try nfs4 or other nfs > versions. Would any of you be so kind and explain the way that the > information from the entry in the auto.master-map (-fstype=nfs4 or =nfs) > gets propagated down to the actual mount command? You probably just want to look at modules/mount_nfs.c. The actual chain of events is: 1) Parse master map and mount automounts, create daemon/automount.c:handle_mounts thread for each mount. 2) daemon/automount.c:handle_mounts dispatches events as they come in. 3) A missing packet for an indirect mount leads to a call to daemon/indirect.c:handle_packet_missing_indirect. 4) Then -> daemon/indirect.c:do_mount_indirect -> daemon/lookup.c:lookup.c -> modules/lookup_<type>.c:lookup_mount -> modules/parse_sun.c:parse_mount -> modules/mount_<type>.c:mount_mount. Ian ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 2007-08-13 3:22 ` Ian Kent @ 2007-08-13 3:29 ` Ian Kent 2007-08-13 14:06 ` Lukas Kolbe 0 siblings, 1 reply; 24+ messages in thread From: Ian Kent @ 2007-08-13 3:29 UTC (permalink / raw) To: Lukas Kolbe; +Cc: autofs On Mon, 2007-08-13 at 11:22 +0800, Ian Kent wrote: > On Fri, 2007-08-10 at 15:25 +0200, Lukas Kolbe wrote: > > Hi! > > > > > > > >> > /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. > > > >> > > > >> This only gives me the nfs4 mounts, it seems like the second part of the > > > >> multimount is not evaluated when the first one says "I don't have that > > > >> directory you asked me about": > > > > > > > > Aaah yes, of course, sorry about that. > > > > That would be because the first encountered key is used to decide pass > > > > or fail. > > > > > > No, it is because the second key was never added to the cache. See my > > > earlier, somewhat cryptic message on this. > > > > > > As Pete said, if the default should be nfs4, that should happen in mount. > > > > Yes and no :) > > > > I'm currently trying to understand the autofs5 code and stumbled upon > > modules/replicated.c, function prune_host_list that get's called from > > mount_nfs.c and *somehow* decides wether to try nfs4 or other nfs > > versions. Would any of you be so kind and explain the way that the > > information from the entry in the auto.master-map (-fstype=nfs4 or =nfs) > > gets propagated down to the actual mount command? > > You probably just want to look at modules/mount_nfs.c. > Mistake. > The actual chain of events is: > 1) Parse master map and mount automounts, create > daemon/automount.c:handle_mounts thread for each mount. > 2) daemon/automount.c:handle_mounts dispatches events as they come in. > 3) A missing packet for an indirect mount leads to a call to > daemon/indirect.c:handle_packet_missing_indirect. > 4) Then -> daemon/indirect.c:do_mount_indirect -> > daemon/lookup.c:lookup.c -> modules/lookup_<type>.c:lookup_mount -> daqemon/lookup.c:lookup_nss_mount > modules/parse_sun.c:parse_mount -> modules/mount_<type>.c:mount_mount. > > Ian ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 2007-08-13 3:29 ` Ian Kent @ 2007-08-13 14:06 ` Lukas Kolbe 0 siblings, 0 replies; 24+ messages in thread From: Lukas Kolbe @ 2007-08-13 14:06 UTC (permalink / raw) To: Ian Kent; +Cc: autofs Hi Ian and list, > > > I'm currently trying to understand the autofs5 code and stumbled upon > > > modules/replicated.c, function prune_host_list that get's called from > > > mount_nfs.c and *somehow* decides wether to try nfs4 or other nfs > > > versions. Would any of you be so kind and explain the way that the > > > information from the entry in the auto.master-map (-fstype=nfs4 or =nfs) > > > gets propagated down to the actual mount command? > > > > You probably just want to look at modules/mount_nfs.c. > > > > Mistake. > > > The actual chain of events is: > > 1) Parse master map and mount automounts, create > > daemon/automount.c:handle_mounts thread for each mount. > > 2) daemon/automount.c:handle_mounts dispatches events as they come in. > > 3) A missing packet for an indirect mount leads to a call to > > daemon/indirect.c:handle_packet_missing_indirect. > > 4) Then -> daemon/indirect.c:do_mount_indirect -> > > daemon/lookup.c:lookup.c -> modules/lookup_<type>.c:lookup_mount -> > daqemon/lookup.c:lookup_nss_mount > > modules/parse_sun.c:parse_mount -> modules/mount_<type>.c:mount_mount. > > > > Ian Thanks for this, I start digging deeper now :) -- Lukas ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 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 19:12 ` Jeff Moyer 2007-08-01 19:29 ` Peter Staubach 2 siblings, 1 reply; 24+ messages in thread From: Jeff Moyer @ 2007-08-01 19:12 UTC (permalink / raw) To: Ian Kent; +Cc: autofs 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; -Jeff ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 2007-08-01 19:12 ` Jeff Moyer @ 2007-08-01 19:29 ` Peter Staubach 2007-08-01 19:36 ` Jeff Moyer 0 siblings, 1 reply; 24+ messages in thread From: Peter Staubach @ 2007-08-01 19:29 UTC (permalink / raw) To: autofs; +Cc: Ian Kent 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? Thanx... ps ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 2007-08-01 19:29 ` Peter Staubach @ 2007-08-01 19:36 ` Jeff Moyer 2007-08-01 19:42 ` Peter Staubach 0 siblings, 1 reply; 24+ messages in thread From: Jeff Moyer @ 2007-08-01 19:36 UTC (permalink / raw) To: Peter Staubach; +Cc: autofs, Ian Kent 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. -Jeff ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 2007-08-01 19:36 ` Jeff Moyer @ 2007-08-01 19:42 ` Peter Staubach 0 siblings, 0 replies; 24+ messages in thread From: Peter Staubach @ 2007-08-01 19:42 UTC (permalink / raw) To: Jeff Moyer; +Cc: autofs, Ian Kent 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 ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 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-10-01 20:16 ` Lukas Kolbe 2007-10-02 4:36 ` Ian Kent 1 sibling, 1 reply; 24+ messages in thread From: Lukas Kolbe @ 2007-10-01 20:16 UTC (permalink / raw) To: autofs Hello List! > We have /homes coming from many different servers, the older ones only > speak v3 and the newer ones would love to speak v4 as we would. We do have a solution for this problem now, it seems. A bit of testing worked fine at least: We just use different yp-maps for solaris and Linux, and the linux map contains the "-fstype=nfs4,proto=tcp,port=2049"-Option for the entries on servers that support it. It seems like a hack, but at least it works. For this to work, we just have to absolutely make sure that every single linux machine on the network supports nfs4 ... and I have yet to see a single one that does this well ;) -- Lukas ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: using both nfs3 and nfs4 in a single mount map 2007-10-01 20:16 ` Lukas Kolbe @ 2007-10-02 4:36 ` Ian Kent 0 siblings, 0 replies; 24+ messages in thread From: Ian Kent @ 2007-10-02 4:36 UTC (permalink / raw) To: Lukas Kolbe; +Cc: autofs On Mon, 2007-10-01 at 22:16 +0200, Lukas Kolbe wrote: > Hello List! > > > > We have /homes coming from many different servers, the older ones only > > speak v3 and the newer ones would love to speak v4 as we would. > > We do have a solution for this problem now, it seems. A bit of testing > worked fine at least: We just use different yp-maps for solaris and > Linux, and the linux map contains the > "-fstype=nfs4,proto=tcp,port=2049"-Option for the entries on servers > that support it. It seems like a hack, but at least it works. At least there's a workaround. > > For this to work, we just have to absolutely make sure that every single > linux machine on the network supports nfs4 ... and I have yet to see a > single one that does this well ;) > Hehe. Ian ^ permalink raw reply [flat|nested] 24+ messages in thread
* using both nfs3 and nfs4 in a single mount map @ 2007-07-27 15:09 Lukas Kolbe 0 siblings, 0 replies; 24+ messages in thread From: Lukas Kolbe @ 2007-07-27 15:09 UTC (permalink / raw) To: autofs Hi! Is it possible to us nfs4 and as a fallback nfs3 in a single mount map? We have /homes coming from many different servers, the older ones only speak v3 and the newer ones would love to speak v4 as we would. Currently, auto.master looks like this: /homes yp:auto_homes -nosuid,grpid,nobrowse,-fstype=nfs4,proto=tcp,port=2049 This of course only works for the nfs4-capable fileservers. Is there any way to also get the old fileservers into this game again? Using only nfsv3 is no option unfortunately; as is converting all to nfs4 at once :( -- Lukas ^ permalink raw reply [flat|nested] 24+ messages in thread
end of thread, other threads:[~2007-10-02 4:36 UTC | newest] Thread overview: 24+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 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
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.