Host ID.
    Julian Elischer 
    julian at elischer.org
       
    Mon Apr  9 22:15:36 UTC 2007
    
    
  
Dag-Erling Smørgrav wrote:
> "Ben Kaduk" <minimarmot at gmail.com> writes:
>> Pawel Jakub Dawidek <pjd at 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
    
    
More information about the freebsd-arch
mailing list