AIX: vmstat - can’t read from device or file

Title:

AIX: vmstat - can’t read from device or file

Author:

Douglas O’Leary <dkoleary@olearycomputers.com>

Description:

How to fix vmstat error

Date created:

Date updated:

Disclaimer:

Standard: Use the information that follows at your own risk. If you screw up a system, don’t blame it on me…

If/when receiving an error from vmstat which states:

# vmstat 5 10
[[Normal VMSTAT header snipped]]
read: No such device or file

you should check the following as well:

SAR:

You should be getting an error something to the effect:

sadc: read of fsvar structure failed: No such device or address

You can also run vmtune (ref vmtune locations per OS level). If the vmtune parameters are out of whack, you can try the following to fix all these errors:

# bosboot -a -d /dev/hdisk##
# shutdown -F -r now

The hdisk## is the boot device. You can check this out by getting into diags, then listing the boot list, or doing a lsvg -p rootvg.