1753460 Members
4733 Online
108794 Solutions
New Discussion

iostat

 
hy_3
Frequent Advisor

iostat

OS is 4.0d.There are 10 diskâ â rz0,rz1....rz10.
I use iostat to watch the disk's activity.But I only can watch rz0,rz1,rz2 and rz3.How can I use iostat to watch the other disks' activity?Thank
4 REPLIES 4
Ralf Puchner
Honored Contributor

Re: iostat

where are the disks located?
Help() { FirstReadManual(urgently); Go_to_it;; }
Ninad_1
Honored Contributor

Re: iostat

Hi,

You can give the disks you want to watch after the iostat command.
e.g.
iostat rz0 rz1 rz2 rz3 rz4 rz5 rz6 rz7 rz8 rz9 5 10

This will show you the statistics of the disks rz0 to rz9 after every five seconds and 10 such readings will be displayed.
Similarly you can use the command as per your requirement

Ninad
Abdul Rahiman
Esteemed Contributor

Re: iostat

I think the Tru64 iostat on 4.x systems only works on Lun-0 devices. i.e., if you have disks like rzbXX, rzcXX etc. iostat may not report on those. Otherwise the above solution should work.

Also check out the improved "uaio" tool from,
ftp://ftp.alaska.edu/pub/sois/Overview.html#uaio
or: http://www.arsc.edu/~kcarlson/software/man/uaio.html

or better yet, if you have collect installed, use collect.

collect -sd -i5 (disk statistics at 5 sec interval)

regds,
Abdul.

No unix, no fun
hy_3
Frequent Advisor

Re: iostat

The machine has internal and external disks.
I do 'iostat rz5 1',but the output is
tty rz0 rz1 rz2 rz3 cpu
tin tout bps tps bps tps bps tps bps tps us ni sy id
0 150 1 0 1 0 0 0 0 0 0 0 0 99
2 232 48 3 0 0 0 0 0 0 1 0 2 97
2 181 0 0 16 2 0 0 0 0 0 0 1 99

What is the matter?Thank you.