Interesting hostid

Dan Nelson dnelson at allantgroup.com
Mon Dec 21 07:23:32 UTC 2009


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 at allantgroup.com


More information about the freebsd-questions mailing list