-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


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

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 . [EMAIL PROTECTED]                              MSN . [EMAIL PROTECTED]
Yahoo . yscrappy               Skype: hub.org        ICQ . 7615664
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

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

_______________________________________________
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