From owner-freebsd-arch@FreeBSD.ORG Mon Mar 30 17:01:57 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEA30106566B for ; Mon, 30 Mar 2009 17:01:57 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from acadia.cs.uoguelph.ca (acadia.cs.uoguelph.ca [131.104.94.221]) by mx1.freebsd.org (Postfix) with ESMTP id 722218FC13 for ; Mon, 30 Mar 2009 17:01:57 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by acadia.cs.uoguelph.ca (8.13.1/8.13.1) with ESMTP id n2UH1uBI025849; Mon, 30 Mar 2009 13:01:56 -0400 Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id n2UH7m804660; Mon, 30 Mar 2009 13:07:48 -0400 (EDT) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Mon, 30 Mar 2009 13:07:48 -0400 (EDT) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: Gordon Tetlow In-Reply-To: <4e571dd70903300825q63b4344bhdee6ba7c54c2deab@mail.gmail.com> Message-ID: References: <4e571dd70903300825q63b4344bhdee6ba7c54c2deab@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Scanned-By: MIMEDefang 2.63 on 131.104.94.221 Cc: freebsd-arch@freebsd.org Subject: Re: Unique machine identifier for nfsv4 client X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2009 17:01:58 -0000 On Mon, 30 Mar 2009, Gordon Tetlow wrote: > > There is a uuid that is generated at first boot and persistent. Check > /etc/rc.d/hostid. It sets kern.hostuuid and kern.hostid. > Duh (as Homer S might say;-). Yep, that should work just fine. From a quick glance at the rc.d script, the sysctl that loads it into the kernel happens before any nfs client stuff. (I also noticed that kern_uuid.c has a routine that gets a MAC, but I won't even need it.) Thanks everyone for the replies, rick