From owner-freebsd-stable@FreeBSD.ORG Wed Mar 31 10:41:46 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E803616A4CE for ; Wed, 31 Mar 2004 10:41:46 -0800 (PST) Received: from sabre.velocet.net (sabre.velocet.net [216.138.209.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CA6143D45 for ; Wed, 31 Mar 2004 10:41:46 -0800 (PST) (envelope-from steve@nomad.tor.lets.net) Received: from nomad.lets.net (H74.C220.tor.velocet.net [216.138.220.74]) by sabre.velocet.net (Postfix) with SMTP id 64FC3138DA5 for ; Wed, 31 Mar 2004 13:41:42 -0500 (EST) Received: (qmail 1815 invoked by uid 1008); 31 Mar 2004 19:21:11 -0000 Date: Wed, 31 Mar 2004 14:21:10 -0500 From: Steve Shorter To: stable@freebsd.org Message-ID: <20040331192110.GA1806@nomad.lets.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: Diskless machine - getdevs: error getting device stats X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Mar 2004 18:41:47 -0000 Howdy! I have some diskless machines that boot using PXE and mount data over NFS. They are truly diskless. When I run vmstat (or similarly systat -vm) I get vmstat: getdevs: error getting device stats getdevs: Invalid argument Other PXE booted machines that mount hard drives don't exhibit this behavior. On machines that don't mount hard drives the sysctl variable kern.devstat.numdevs = 0 A ktrace on vmstat shows that a call to sysctl fails. What is to be done to be able to run vmstat and systat -vm? Or what are the consequences of this. if any? Freebsd-9-STABLE. thanx - steve