Steve Shorter
2004-Mar-31 10:42 UTC
Diskless machine - getdevs: error getting device stats
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
On Wed, 31 Mar 2004, Steve Shorter wrote:> 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 argumentI'm going to guess that your world and kernel are out of sync. Make sure you've built the userland tools and the kernel were built from the same code base. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org