cvs commit: src/etc/rc.d Makefile hostid src/etc/defaults rc.conf

Pawel Jakub Dawidek pjd at FreeBSD.org
Mon Apr 9 23:13:42 UTC 2007


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
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20070409/c64d1fca/attachment.pgp


More information about the cvs-src mailing list