Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Dec 2006 20:28:15 -0400
From:      "Marc G. Fournier" <scrappy@freebsd.org>
To:        Boris Samorodov <bsam@ipt.ru>, "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:  <D5CC735B0941322F588DF1CD@ganymede.hub.org>
In-Reply-To: <81086419@bsam.ru>
References:  <D1D335A2174E8CD8E64AB5F1@ganymede.hub.org> <70378354@bsam.ru>	<B1926789D4ADDF11735EF7C3@ganymede.hub.org> <81086419@bsam.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



- --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

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?

- ----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email . scrappy@hub.org                              MSN . scrappy@hub.org
Yahoo . yscrappy               Skype: hub.org        ICQ . 7615664
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFc2uf4QvfyHIvDvMRAiexAJ4y/VmnZ89rxhIU2eOSXL4YQUvLeACgqdA2
07v4cbtbLmfSgAuO8ras+zo=
=jk41
-----END PGP SIGNATURE-----




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