From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 11 17:28:06 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A9B4A20E for ; Mon, 11 Aug 2014 17:28:06 +0000 (UTC) Received: from sdf.lonestar.org (mx.sdf.org [192.94.73.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx.sdf.org", Issuer "SDF.ORG" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6E29E2783 for ; Mon, 11 Aug 2014 17:28:05 +0000 (UTC) Received: from sdf.org (IDENT:cary@sdf.lonestar.org [192.94.73.15]) by sdf.lonestar.org (8.14.8/8.14.5) with ESMTP id s7BHRteg018132 (using TLSv1/SSLv3 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits) verified NO) for ; Mon, 11 Aug 2014 17:27:55 GMT Received: (from cary@localhost) by sdf.org (8.14.8/8.12.8/Submit) id s7BHRtsk004994 for freebsd-hackers@freebsd.org; Mon, 11 Aug 2014 17:27:55 GMT Date: Mon, 11 Aug 2014 17:27:55 +0000 From: Cary To: "freebsd-hackers@freebsd.org" Subject: Re: nscd not caching Message-ID: <20140811172755.GA1414@SDF.ORG> Mail-Followup-To: "freebsd-hackers@freebsd.org" References: <9F8FBD79-2825-4B22-BD14-EACF65A7DD50@netapp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9F8FBD79-2825-4B22-BD14-EACF65A7DD50@netapp.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2014 17:28:06 -0000 On Mon, Aug 11, 2014 at 11:58:21AM +0000, Eggert, Lars wrote: > Hi, > > anyone have an idea why nscd would not be caching NIS lookups on 10-RELEASE? > > My nsswitch.conf looks as follows: > > group: cache files nis > #group_compat: nis > hosts: cache files dns > networks: files > passwd: cache files nis > #passwd_compat: nis > shells: files > services: cache files nis > #services_compat: nis > protocols: files > rpc: files > > nisdomain is set and ypbind is started, and I see lots of NIS traffic going in and out. > > But nothing is cached; running nscd -nst just prints this and then sits there: > > root@laurel:~ # nscd -nst > M1 from main: request agents registered successfully > M2 from cache: cache was successfully initialized > M2 from runtime environment: using socket /var/run/nscd > M2 from runtime environment: successfully initialized > M1 from main: working in single-threaded mode > > Lars > Disabling nscd(8) was the only choice for me. When I tried using the daemon other things would break, specifically mozilla. Cary -- cary@sdf.org SDF Public Access UNIX System - http://sdf.org