From owner-freebsd-arch@FreeBSD.ORG Sun Apr 8 09:18:19 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 5BACA16A404 for ; Sun, 8 Apr 2007 09:18:19 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.226]) by mx1.freebsd.org (Postfix) with ESMTP id 162FD13C45D for ; Sun, 8 Apr 2007 09:18:18 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by nz-out-0506.google.com with SMTP id r28so854287nza for ; Sun, 08 Apr 2007 02:18:18 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=quN9qAmgn6oGYaYYIbtfy1Rzsojg5+WbGKvtMQU2NGtLv6Qb5ZTK8A2TUminELCdYIhlQ7h3ovhCVAlHOUcse/AVy8pR3lvBJkshsa4b2Eit1ny7r77QeGGocM/TFqxAmNv6OCJ5uVNdWvThob2c4irfoE3bZ+tFoduq3TfKWZI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=OCJbZ6ElJgdlChnJCvZrv6iXLtUSgHZGJFTooxLD3Ic5PxCXi3duhUDuU/rJaDhjtt6cs8sRX0hVkLB8+iqnj4qsl/NpTUtQVOyyZtPTbCkvU7KBOtN1d+br8WPa3udGSL8mMMmirmUG8dDoO3p1gaREFwKQqxIZ/EQIKqTWKOk= Received: by 10.114.25.3 with SMTP id 3mr1852426way.1176023897613; Sun, 08 Apr 2007 02:18:17 -0700 (PDT) Received: by 10.114.201.2 with HTTP; Sun, 8 Apr 2007 02:18:17 -0700 (PDT) Message-ID: Date: Sun, 8 Apr 2007 13:18:17 +0400 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "=?UTF-8?Q?Dag-Erling_Sm=C3=B8rgrav?=" In-Reply-To: <86d52fut50.fsf@dwp.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline References: <20070407120656.GD63916@garage.freebsd.pl> <20070407145154.GG63916@garage.freebsd.pl> <86d52fut50.fsf@dwp.des.no> X-Google-Sender-Auth: 573ac5c0b56e622b Cc: 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 09:18:19 -0000 T24gNC84LzA3LCBEYWctRXJsaW5nIFNtw7hyZ3JhdiA8ZGVzQGRlcy5ubz4gd3JvdGU6Cj4gUGF3 ZWwgSmFrdWIgRGF3aWRlayA8cGpkQEZyZWVCU0Qub3JnPiB3cml0ZXM6Cj4gPiBJZiB3ZSBtb3Zl IGRpc2tzIHdpdGggcm9vdCBmaWxlIHN5c3RlbSwgaXQncyB0aGlzIG1vcmUgb3IgbGVzcyB0aGUg c2FtZQo+ID4gaG9zdCwgaXNuJ3QgaXQ/Cj4KPiBOby4gIEkgcmVjZW50bHkgaW5zdGFsbGVkIHRo cmVlIHNlcnZlcnMgYnkgcmVwbGljYXRpbmcgdGhlIGRpc2sgZnJvbSBhCj4gZm91cnRoIGFuZCBj aGFuZ2luZyB0aGUgaG9zdCBuYW1lIGFuZCBJUCBhZGRyZXNzIGluIHJjLmNvbmYuCgpSaWdodCwg d2UnbGwgYmUgcG9ydGluZyBob3N0cHJlcC5leGUgZnJvbSBXaW5kb3dzIHRvCnByZXBhcmUgaGFy ZCBkcml2ZXMgZm9yIHJlcGxpY2F0aW9uLi4uIDpcCg== From owner-freebsd-arch@FreeBSD.ORG Sun Apr 8 09:35:08 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 C419616A401 for ; Sun, 8 Apr 2007 09:35:08 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 846E813C458 for ; Sun, 8 Apr 2007 09:35:08 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 61B9C2091; Sun, 8 Apr 2007 11:12:28 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id DC52E2090; Sun, 8 Apr 2007 11:12:27 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id C8E5BA10A5; Sun, 8 Apr 2007 11:12:27 +0200 (CEST) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Pawel Jakub Dawidek References: <20070407120656.GD63916@garage.freebsd.pl> <20070407145154.GG63916@garage.freebsd.pl> Date: Sun, 08 Apr 2007 11:12:27 +0200 In-Reply-To: <20070407145154.GG63916@garage.freebsd.pl> (Pawel Jakub Dawidek's message of "Sat, 7 Apr 2007 16:51:54 +0200") Message-ID: <86d52fut50.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Andrew Pantyukhin , 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 09:35:08 -0000 Pawel Jakub Dawidek writes: > If we move disks with root file system, it's this more or less the same > host, isn't it? No. I recently installed three servers by replicating the disk from a fourth and changing the host name and IP address in rc.conf. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no 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-- From owner-freebsd-arch@FreeBSD.ORG Sun Apr 8 13:15:09 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 E402716A404 for ; Sun, 8 Apr 2007 13:15:09 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mrout2-b.corp.dcn.yahoo.com (mrout2-b.corp.dcn.yahoo.com [216.109.112.28]) by mx1.freebsd.org (Postfix) with ESMTP id AE23313C458 for ; Sun, 8 Apr 2007 13:15:09 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from minion.local.neville-neil.com (proxy7.corp.yahoo.com [216.145.48.98]) by mrout2-b.corp.dcn.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id l38D4fs0023705; Sun, 8 Apr 2007 06:04:42 -0700 (PDT) Date: Sun, 08 Apr 2007 22:04:16 +0900 Message-ID: From: gnn@freebsd.org To: "M. Warner Losh" In-Reply-To: <20070407.145301.-345495730.imp@bsdimp.com> References: <20070407120656.GD63916@garage.freebsd.pl> <4617CB2D.8000508@gmail.com> <20070407175439.GL63916@garage.freebsd.pl> <20070407.145301.-345495730.imp@bsdimp.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.0.95 (i386-apple-darwin8.8.2) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: pjd@freebsd.org, 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 13:15:10 -0000 I noted that someone mentioned using a network based ID. Since EUI-64 are unique I would suspect they would be the best source for this on systems that don't naturally have a hostid concept. See Appendix A of RFC 2373 for how to create an EUI-64 Interface Identifier. The only problem with this approach that I see is that if you remove that interface (that is it was on a card not on your motherboard) then it goes away. Perhaps generating this and storing it, no matter what the future network configuration of the system is, is the right way to go. Best, George From owner-freebsd-arch@FreeBSD.ORG Sun Apr 8 15:14:26 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 D5BC116A400; Sun, 8 Apr 2007 15:14:26 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 76A2613C459; Sun, 8 Apr 2007 15:14:26 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 1AA49487F2; Sun, 8 Apr 2007 17:14:25 +0200 (CEST) Received: from localhost (cvl74.internetdsl.tpnet.pl [83.19.93.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id C30C345CD9; Sun, 8 Apr 2007 17:14:15 +0200 (CEST) Date: Sun, 8 Apr 2007 17:13:58 +0200 From: Pawel Jakub Dawidek To: gnn@freebsd.org Message-ID: <20070408151358.GX63916@garage.freebsd.pl> References: <20070407120656.GD63916@garage.freebsd.pl> <4617CB2D.8000508@gmail.com> <20070407175439.GL63916@garage.freebsd.pl> <20070407.145301.-345495730.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="x0Bbm7aQwrWvLJ2v" Content-Disposition: inline In-Reply-To: X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL autolearn=no version=3.0.4 Cc: 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 15:14:27 -0000 --x0Bbm7aQwrWvLJ2v Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 08, 2007 at 10:04:16PM +0900, gnn@freebsd.org wrote: > I noted that someone mentioned using a network based ID. Since EUI-64 > are unique I would suspect they would be the best source for this on > systems that don't naturally have a hostid concept. See Appendix A of > RFC 2373 for how to create an EUI-64 Interface Identifier. >=20 > The only problem with this approach that I see is that if you remove > that interface (that is it was on a card not on your motherboard) then > it goes away. Perhaps generating this and storing it, no matter what > the future network configuration of the system is, is the right way to > go. So why not generate it and be done with it? And what if you move your card to another box were you're planning to install new system? I'd really like to make it simple and consistent on all archs, so one knows exactly what to expect. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --x0Bbm7aQwrWvLJ2v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGGQa2ForvXbEpPzQRAhPlAKCKfGvVv8egdrD8jyaTCldoQl2rdACg74Ln vp0Fyd8OWeI3F9jdf45EmLM= =DxKn -----END PGP SIGNATURE----- --x0Bbm7aQwrWvLJ2v-- From owner-freebsd-arch@FreeBSD.ORG Sun Apr 8 19:46:18 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 6AC3316A402; Sun, 8 Apr 2007 19:46:18 +0000 (UTC) (envelope-from ceri@submonkey.net) Received: from shrike.submonkey.net (cpc3-cdif2-0-0-cust64.cdif.cable.ntl.com [81.106.128.65]) by mx1.freebsd.org (Postfix) with ESMTP id 1171D13C483; Sun, 8 Apr 2007 19:46:18 +0000 (UTC) (envelope-from ceri@submonkey.net) Received: from ceri by shrike.submonkey.net with local (Exim 4.66 (FreeBSD)) (envelope-from ) id 1HadL6-000Gpz-LO; Sun, 08 Apr 2007 20:46:16 +0100 Date: Sun, 8 Apr 2007 20:46:16 +0100 From: Ceri Davies To: Robert Watson Message-ID: <20070408194616.GN90410@submonkey.net> References: <20070407120656.GD63916@garage.freebsd.pl> <20070407145154.GG63916@garage.freebsd.pl> <86d52fut50.fsf@dwp.des.no> <20070408105140.L77212@fledge.watson.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="R92lf0Oi2sxyK3LA" Content-Disposition: inline In-Reply-To: <20070408105140.L77212@fledge.watson.org> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.14 (2007-02-12) Sender: Ceri Davies Cc: Dag-Erling Sm?rgrav , 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 19:46:18 -0000 --R92lf0Oi2sxyK3LA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 08, 2007 at 10:54:34AM +0100, Robert Watson wrote: >=20 > On Sun, 8 Apr 2007, Dag-Erling Sm?rgrav wrote: >=20 > >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. >=20 > Yes, one of the nice properties of FreeBSD -- as opposed to, say, Windows= ,=20 > is that it's trivial to install a hundred boxes by dropping the same imag= e=20 > onto all of them and configuring host-specific parameters using DHCP. Bu= t=20 > there is a tricky tension here: the notion of a persisting host ID is ver= y=20 > useful, in the a similar way to the way in which a persisting SSH host ke= y=20 > is useful. If we're going to adopt a host ID model, we may want to make= =20 > generation and configuration of the host ID conditional on an explicit=20 > variable in rc.conf (i.e., hostid_enable=3D"YES" which causes it to be=20 > generated the first time and loaded future times, similar to SSH keys), a= nd=20 > make it very easy to force a regen. That way, you can image the boxes wi= th=20 > the rc.conf setting set, but they don't generate host IDs until they boot= =20 > the first time. Or perhaps we need an equivalent to sys-unconfig[1] ? [1] http://docs.sun.com/app/docs/doc/816-5166/6mbb1kqj3?q=3Dsysconfig&a=3Dv= iew Ceri --=20 That must be wonderful! I don't understand it at all. -- Moliere --R92lf0Oi2sxyK3LA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGGUaIocfcwTS3JF8RAny1AKDDzkILwo2az4CaZOV576aoojUmyACgnQ/E 2M3m12lEpwKCKhPXKURpJg0= =gBkf -----END PGP SIGNATURE----- --R92lf0Oi2sxyK3LA-- From owner-freebsd-arch@FreeBSD.ORG Sun Apr 8 23:03:05 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 A56D416A401 for ; Sun, 8 Apr 2007 23:03:05 +0000 (UTC) (envelope-from minimarmot@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id 6243713C448 for ; Sun, 8 Apr 2007 23:03:05 +0000 (UTC) (envelope-from minimarmot@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1478572ana for ; Sun, 08 Apr 2007 16:03:04 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kQQmOOJARUFDUhTnOwmhWDGxLtL7lZznCBZLcokdtsI6Jv2OB3mIn3bhqLX9iuaUymLFbEkCb+jMKWJxuvm8mjfaRpEOWnKJoUDYELdI4nS4+Ta2izuds9NmMh16OVeCMSPy7VASi8M/a2+WDXbRzXZbTh1J5Bn53todcfi86UI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IKjtsjvG0TEHJJjiHnvgyQdK6OjFii6oclBzOryc8yVH01WTWraNYaZGB83iKXPMq0Bb6rt8ifoBBB3+F8scpzEpay/YquJUkiTH0BEfswqvxVNSVoKhXsdJOJtK6tM4MgT1eaqiT+B+kWjtt7AhuyxlDHdukozVWhe/m4cgSkI= Received: by 10.100.43.9 with SMTP id q9mr3540579anq.1176071669729; Sun, 08 Apr 2007 15:34:29 -0700 (PDT) Received: by 10.100.237.19 with HTTP; Sun, 8 Apr 2007 15:34:29 -0700 (PDT) Message-ID: <47d0403c0704081534k2aece4cx7516d073bdb7f3ea@mail.gmail.com> Date: Sun, 8 Apr 2007 17:34:29 -0500 From: "Ben Kaduk" To: "Robert Watson" In-Reply-To: <20070408105140.L77212@fledge.watson.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070407120656.GD63916@garage.freebsd.pl> <20070407145154.GG63916@garage.freebsd.pl> <86d52fut50.fsf@dwp.des.no> <20070408105140.L77212@fledge.watson.org> Cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= , 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 23:03:05 -0000 On 4/8/07, Robert Watson wrote: > [snip] > > Yes, one of the nice properties of FreeBSD -- as opposed to, say, Windows, is > that it's trivial to install a hundred boxes by dropping the same image onto > all of them and configuring host-specific parameters using DHCP. But there is > a tricky tension here: the notion of a persisting host ID is very useful, in > the a similar way to the way in which a persisting SSH host key is useful. > If we're going to adopt a host ID model, we may want to make generation and > configuration of the host ID conditional on an explicit variable in rc.conf > (i.e., hostid_enable="YES" which causes it to be generated the first time and > loaded future times, similar to SSH keys), and make it very easy to force a > regen. That way, you can image the boxes with the rc.conf setting set, but > they don't generate host IDs until they boot the first time. > > Robert N M Watson > Computer Laboratory > University of Cambridge I like this proposal a lot -- FreeBSD is very flexible, and people can and will use any mechanism available to make their lives simpler; this can call for some very creative installation mechanisms. Robert's proposal is the most general one I've seen (well, it's orthogonal to a lot of this thread). Also, it allows for the paranoid or highly-secure types to change their hostid (or prevent it from being generated in the first place) -- I have not yet decided if I would maintain a local diff to block a unique ID from my systems. -Ben Kaduk From owner-freebsd-arch@FreeBSD.ORG Mon Apr 9 14:56:38 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 0CA7E16A401 for ; Mon, 9 Apr 2007 14:56:38 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id A72E613C483 for ; Mon, 9 Apr 2007 14:56:37 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id D878A48805; Mon, 9 Apr 2007 16:56:35 +0200 (CEST) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 7085B45696 for ; Mon, 9 Apr 2007 16:56:30 +0200 (CEST) Date: Mon, 9 Apr 2007 16:56:20 +0200 From: Pawel Jakub Dawidek To: freebsd-arch@FreeBSD.org Message-ID: <20070409145620.GF76673@garage.freebsd.pl> References: <20070407120656.GD63916@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eNMatiwYGLtwo1cJ" Content-Disposition: inline In-Reply-To: <20070407120656.GD63916@garage.freebsd.pl> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: 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: Mon, 09 Apr 2007 14:56:38 -0000 --eNMatiwYGLtwo1cJ Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 07, 2007 at 02:06:56PM +0200, Pawel Jakub Dawidek wrote: > Hi. >=20 > After initial discussion on IRC, I'd like to propose an addition... > I want to use it with ZFS, but I thought it may be useful in general, so > here it goes: >=20 > I'd like to assign a unique ID to the system on first boot. >=20 > When system starts, /etc/rc.d/hostid script checks if /hostid file > exists, if it doesn't, it creates it via 'uuidgen > /hostid'. >=20 > It will also set kern.hostuuid sysctl to this value and first four bytes > of MD5(kern.hostuuid) will be stored in kern.hostid. It will allow to > use gethostid(3). >=20 > If root file system is read-only, different uuid will be genrated on > each boot. Not sure if anything better can be done here. >=20 > As I said, I think it may be genrally useful. Imagine using it with > magic/variant symlinks, for example. Here is the patch: http://people.freebsd.org/~pjd/patches/hostid.patch Any objections? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --eNMatiwYGLtwo1cJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGGlQUForvXbEpPzQRAsmHAJ4iyFpbBvAApzFIy9iUdHHwx/o4NACg8gVA NpAO1Uqhczu1+VXv+4E06lk= =s3BH -----END PGP SIGNATURE----- --eNMatiwYGLtwo1cJ-- From owner-freebsd-arch@FreeBSD.ORG Mon Apr 9 15:42: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 CBDEF16A406; Mon, 9 Apr 2007 15:42:02 +0000 (UTC) (envelope-from rink@thunderstone.rink.nu) Received: from mx1.rink.nu (thunderstone.rink.nu [80.112.228.34]) by mx1.freebsd.org (Postfix) with ESMTP id 84EB713C4C4; Mon, 9 Apr 2007 15:42:02 +0000 (UTC) (envelope-from rink@thunderstone.rink.nu) Received: from localhost (localhost [127.0.0.1]) by mx1.rink.nu (Postfix) with ESMTP id 39A33D4C5B; Mon, 9 Apr 2007 17:12:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at rink.nu Received: from mx1.rink.nu ([127.0.0.1]) by localhost (thunderstone.rink.nu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tR61sQPZRLCN; Mon, 9 Apr 2007 17:12:13 +0200 (CEST) Received: from thunderstone.rink.nu (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.rink.nu (Postfix) with ESMTP id B57E4D4C5A; Mon, 9 Apr 2007 17:12:13 +0200 (CEST) Received: (from rink@localhost) by thunderstone.rink.nu (8.13.8/8.13.8/Submit) id l39FCDDm038970; Mon, 9 Apr 2007 17:12:13 +0200 (CEST) (envelope-from rink) Date: Mon, 9 Apr 2007 17:12:13 +0200 From: Rink Springer To: Pawel Jakub Dawidek Message-ID: <20070409151213.GD28616@rink.nu> References: <20070407120656.GD63916@garage.freebsd.pl> <20070409145620.GF76673@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070409145620.GF76673@garage.freebsd.pl> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: 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: Mon, 09 Apr 2007 15:42:02 -0000 HiP awel, On Mon, Apr 09, 2007 at 04:56:20PM +0200, Pawel Jakub Dawidek wrote: > Here is the patch: > > http://people.freebsd.org/~pjd/patches/hostid.patch > > Any objections? Looks good. This may sound cheesy, but what about a 'stop' command in case I want to temporarily 'loose' my hostid? -- Rink P.W. Springer - http://rink.nu "It is such a quiet thing, to fall. But yet a far more terrible thing, to admit it." - Darth Traya From owner-freebsd-arch@FreeBSD.ORG Mon Apr 9 16:01:28 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 C1FBE16A402; Mon, 9 Apr 2007 16:01:28 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by mx1.freebsd.org (Postfix) with ESMTP id 5833D13C44B; Mon, 9 Apr 2007 16:01:28 +0000 (UTC) (envelope-from max@love2party.net) Received: from [88.64.185.1] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis), id 0MKxQS-1HawJ42TYM-0001PB; Mon, 09 Apr 2007 18:01:27 +0200 From: Max Laier Organization: FreeBSD To: freebsd-arch@freebsd.org Date: Mon, 9 Apr 2007 16:01:22 +0200 User-Agent: KMail/1.9.5 References: <20070407120656.GD63916@garage.freebsd.pl> <20070409145620.GF76673@garage.freebsd.pl> In-Reply-To: <20070409145620.GF76673@garage.freebsd.pl> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2241738.o9RPf5h4Ll"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200704091601.27454.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1+OUBqZu8+hjDyZw5OPi9xYB2AUUAFEFumGhAU ETwdTDFBQ6j9bl93PG/R+VP6PxwNAI3smtQRwfTPW75flZ5Gp0 4VRhaq6YrAdQ02y5bqR+Q== Cc: Pawel Jakub Dawidek 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: Mon, 09 Apr 2007 16:01:28 -0000 --nextPart2241738.o9RPf5h4Ll Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 09 April 2007 16:56, Pawel Jakub Dawidek wrote: > On Sat, Apr 07, 2007 at 02:06:56PM +0200, Pawel Jakub Dawidek wrote: > > Hi. > > > > After initial discussion on IRC, I'd like to propose an addition... > > I want to use it with ZFS, but I thought it may be useful in general, > > so here it goes: > > > > I'd like to assign a unique ID to the system on first boot. > > > > When system starts, /etc/rc.d/hostid script checks if /hostid file > > exists, if it doesn't, it creates it via 'uuidgen > /hostid'. > > > > It will also set kern.hostuuid sysctl to this value and first four > > bytes of MD5(kern.hostuuid) will be stored in kern.hostid. It will > > allow to use gethostid(3). > > > > If root file system is read-only, different uuid will be genrated on > > each boot. Not sure if anything better can be done here. > > > > As I said, I think it may be genrally useful. Imagine using it with > > magic/variant symlinks, for example. > > Here is the patch: > > http://people.freebsd.org/~pjd/patches/hostid.patch > > Any objections? I suppose: > Index: usr.bin/uuidgen/Makefile > ... > +BINDIR=3D /bin will be fixed by (repo)copy for the real commit? Otherwise, no. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart2241738.o9RPf5h4Ll Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQBGGkc3XyyEoT62BG0RAuzmAJ9f5a6KkXJr/U8ZsUGpU7U0yhuAeQCePihe u9H+92XtNkbU8aW0/SVvrBo= =qX8H -----END PGP SIGNATURE----- --nextPart2241738.o9RPf5h4Ll-- From owner-freebsd-arch@FreeBSD.ORG Mon Apr 9 16:27:30 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 3B6BA16A401 for ; Mon, 9 Apr 2007 16:27:30 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (grnl-static-02-0046.dsl.iowatelecom.net [69.66.56.110]) by mx1.freebsd.org (Postfix) with ESMTP id E67CC13C4C7 for ; Mon, 9 Apr 2007 16:27:29 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.8/8.13.8) with ESMTP id l39GB6Xc036050; Mon, 9 Apr 2007 11:11:06 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.8/8.13.8/Submit) id l39GB66N036049; Mon, 9 Apr 2007 11:11:06 -0500 (CDT) (envelope-from brooks) Date: Mon, 9 Apr 2007 11:11:06 -0500 From: Brooks Davis To: Pawel Jakub Dawidek Message-ID: <20070409161106.GA34667@lor.one-eyed-alien.net> References: <20070407120656.GD63916@garage.freebsd.pl> <20070409145620.GF76673@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline In-Reply-To: <20070409145620.GF76673@garage.freebsd.pl> User-Agent: Mutt/1.5.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Mon, 09 Apr 2007 11:11:06 -0500 (CDT) Cc: 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: Mon, 09 Apr 2007 16:27:30 -0000 --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 09, 2007 at 04:56:20PM +0200, Pawel Jakub Dawidek wrote: > On Sat, Apr 07, 2007 at 02:06:56PM +0200, Pawel Jakub Dawidek wrote: > > Hi. > >=20 > > After initial discussion on IRC, I'd like to propose an addition... > > I want to use it with ZFS, but I thought it may be useful in general, so > > here it goes: > >=20 > > I'd like to assign a unique ID to the system on first boot. > >=20 > > When system starts, /etc/rc.d/hostid script checks if /hostid file > > exists, if it doesn't, it creates it via 'uuidgen > /hostid'. > >=20 > > It will also set kern.hostuuid sysctl to this value and first four bytes > > of MD5(kern.hostuuid) will be stored in kern.hostid. It will allow to > > use gethostid(3). > >=20 > > If root file system is read-only, different uuid will be genrated on > > each boot. Not sure if anything better can be done here. > >=20 > > As I said, I think it may be genrally useful. Imagine using it with > > magic/variant symlinks, for example. >=20 > Here is the patch: >=20 > http://people.freebsd.org/~pjd/patches/hostid.patch >=20 > Any objections? Looks good to me. -- Brooks --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGGmWZXY6L6fI4GtQRAklYAJ0TExEaNJlOliTUZ+DJDh2H7li1lACeI/qN bijEqhYQS7PXANMmtUyoY28= =it7N -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr-- From owner-freebsd-arch@FreeBSD.ORG Mon Apr 9 16:35:19 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 9E5B716A404 for ; Mon, 9 Apr 2007 16:35:19 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id AE5F113C487 for ; Mon, 9 Apr 2007 16:35:18 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 69428487F0; Mon, 9 Apr 2007 18:35:16 +0200 (CEST) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 36BF945681; Mon, 9 Apr 2007 18:35:08 +0200 (CEST) Date: Mon, 9 Apr 2007 18:34:56 +0200 From: Pawel Jakub Dawidek To: Max Laier Message-ID: <20070409163456.GJ76673@garage.freebsd.pl> References: <20070407120656.GD63916@garage.freebsd.pl> <20070409145620.GF76673@garage.freebsd.pl> <200704091601.27454.max@love2party.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="liqSWPDvh3eyfZ9k" Content-Disposition: inline In-Reply-To: <200704091601.27454.max@love2party.net> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: 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: Mon, 09 Apr 2007 16:35:20 -0000 --liqSWPDvh3eyfZ9k Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 09, 2007 at 04:01:22PM +0200, Max Laier wrote: > On Monday 09 April 2007 16:56, Pawel Jakub Dawidek wrote: > > On Sat, Apr 07, 2007 at 02:06:56PM +0200, Pawel Jakub Dawidek wrote: > > > Hi. > > > > > > After initial discussion on IRC, I'd like to propose an addition... > > > I want to use it with ZFS, but I thought it may be useful in general, > > > so here it goes: > > > > > > I'd like to assign a unique ID to the system on first boot. > > > > > > When system starts, /etc/rc.d/hostid script checks if /hostid file > > > exists, if it doesn't, it creates it via 'uuidgen > /hostid'. > > > > > > It will also set kern.hostuuid sysctl to this value and first four > > > bytes of MD5(kern.hostuuid) will be stored in kern.hostid. It will > > > allow to use gethostid(3). > > > > > > If root file system is read-only, different uuid will be genrated on > > > each boot. Not sure if anything better can be done here. > > > > > > As I said, I think it may be genrally useful. Imagine using it with > > > magic/variant symlinks, for example. > > > > Here is the patch: > > > > http://people.freebsd.org/~pjd/patches/hostid.patch > > > > Any objections? >=20 > I suppose: >=20 > > Index: usr.bin/uuidgen/Makefile > > ... > > +BINDIR=3D /bin >=20 > will be fixed by (repo)copy for the real commit? Otherwise, no. kan suggested not to do it: "respect CVS handicaps, please...." :) --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --liqSWPDvh3eyfZ9k Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGGmswForvXbEpPzQRAjx5AKDeFFZ3pXwxF1WqrKD48nGXLiUDCgCfeHST G73xP8jNjNb8C5afLgSv++c= =kmOA -----END PGP SIGNATURE----- --liqSWPDvh3eyfZ9k-- From owner-freebsd-arch@FreeBSD.ORG Mon Apr 9 17:46:28 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 9B73B16A401; Mon, 9 Apr 2007 17:46:28 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 442EC13C48A; Mon, 9 Apr 2007 17:46:28 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l39HkRA8038967; Mon, 9 Apr 2007 13:46:27 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-arch@FreeBSD.org Date: Mon, 9 Apr 2007 13:46:16 -0400 User-Agent: KMail/1.6.2 References: <20070407120656.GD63916@garage.freebsd.pl> <20070408151358.GX63916@garage.freebsd.pl> <200704091335.42092.jkim@FreeBSD.org> In-Reply-To: <200704091335.42092.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200704091346.20906.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/3054/Mon Apr 9 10:31:59 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: gnn@FreeBSD.org, Pawel Jakub Dawidek 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: Mon, 09 Apr 2007 17:46:28 -0000 On Monday 09 April 2007 01:35 pm, Jung-uk Kim wrote: > BTW, uuid(3) needs some improvement, i.e., we need to implement ^^^^^^^ > version 2 to 5. See Appendix A of RFC4122 for sample > implementations. I meant uuidgen(2), not uuid(3). uuid(3) can be optional. Jung-uk Kim From owner-freebsd-arch@FreeBSD.ORG Mon Apr 9 17:52:07 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 E944B16A400; Mon, 9 Apr 2007 17:52:07 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 9CE3913C46A; Mon, 9 Apr 2007 17:52:07 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l39HZmgd038190; Mon, 9 Apr 2007 13:35:48 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-arch@FreeBSD.org Date: Mon, 9 Apr 2007 13:35:39 -0400 User-Agent: KMail/1.6.2 References: <20070407120656.GD63916@garage.freebsd.pl> <20070408151358.GX63916@garage.freebsd.pl> In-Reply-To: <20070408151358.GX63916@garage.freebsd.pl> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200704091335.42092.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/3054/Mon Apr 9 10:31:59 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: gnn@FreeBSD.org, Pawel Jakub Dawidek 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: Mon, 09 Apr 2007 17:52:08 -0000 On Sunday 08 April 2007 11:13 am, Pawel Jakub Dawidek wrote: > On Sun, Apr 08, 2007 at 10:04:16PM +0900, gnn@freebsd.org wrote: > > I noted that someone mentioned using a network based ID. Since > > EUI-64 are unique I would suspect they would be the best source > > for this on systems that don't naturally have a hostid concept. > > See Appendix A of RFC 2373 for how to create an EUI-64 Interface > > Identifier. > > > > The only problem with this approach that I see is that if you > > remove that interface (that is it was on a card not on your > > motherboard) then it goes away. Perhaps generating this and > > storing it, no matter what the future network configuration of > > the system is, is the right way to go. > > So why not generate it and be done with it? And what if you move > your card to another box were you're planning to install new > system? Actually uuidgen(2) uses uuid(3) and uuid(3) generates UUID version 1 string, i.e., it is based on timestamp and MAC address already. :-) http://en.wikipedia.org/wiki/UUID http://tools.ietf.org/html/rfc4122 Unfortunately some SMBIOS contain broken UUIDs, e.g., they don't conform RFC4122. If it does not conform RFC4122, then we should reject it. If it does (i.e., format, version number, etc), then use it instead of faking one. BTW, uuid(3) needs some improvement, i.e., we need to implement version 2 to 5. See Appendix A of RFC4122 for sample implementations. > I'd really like to make it simple and consistent on all archs, so > one knows exactly what to expect. Agreed. But I also agree with imp, i.e., we have to utilize hardware UUID if it is available and valid for the platform. Jung-uk Kim From owner-freebsd-arch@FreeBSD.ORG Mon Apr 9 19:08:11 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 7565D16A402; Mon, 9 Apr 2007 19:08:11 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 07FC913C468; Mon, 9 Apr 2007 19:08:10 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 53324487F5; Mon, 9 Apr 2007 21:08:08 +0200 (CEST) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 5ED3E456AB; Mon, 9 Apr 2007 21:07:58 +0200 (CEST) Date: Mon, 9 Apr 2007 21:07:43 +0200 From: Pawel Jakub Dawidek To: Jung-uk Kim Message-ID: <20070409190743.GL76673@garage.freebsd.pl> References: <20070407120656.GD63916@garage.freebsd.pl> <20070408151358.GX63916@garage.freebsd.pl> <200704091335.42092.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hdW7zL/qDS6RXdAL" Content-Disposition: inline In-Reply-To: <200704091335.42092.jkim@FreeBSD.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: gnn@FreeBSD.org, 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: Mon, 09 Apr 2007 19:08:11 -0000 --hdW7zL/qDS6RXdAL Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 09, 2007 at 01:35:39PM -0400, Jung-uk Kim wrote: > On Sunday 08 April 2007 11:13 am, Pawel Jakub Dawidek wrote: > > On Sun, Apr 08, 2007 at 10:04:16PM +0900, gnn@freebsd.org wrote: > > > I noted that someone mentioned using a network based ID. Since > > > EUI-64 are unique I would suspect they would be the best source > > > for this on systems that don't naturally have a hostid concept.=20 > > > See Appendix A of RFC 2373 for how to create an EUI-64 Interface > > > Identifier. > > > > > > The only problem with this approach that I see is that if you > > > remove that interface (that is it was on a card not on your > > > motherboard) then it goes away. Perhaps generating this and > > > storing it, no matter what the future network configuration of > > > the system is, is the right way to go. > > > > So why not generate it and be done with it? And what if you move > > your card to another box were you're planning to install new > > system? >=20 > Actually uuidgen(2) uses uuid(3) and uuid(3) generates UUID version 1=20 > string, i.e., it is based on timestamp and MAC address already. :-) But in my proposal we generate UUID only once and store it as it is, which means are keep the same UUID even if network card has changed. > > I'd really like to make it simple and consistent on all archs, so > > one knows exactly what to expect. >=20 > Agreed. But I also agree with imp, i.e., we have to utilize hardware=20 > UUID if it is available and valid for the platform. I don't agree. As Robert pointed out there are situation you would like to share the same UUID between many hosts. I'm committing as it is, we may change it in the future. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --hdW7zL/qDS6RXdAL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGGo7/ForvXbEpPzQRAnxPAJ92ZHMRW8IVPU5+zcf8N7fXtS9kSQCgryF3 4noJpoTSf0AMY4UUY6vlf+Y= =/QGx -----END PGP SIGNATURE----- --hdW7zL/qDS6RXdAL-- From owner-freebsd-arch@FreeBSD.ORG Mon Apr 9 19:24:21 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 EFF2816A405 for ; Mon, 9 Apr 2007 19:24:21 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 7BF3713C455 for ; Mon, 9 Apr 2007 19:24:21 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 4DC4048807; Mon, 9 Apr 2007 21:24:20 +0200 (CEST) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 7FEFA48804; Mon, 9 Apr 2007 21:24:14 +0200 (CEST) Date: Mon, 9 Apr 2007 21:24:03 +0200 From: Pawel Jakub Dawidek To: Rink Springer Message-ID: <20070409192403.GN76673@garage.freebsd.pl> References: <20070407120656.GD63916@garage.freebsd.pl> <20070409145620.GF76673@garage.freebsd.pl> <20070409151213.GD28616@rink.nu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IoFIGPN1N3g1Ryqz" Content-Disposition: inline In-Reply-To: <20070409151213.GD28616@rink.nu> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: 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: Mon, 09 Apr 2007 19:24:22 -0000 --IoFIGPN1N3g1Ryqz Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 09, 2007 at 05:12:13PM +0200, Rink Springer wrote: > HiP awel, >=20 > On Mon, Apr 09, 2007 at 04:56:20PM +0200, Pawel Jakub Dawidek wrote: > > Here is the patch: > >=20 > > http://people.freebsd.org/~pjd/patches/hostid.patch > >=20 > > Any objections? >=20 > Looks good. This may sound cheesy, but what about a 'stop' command in > case I want to temporarily 'loose' my hostid? I don't really see use for such a command. I committed without it. If you have a strong need for it, feel free to add it, but I'd prefer to not just clear it. Before the script is executed, it's value is set to 00000000-0000-0000-0000-000000000000. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --IoFIGPN1N3g1Ryqz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGGpLTForvXbEpPzQRAk90AJ9yCOjh2cJG3mqVwyDIXpTeROmydgCbBPv1 QwdNuLjddKsbK/QFHUifChY= =eYwQ -----END PGP SIGNATURE----- --IoFIGPN1N3g1Ryqz-- From owner-freebsd-arch@FreeBSD.ORG Mon Apr 9 20:38:17 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 1030716A403 for ; Mon, 9 Apr 2007 20:38:17 +0000 (UTC) (envelope-from minimarmot@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.242]) by mx1.freebsd.org (Postfix) with ESMTP id BFCD413C459 for ; Mon, 9 Apr 2007 20:38:16 +0000 (UTC) (envelope-from minimarmot@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1766717ana for ; Mon, 09 Apr 2007 13:38:16 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uskBeX1TAtVqlXUadCfJ4ZfGn32yTEORgzY/qdgNdu/ZOb26FNypIM9x9ko6dT0DgrSQoEattL1kIx/DZt4LhYYJXl6/gbprat2cJkzeauu/5PB+c0WmxmtRA+xpaNSKUvu6HbyY/TzObMzfl20XvT6JI+Pw9T7AaAJAkeE0dn0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GsAaaH1vqNypEY0oueh267ClIPknLDZ8fRfknY2817Rqa9M/bT9LLYXW9RWj3VFFXi4lIAJeCIZt98FKjedbjUXIkmS+g3s/jVb9mozad/t3C1lzKhjjgWWOtTAfBpR4o1A2HXw03Sk0M+aNuugu1EKXzmpegVeZmUl6N8gLvU4= Received: by 10.100.107.2 with SMTP id f2mr4366605anc.1176151095954; Mon, 09 Apr 2007 13:38:15 -0700 (PDT) Received: by 10.100.237.19 with HTTP; Mon, 9 Apr 2007 13:38:15 -0700 (PDT) Message-ID: <47d0403c0704091338p4c6476fey5d90e0dfb3a50cbf@mail.gmail.com> Date: Mon, 9 Apr 2007 15:38:15 -0500 From: "Ben Kaduk" To: "Pawel Jakub Dawidek" In-Reply-To: <20070409190743.GL76673@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070407120656.GD63916@garage.freebsd.pl> <20070408151358.GX63916@garage.freebsd.pl> <200704091335.42092.jkim@FreeBSD.org> <20070409190743.GL76673@garage.freebsd.pl> Cc: 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: Mon, 09 Apr 2007 20:38:17 -0000 On 4/9/07, Pawel Jakub Dawidek wrote: > On Mon, Apr 09, 2007 at 01:35:39PM -0400, Jung-uk Kim wrote: > > On Sunday 08 April 2007 11:13 am, Pawel Jakub Dawidek wrote: [snip] > > > I'd really like to make it simple and consistent on all archs, so > > > one knows exactly what to expect. > > > > Agreed. But I also agree with imp, i.e., we have to utilize hardware > > UUID if it is available and valid for the platform. > > I don't agree. As Robert pointed out there are situation you would like > to share the same UUID between many hosts. > This may be a bit pedantic, but I thought the case Robert described was for a way to have an identical setup on many machines but still allow for having a different UUID on each one. That's not to say that there aren't cases where you would want the same UUID on multiple hosts, say, on redundant live spares, but I think that Robert's example (as I am interpreting it) is a relatively common case. -Ben Kaduk > I'm committing as it is, we may change it in the future. > > -- > Pawel Jakub Dawidek http://www.wheel.pl > pjd@FreeBSD.org http://www.FreeBSD.org > FreeBSD committer Am I Evil? Yes, I Am! > > From owner-freebsd-arch@FreeBSD.ORG Mon Apr 9 21:53:07 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 DAFE016A400; Mon, 9 Apr 2007 21:53:07 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 9792D13C448; Mon, 9 Apr 2007 21:53:07 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id AA10620A3; Mon, 9 Apr 2007 23:53:01 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 987BA20A2; Mon, 9 Apr 2007 23:53:01 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 8862BA10AC; Mon, 9 Apr 2007 23:53:01 +0200 (CEST) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: "Ben Kaduk" References: <20070407120656.GD63916@garage.freebsd.pl> <20070408151358.GX63916@garage.freebsd.pl> <200704091335.42092.jkim@FreeBSD.org> <20070409190743.GL76673@garage.freebsd.pl> <47d0403c0704091338p4c6476fey5d90e0dfb3a50cbf@mail.gmail.com> Date: Mon, 09 Apr 2007 23:53:01 +0200 In-Reply-To: <47d0403c0704091338p4c6476fey5d90e0dfb3a50cbf@mail.gmail.com> (Ben Kaduk's message of "Mon, 9 Apr 2007 15:38:15 -0500") Message-ID: <86odlxcj0i.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: 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: Mon, 09 Apr 2007 21:53:07 -0000 "Ben Kaduk" writes: > Pawel Jakub Dawidek writes: > > I don't agree. As Robert pointed out there are situation you would > > like to share the same UUID between many hosts. > This may be a bit pedantic, but I thought the case Robert described > was for a way to have an identical setup on many machines but still > allow for having a different UUID on each one. If a host is a hot spare for another, you might want it to have the same UUID as the primary. Reading the UUID from hardware is fine as long as it is only done when initializing /hostid on a system which does not already have it. (any particular reason to store it in /hostid instead of /etc/hostid?) DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-arch@FreeBSD.ORG Mon Apr 9 21:56:34 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 6A31516A402 for ; Mon, 9 Apr 2007 21:56:34 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 08DC713C44B for ; Mon, 9 Apr 2007 21:56:34 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 9B4DC4569A; Mon, 9 Apr 2007 23:56:32 +0200 (CEST) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 856C045683; Mon, 9 Apr 2007 23:56:28 +0200 (CEST) Date: Mon, 9 Apr 2007 23:56:16 +0200 From: Pawel Jakub Dawidek To: Dag-Erling Sm?rgrav Message-ID: <20070409215616.GU76673@garage.freebsd.pl> References: <20070407120656.GD63916@garage.freebsd.pl> <20070408151358.GX63916@garage.freebsd.pl> <200704091335.42092.jkim@FreeBSD.org> <20070409190743.GL76673@garage.freebsd.pl> <47d0403c0704091338p4c6476fey5d90e0dfb3a50cbf@mail.gmail.com> <86odlxcj0i.fsf@dwp.des.no> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4fNq9Po2wJlmxAaR" Content-Disposition: inline In-Reply-To: <86odlxcj0i.fsf@dwp.des.no> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: Ben Kaduk , 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: Mon, 09 Apr 2007 21:56:34 -0000 --4fNq9Po2wJlmxAaR Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 09, 2007 at 11:53:01PM +0200, Dag-Erling Sm?rgrav wrote: > "Ben Kaduk" writes: > > Pawel Jakub Dawidek writes: > > > I don't agree. As Robert pointed out there are situation you would > > > like to share the same UUID between many hosts. > > This may be a bit pedantic, but I thought the case Robert described > > was for a way to have an identical setup on many machines but still > > allow for having a different UUID on each one. >=20 > If a host is a hot spare for another, you might want it to have the > same UUID as the primary. >=20 > Reading the UUID from hardware is fine as long as it is only done when > initializing /hostid on a system which does not already have it. >=20 > (any particular reason to store it in /hostid instead of /etc/hostid?) I think Ruslan suggested /etc/hostid and the committed version is using this very location. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --4fNq9Po2wJlmxAaR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGGraAForvXbEpPzQRAj1kAKDxe/ESTElER9FuE8vslGXPP2FmxQCeM2wH A4by86zP7GPbjLLNcHA2Gx8= =QE0x -----END PGP SIGNATURE----- --4fNq9Po2wJlmxAaR-- From owner-freebsd-arch@FreeBSD.ORG Mon Apr 9 22:15:36 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 5EF0116A400 for ; Mon, 9 Apr 2007 22:15:36 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outR.internet-mail-service.net (outR.internet-mail-service.net [216.240.47.241]) by mx1.freebsd.org (Postfix) with ESMTP id 47C5E13C457 for ; Mon, 9 Apr 2007 22:15:36 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.32) with ESMTP; Mon, 09 Apr 2007 14:33:53 -0700 Received: from [10.251.22.38] (nat.ironport.com [63.251.108.100]) by idiom.com (Postfix) with ESMTP id E051F125AF7; Mon, 9 Apr 2007 15:04:27 -0700 (PDT) Message-ID: <461AB86C.3080308@elischer.org> Date: Mon, 09 Apr 2007 15:04:28 -0700 From: Julian Elischer User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= References: <20070407120656.GD63916@garage.freebsd.pl> <20070408151358.GX63916@garage.freebsd.pl> <200704091335.42092.jkim@FreeBSD.org> <20070409190743.GL76673@garage.freebsd.pl> <47d0403c0704091338p4c6476fey5d90e0dfb3a50cbf@mail.gmail.com> <86odlxcj0i.fsf@dwp.des.no> In-Reply-To: <86odlxcj0i.fsf@dwp.des.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: Pawel Jakub Dawidek , Ben Kaduk , 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: Mon, 09 Apr 2007 22:15:36 -0000 Dag-Erling Smørgrav wrote: > "Ben Kaduk" writes: >> Pawel Jakub Dawidek writes: >>> I don't agree. As Robert pointed out there are situation you would >>> like to share the same UUID between many hosts. >> This may be a bit pedantic, but I thought the case Robert described >> was for a way to have an identical setup on many machines but still >> allow for having a different UUID on each one. > > If a host is a hot spare for another, you might want it to have the > same UUID as the primary. > > Reading the UUID from hardware is fine as long as it is only done when > initializing /hostid on a system which does not already have it. > > (any particular reason to store it in /hostid instead of /etc/hostid?) I prefer /etc/hostid with rc scripts that ask for one (with easy default) if there isn't one, and something you can set in an image to say "don't ask.. just use what the hardware suggests". My favourite place is just in /etc/rc.conf.... rc.conf use_hw_hostid="yes" # don't prompt the user if one is not already defined alternatively for a machine that is going to replace one already in service.... hostid_override="xcxcxcxcxcxcxc" # temporarily Use this value > > DES From owner-freebsd-arch@FreeBSD.ORG Tue Apr 10 21:55:16 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 1BABF16A401; Tue, 10 Apr 2007 21:55:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 9002A13C4B9; Tue, 10 Apr 2007 21:55:15 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l3ALtDxI067651; Tue, 10 Apr 2007 17:55:13 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-arch@freebsd.org Date: Tue, 10 Apr 2007 17:46:02 -0400 User-Agent: KMail/1.9.4 References: <20070407120656.GD63916@garage.freebsd.pl> <200704091335.42092.jkim@FreeBSD.org> <20070409190743.GL76673@garage.freebsd.pl> In-Reply-To: <20070409190743.GL76673@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704101746.02890.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [192.168.0.1]); Tue, 10 Apr 2007 17:55:13 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/3064/Tue Apr 10 12:25:23 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: gnn@freebsd.org, Pawel Jakub Dawidek , Jung-uk Kim 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: Tue, 10 Apr 2007 21:55:16 -0000 On Monday 09 April 2007 15:07, Pawel Jakub Dawidek wrote: > On Mon, Apr 09, 2007 at 01:35:39PM -0400, Jung-uk Kim wrote: > > On Sunday 08 April 2007 11:13 am, Pawel Jakub Dawidek wrote: > > > On Sun, Apr 08, 2007 at 10:04:16PM +0900, gnn@freebsd.org wrote: > > > > I noted that someone mentioned using a network based ID. Since > > > > EUI-64 are unique I would suspect they would be the best source > > > > for this on systems that don't naturally have a hostid concept. > > > > See Appendix A of RFC 2373 for how to create an EUI-64 Interface > > > > Identifier. > > > > > > > > The only problem with this approach that I see is that if you > > > > remove that interface (that is it was on a card not on your > > > > motherboard) then it goes away. Perhaps generating this and > > > > storing it, no matter what the future network configuration of > > > > the system is, is the right way to go. > > > > > > So why not generate it and be done with it? And what if you move > > > your card to another box were you're planning to install new > > > system? > > > > Actually uuidgen(2) uses uuid(3) and uuid(3) generates UUID version 1 > > string, i.e., it is based on timestamp and MAC address already. :-) > > But in my proposal we generate UUID only once and store it as it is, > which means are keep the same UUID even if network card has changed. > > > > I'd really like to make it simple and consistent on all archs, so > > > one knows exactly what to expect. > > > > Agreed. But I also agree with imp, i.e., we have to utilize hardware > > UUID if it is available and valid for the platform. > > I don't agree. As Robert pointed out there are situation you would like > to share the same UUID between many hosts. > > I'm committing as it is, we may change it in the future. Actually, I think it would be quite useful to use a hardware-defined ID if it exists. I think DES's suggestion of only using it when generating /etc/hostid strikes the right balance. -- John Baldwin