Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Apr 2007 15:04:28 -0700
From:      Julian Elischer <julian@elischer.org>
To:        =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= <des@des.no>
Cc:        Pawel Jakub Dawidek <pjd@freebsd.org>, Ben Kaduk <minimarmot@gmail.com>, freebsd-arch@freebsd.org
Subject:   Re: Host ID.
Message-ID:  <461AB86C.3080308@elischer.org>
In-Reply-To: <86odlxcj0i.fsf@dwp.des.no>
References:  <20070407120656.GD63916@garage.freebsd.pl>	<m264873tm7.wl%gnn@neville-neil.com>	<20070408151358.GX63916@garage.freebsd.pl>	<200704091335.42092.jkim@FreeBSD.org>	<20070409190743.GL76673@garage.freebsd.pl>	<47d0403c0704091338p4c6476fey5d90e0dfb3a50cbf@mail.gmail.com> <86odlxcj0i.fsf@dwp.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smørgrav wrote:
> "Ben Kaduk" <minimarmot@gmail.com> writes:
>> Pawel Jakub Dawidek <pjd@freebsd.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?461AB86C.3080308>