1819967 Members
3625 Online
109607 Solutions
New Discussion юеВ

uptime error

 
SOLVED
Go to solution
Michael Deely
Advisor

uptime error

when running uptime I recieve this error:

<<>>> uptime
uptime: Could not get pstat static info: : Invalid argument

any ideas on the cause?
7 REPLIES 7
Michael Deely
Advisor

Re: uptime error

some more info. I get the following when running ps:

<<>>> ps -ef | grep cron
ps: couldn't get console device alias
ps: not enough memory for hash table
Simon Hargrave
Honored Contributor

Re: uptime error

sounds like either saturated memory or kernel tables.

try: "swapinfo -tam" to check memory
try: sar -v 10 10 to check kernel tables
harry d brown jr
Honored Contributor

Re: uptime error


Looks like memory issues.

do a

swapinfo -mat

if you can.

are you logged on as root?

live free or die
harry
Live Free or Die
Michael Deely
Advisor

Re: uptime error

<<>>> swapinfo -tam
swapinfo: ERROR: pstat_getvminfo: Invalid argument (errno = 22).
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 0 1024 0% 0 - 1 /dev/vg00/lvol2
dev 5120 0 5120 0% 0 - 0 /dev/vg00/swap1
reserve - 0 0
total 6144 0 6144 0% - 0 -

<<>>> sar -v 10 10
sadc: pstat_getdynamic() error: Invalid argument

<<>>> whoami
root
Simon Hargrave
Honored Contributor

Re: uptime error

since you can't use any of your core commands, i'd suggest a reboot is the only recourse in this instance. looks like you're basically starved of memory. try a clean shutdown, if that fails then a TOC will at least give a dump file from which you may be able to determine what particularly ate your memory.
harry d brown jr
Honored Contributor

Re: uptime error

What does bdf show?

Also do a "vgdisplay -v vg00"

live free or die
harry
Live Free or Die
Jeff Schussele
Honored Contributor
Solution

Re: uptime error

Hmmm....have you relinked a new kernel & not rebooted yet?

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!