From owner-freebsd-questions@FreeBSD.ORG Sat Aug 27 19:29:42 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67B66106564A for ; Sat, 27 Aug 2011 19:29:42 +0000 (UTC) (envelope-from elon@emmi.physik-pool.tu-berlin.de) Received: from emmi.physik-pool.tu-berlin.de (emmi.physik-pool.tu-berlin.de [130.149.58.146]) by mx1.freebsd.org (Postfix) with ESMTP id EEF948FC19 for ; Sat, 27 Aug 2011 19:29:41 +0000 (UTC) Received: from emmi.physik-pool.tu-berlin.de (localhost.physik-pool.tu-berlin.de [127.0.0.1]) by emmi.physik-pool.tu-berlin.de (8.14.4/8.14.4) with ESMTP id p7RJTdEa098657 for ; Sat, 27 Aug 2011 21:29:39 +0200 (CEST) (envelope-from elon@emmi.physik-pool.tu-berlin.de) Received: (from elon@localhost) by emmi.physik-pool.tu-berlin.de (8.14.4/8.14.4/Submit) id p7RJTbD5098656 for freebsd-questions@freebsd.org; Sat, 27 Aug 2011 21:29:37 +0200 (CEST) (envelope-from elon) Date: Sat, 27 Aug 2011 21:29:37 +0200 From: Leon =?iso-8859-15?Q?Me=DFner?= To: freebsd-questions@freebsd.org Message-ID: <20110827192937.GA48651@emmi.physik-pool.tu-berlin.de> Mail-Followup-To: freebsd-questions@freebsd.org References: <20110822231152.GT48651@emmi.physik-pool.tu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110822231152.GT48651@emmi.physik-pool.tu-berlin.de> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: NFSv4 directory listing issues. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2011 19:29:42 -0000 On Tue, Aug 23, 2011 at 01:11:52AM +0200, Leon Meßner wrote: > Hi, > > i'm just testing a kerberized NFSv4 export of a ZFS-Filesystem. Both > client and server are FreeBSD at the moment. I tried Linux clients, but > could not mount with sec=krb5. If i mount an exported directory with > -o sec=krb5(i|p)i, directory listings with ls do sometimes take a very > long time (about 20times). Example output below. > > > time ls -la > total 8 > drwxr-xr-x+ 3 root wheel 4 Aug 16 13:27 . > drwxr-xr-x 3 locadm locadm 512 Aug 22 23:46 .. > drwxr-xr-x+ 2 root wheel 2 Aug 16 13:27 testdir > -rw-r--r-- 1 root wheel 0 Aug 16 13:27 testfile > 0.003u 0.003s 0:00.23 0.0% 0+0k 0+0io 0pf+0w > > time ls -la > total 8 > drwxr-xr-x+ 3 root wheel 4 Aug 16 13:27 . > drwxr-xr-x 3 locadm locadm 512 Aug 22 23:46 .. > drwxr-xr-x+ 2 root wheel 2 Aug 16 13:27 testdir > -rw-r--r-- 1 root wheel 0 Aug 16 13:27 testfile > 0.000u 0.007s 0:04.27 0.0% 0+0k 0+0io 0pf+0w > > The share is mounted by a local user with a kerberos ticket by > mount -t nfs -o nfsv4,sec=krb5 130.149.58.249:/home mount. > Mounting with sec=sys does not produce this problem. > Has anyone experienced similar issues ? It looks like this could be related to kern/158432 [1] although i'm using IPv4 and amd64. I can't test it at the moment because the testmachine is temp. out of service but i got the same error messages in my kdc's log file. Greetings, Leon [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=158432&cat=kern