On Tue, Apr 10, 2007 at 12:45:09AM +0200, Henrik Brix Andersen wrote: > On Mon, Apr 09, 2007 at 07:21:27PM +0000, Pawel Jakub Dawidek wrote: > > pjd 2007-04-09 19:21:27 UTC > > > > FreeBSD src repository > > > > Modified files: > > etc/rc.d Makefile > > etc/defaults rc.conf > > Added files: > > etc/rc.d hostid > > Log: > > Add rc.d/hostid script (turned on by default) which on first boot > > generates > > UUID and stores it in /etc/hostid ($hostid_file) as well as sets > > kern.hostuuid > > and kern.hostid sysctls on every boot. > > > > Hostid can be reset using '/etc/rc.d/hostid reset' command. > > > > Hostid generation and setting can be turned off by setting variable > > hostid_enable to "NO" in /etc/rc.conf. > > Can you shed some light on what this unique host ID can/will be used for?
For example ZFS uses it to remember on which host it was imported last, so when you by accident try to import the pool on another host, it will print a warning and demand force import. In the future, it will be a great future once we implement variant/magic symlinks. Imagine file system exported via NFS to multiple hosts. -- Pawel Jakub Dawidek http://www.wheel.pl [EMAIL PROTECTED] http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am!
pgp9RSUOWoaS3.pgp
Description: PGP signature