Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Dec 2006 20:46:49 +0300
From:      Boris Samorodov <bsam@ipt.ru>
To:        "Marc G. Fournier" <scrappy@freebsd.org>
Cc:        freebsd-advocacy@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: BSDStats Report for December 1st, 2006
Message-ID:  <70354598@bsam.ru>
In-Reply-To: <D5CC735B0941322F588DF1CD@ganymede.hub.org> (Marc G. Fournier's message of "Sun, 03 Dec 2006 20:28:15 -0400")
References:  <D1D335A2174E8CD8E64AB5F1@ganymede.hub.org> <70378354@bsam.ru> <B1926789D4ADDF11735EF7C3@ganymede.hub.org> <81086419@bsam.ru> <D5CC735B0941322F588DF1CD@ganymede.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 03 Dec 2006 20:28:15 -0400 Marc G. Fournier wrote:
> --On Monday, December 04, 2006 02:07:08 +0300 Boris Samorodov <bsam@ipt.ru> 
> 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



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