On Sun, 03 Dec 2006 20:28:15 -0400 Marc G. Fournier wrote:
> --On Monday, December 04, 2006 02:07:08 +0300 Boris Samorodov <[EMAIL 
> PROTECTED]> 
> wrote:
> > On Sun, 03 Dec 2006 17:05:04 -0400 Marc G. Fournier wrote:
> >
> >> If its diskless, will each reboot end up reporting as a whole new host each
> >> time, or is there some way of saving that /var/db/bsdstats across reboots?
> >
> > We use memory mounted /var. :-(
> > Ok, let's only our servers do the reporting.

> 'k, I'm clueless on diskless, so this may or may not be doable ... but would 
> it 
> be possible to cp the bsdstats file from the 'disk mount server' to 
> /var/db/bsdstats on reboot?

> Say, something scripted like:

> if [ ! -f /var/db/bsdstats ]; then
>   if [ -f <remotemount>/bsdstats.`hostname` ]; then
>      cp <remotemount>/bsdstats.`hostname` /var/db/bsdstats
>   else
>      run 300.statistics
>      cp /var/db/bsdstats <remotemount>/bsdstats.`hostname`
>   fi
> fi

Yes, those machines use NFS home directories which may be used. Thanks
for the tip.

> Add something like that (real code at least) to the init/rc file used on the 
> diskless station, to be run after all mounts are up?

As I said I'm afraid those machines may give some destabilization to
bsdstats results when the First of month is a holiday/weekend. So I'm
not sure if it's a good thing to report them to bsdstats.org. What do
you think?


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to