From owner-freebsd-arch@FreeBSD.ORG Sun Apr 8 10:19:02 2007 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1152C16A400 for ; Sun, 8 Apr 2007 10:19:02 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id DBD1F13C4AD for ; Sun, 8 Apr 2007 10:19:01 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 16D194741D; Sun, 8 Apr 2007 05:54:35 -0400 (EDT) Date: Sun, 8 Apr 2007 10:54:34 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= In-Reply-To: <86d52fut50.fsf@dwp.des.no> Message-ID: <20070408105140.L77212@fledge.watson.org> References: <20070407120656.GD63916@garage.freebsd.pl> <20070407145154.GG63916@garage.freebsd.pl> <86d52fut50.fsf@dwp.des.no> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1986012035-1176026074=:77212" Cc: Andrew Pantyukhin , Pawel Jakub Dawidek , freebsd-arch@freebsd.org Subject: Re: Host ID. 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: Sun, 08 Apr 2007 10:19:02 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1986012035-1176026074=:77212 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Sun, 8 Apr 2007, Dag-Erling Sm=F8rgrav wrote: > Pawel Jakub Dawidek writes: >> If we move disks with root file system, it's this more or less the same= =20 >> host, isn't it? > > No. I recently installed three servers by replicating the disk from a=20 > fourth and changing the host name and IP address in rc.conf. Yes, one of the nice properties of FreeBSD -- as opposed to, say, Windows, = is=20 that it's trivial to install a hundred boxes by dropping the same image ont= o=20 all of them and configuring host-specific parameters using DHCP. But there= is=20 a tricky tension here: the notion of a persisting host ID is very useful, i= n=20 the a similar way to the way in which a persisting SSH host key is useful.= =20 If we're going to adopt a host ID model, we may want to make generation and= =20 configuration of the host ID conditional on an explicit variable in rc.conf= =20 (i.e., hostid_enable=3D"YES" which causes it to be generated the first time= and=20 loaded future times, similar to SSH keys), and make it very easy to force a= =20 regen. That way, you can image the boxes with the rc.conf setting set, but= =20 they don't generate host IDs until they boot the first time. Robert N M Watson Computer Laboratory University of Cambridge --0-1986012035-1176026074=:77212--