From owner-freebsd-questions@FreeBSD.ORG Mon Dec 4 17:49:02 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BB60E16A40F; Mon, 4 Dec 2006 17:49:02 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0CEF43CA2; Mon, 4 Dec 2006 17:48:27 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.156]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id kB4Hmgf4071190; Mon, 4 Dec 2006 20:48:53 +0300 (MSK) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GrHtx-0000E3-Cc; Mon, 04 Dec 2006 20:46:49 +0300 To: "Marc G. Fournier" References: <70378354@bsam.ru> <81086419@bsam.ru> From: Boris Samorodov Date: Mon, 04 Dec 2006 20:46:49 +0300 In-Reply-To: (Marc G. Fournier's message of "Sun, 03 Dec 2006 20:28:15 -0400") Message-ID: <70354598@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: freebsd-advocacy@freebsd.org, freebsd-questions@freebsd.org Subject: Re: BSDStats Report for December 1st, 2006 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2006 17:49:02 -0000 On Sun, 03 Dec 2006 20:28:15 -0400 Marc G. Fournier wrote: > --On Monday, December 04, 2006 02:07:08 +0300 Boris Samorodov > 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 /bsdstats.`hostname` ]; then > cp /bsdstats.`hostname` /var/db/bsdstats > else > run 300.statistics > cp /var/db/bsdstats /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