vxstat: time since last reset?
Created: 24 Jan 2013 | Updated: 07 Mar 2013 | 1 comment
This issue has been solved. See solution.
I wonder if there is a way to determine the time since the last reset ('vxstat -r') of vxstat counters for some or all VxVM objects.
Or asked differently: When vxstat gives me data like
[root:/]# vxstat OPERATIONS BLOCKS AVG TIME(ms) TYP NAME READ WRITE READ WRITE READ WRITE vol export 3423282 38233203 159756362 400100767 5.6 25.4 vol rootvol 8105850 30419736 73677793 65981077 2.8 36.8 vol swapvol 2636206 340972 42179296 55502576 7.4 5597.9 vol var 5190036 12921735 116372454 126819449 5.9 14.1
how can I be sure these counts accumulated since reboot of the server? Without the knowledge if/when the counters were reset the last time, the output of vxstat is of limited use. Instead, I have to reset the counters myself, thereby losing potentially valuable data that has accumulated over a long time.
So is there a way to determine the time of the last reset?
This example is from a very old VxVM 4.1 on Solaris 10, but the vxstat man page from 5.1 has no info about the time of the last reset either.