SUMMARY: iostat does not display all disks

From: <Vladislav.Valikhovsky_at_acs-gsg.com>
Date: Thu, 09 Nov 2000 13:43:15 -0500

Thank you to the following gentlemen for responding to my post:

Dennis Peacock
Yizhong Zhou
Dr. Tom Blinn
Tony McElhill
Gustavo Avitabile
alan_at_nabeth.cxo.dec.com (Sorry, there was no full name in the
message)

Original post:


Problem: iostat and uaio (a University of Alaska version) do not display
all configured disks. Only first four devices are displayed.

Detail: I run "iostat rz19" and get only four columns reporting the
first four disks on that target. Disks are inside ESA10000 cabinet behind
HSZ70 controllers. OS is Tru64 4.0F with Patch Kit 4.
        I have six disks configured on six LUNs of the same target 3 of
bus 2 - rz19 through rzf19. Only rz19 through rzd19 are reported by
iostat.

Note: While there is a "collect" utility which can query all six disks, I
have a specific need to be able to use the "iostat" command to collect disk
stats. COMPAQ Tech Support suggested that I need to add all
non-LUN-0 disks to the configuration file and rebuild kernel in order for
iostat to report on non- LUN-0 disks. But, iostat currently reports on,
at least, three non-LUN-0 devices and I do not have any of these
defined in the kernel configuration file.

<><><><><><><><><><><><><><><><><><><><><><><><><><><>
<><><><><><><> Meat and Potatoes <><><><><><><>
<><><><><><><><><><><><><><><><><><><><><><><><><><><>

Most of the replies suggested that it is a default for "iostat" to display four
drives. I was aware of that. There were suggestions to specify all drive names
on the argument line. I was aware of this approach as well. Another person
suggested to list all device names in the argument line, like rz19c, rzb19c,
etc. - we know that "iostat" does not support this format. It will choke on LUN
and partition letters and ignore the whole argument, so we can only specify
rz(BUS#*8+Target#). This format will report on all drives that match this mask
*AS LONG AS* they were added before the last reboot. You can see this from my
example below. I guess I did not state my question clearly enough in the
original post. Therefore, I did not get exactly the answer I was looking for.
The best way to describe the cituation, I should include the output of several
commands:

hostname /dev # file rrz*19c
rrz19c: character special (8/35842) SCSI #2 HSZ70 disk #152 (SCSI ID #3) (SCSI
LUN #0)
rrzb19c: character special (8/35906) SCSI #2 HSZ70 disk #153 (SCSI ID #3) (SCSI
LUN #1)
rrzc19c: character special (8/35970) SCSI #2 HSZ70 disk #154 (SCSI ID #3) (SCSI
LUN #2)
rrzd19c: character special (8/36034) SCSI #2 HSZ70 disk #155 (SCSI ID #3) (SCSI
LUN #3)
rrze19c: character special (8/36098) SCSI #2 HSZ70 disk #156 (SCSI ID #3) (SCSI
LUN #4)
rrzf19c: character special (8/36162) SCSI #2 HSZ70 disk #157 (SCSI ID #3) (SCSI
LUN #5)
hostname /dev # iostat rz19
      tty rz19 rz19 rz19 rz19 cpu
 tin tout bps tps bps tps bps tps bps tps us ni sy id
   0 52 54 2 4 0 7 0 7 0 18 0 16 67
hostname /dev # file rrz*17c
rrz17c: character special (8/33794) SCSI #2 HSZ70 disk #136 (SCSI ID #1) (SCSI
LUN #0)
rrzb17c: character special (8/33858) SCSI #2 HSZ70 disk #137 (SCSI ID #1) (SCSI
LUN #1)
rrzc17c: character special (8/33922) SCSI #2 HSZ70 disk #138 (SCSI ID #1) (SCSI
LUN #2)
rrzd17c: character special (8/33986) SCSI #2 HSZ70 disk #139 (SCSI ID #1) (SCSI
LUN #3)
rrze17c: character special (8/34050) SCSI #2 HSZ70 disk #140 (SCSI ID #1) (SCSI
LUN #4)
hostname /dev # iostat rz17
      tty rz17 rz17 rz17 rz17 rz17 cpu
 tin tout bps tps bps tps bps tps bps tps bps tps us ni sy id
   0 52 148 2 46 1 13 1 15 0 0 0 18 0 16 67
hostname /dev #

As you see there are six rz*19 disks and five rz*17 disks defined on the system.
 "iostat" reports only four disks for rz*19, but all five for rz*17. The last
two rz*19 disks have been added after last reboot. I guess this is why "iostat"
reported only four originals. I was under the impression (*wrongly*) that a
reboot was not needed for the "iostat" to see newly added disks.

If anyone knows how to get "iostat" to see disks added after last reboot, please
share this info with the list. Many people will benefit from it. Otherwise, I
suggest we close this thread.

Thank you,

Vladik Valikhovsky
ACS GSG
UNIX Systems Support
(301)921-7034
Received on Thu Nov 09 2000 - 18:49:33 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT