FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 02-17-2011, 01:44 PM
Greg Wooledge
 
Default Bug#568194: I got bit by it

We have a heterogeneous network of systems here, including many
HP-UX 10.20 workstations, with a lot of NFS cross-mounting. After
upgrading a machine from lenny to squeeze, one of the very first
problems I encountered was that it failed to automount my home directory.

Eventually (with some suggestions from #debian@freenode) we traced it down
to an NFSv4 issue. Apparently when autofs attempts an NFS mount in
squeeze, it attempts an NFSv4 mount. And when it does this against an
HP-UX 10.20 NFS server, the result is a client that hangs for a few
minutes before finally failing (no, it does not seem to fall back to NFSv3
or anything else).

The configuration I had on the squeeze client *was* this:

arc3:~$ cat /etc/auto.master
#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#/misc /etc/auto.misc --timeout=60
#/smb /etc/auto.smb
#/misc /etc/auto.misc
#/net /etc/auto.net
/nfs /etc/auto.net

In other words, just like it had been doing for the past several years,
it retrieved the auto.master map from NIS and used that to populate
the auto.home map which tells where everyone's home directories are.

arc3:~$ ypcat -k auto.master
/net/vol auto.vol -rw,hard,intr
/net/appl auto.appl -rw,hard,intr
/net/hosts -hosts -rw,hard,intr
/net/home auto.home -rw,hard,intr

But now in squeeze, apparently that is broken. I had to manually slurp
the auto.master map information into the /etc/auto.master file and
tweak it:

arc3:~$ cat /etc/auto.master
#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#/misc /etc/auto.misc --timeout=60
#/smb /etc/auto.smb
#/misc /etc/auto.misc
#/net /etc/auto.net
/nfs /etc/auto.net

# Contents of auto.master map, then add mountvers=3
/net/vol auto.vol -rw,hard,intr,mountvers=3
/net/appl auto.appl -rw,hard,intr,mountvers=3
/net/hosts -hosts -rw,hard,intr,mountvers=3
/net/home auto.home -rw,hard,intr,mountvers=3

This suffices as a workaround, for us, but is this really the intent?

Also I agree with Nick Leverton that the documentation is wrong or at
least confusing. My initial diagonsis attempts began by comparing
the results of "mount -t nfs ..." and "mount -t nfs4 ..." because the
documentation said that these two options should give different behaviors.
But they do not.



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110217144413.GM16849@eeg.ccf.org">http://lists.debian.org/20110217144413.GM16849@eeg.ccf.org
 

Thread Tools




All times are GMT. The time now is 12:55 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org