Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2009 01:23:30 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        kes-kes@yandex.ru
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Interesting hostid
Message-ID:  <20091221072330.GC98917@dan.emsphone.com>
In-Reply-To: <1163675609.20091220201912@yandex.ru>
References:  <1163675609.20091220201912@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Dec 20):
> Why hostid is so simpel?
> Dec 20 19:54:15 vpn_shadow kernel: Setting hostuuid: 11111111-1111-1111-1111-111111111111.

It's probably reading the value from your BIOS, and older ones don't
actually put a unique value in there.  If you run "kenv smbios.system.uuid",
what does it print?  

The hostid is currently only used by the zfs module to ensure that you don't
accidentally mount the wrong pools if you move disks from machine to
machine.  The file /etc/hostid overrides the bios value, so you can run
"uuidgen > /etc/hostid" to set a new one if you have two machines like this. 
If you only have one, then you don't need to bother.

-- 
	Dan Nelson
	dnelson@allantgroup.com



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