Date: Mon, 9 Apr 2007 21:07:43 +0200 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Jung-uk Kim <jkim@FreeBSD.org> Cc: gnn@FreeBSD.org, freebsd-arch@FreeBSD.org Subject: Re: Host ID. Message-ID: <20070409190743.GL76673@garage.freebsd.pl> In-Reply-To: <200704091335.42092.jkim@FreeBSD.org> References: <20070407120656.GD63916@garage.freebsd.pl> <m264873tm7.wl%gnn@neville-neil.com> <20070408151358.GX63916@garage.freebsd.pl> <200704091335.42092.jkim@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070409190743.GL76673>